Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Fronteers talk Digiti — "Pre-processing"
Search
houbenkristof
June 22, 2012
Technology
8
550
Fronteers talk Digiti — "Pre-processing"
SASS, COMPASS & LESS
houbenkristof
June 22, 2012
Tweet
Share
More Decks by houbenkristof
See All by houbenkristof
Prototyping for the real world.
houbenkristof
1
66
Extending Sketch App with awesomeness.
houbenkristof
3
230
My inner-design-monkey
houbenkristof
1
110
De knop (The button)
houbenkristof
0
54
Challenge accepted!
houbenkristof
1
230
Fronteers conference 2011 summary
houbenkristof
3
140
Other Decks in Technology
See All in Technology
What a Good Platform Looks Like and How to Get There @ Large Financial Organization, Oct 2024
mfpais
PRO
0
120
20241015 Toranomon Tech Hub#1 Service Catalog使ってみた
hiashisan
0
130
Kubernetes Meetup Tokyo #67 - KEP-3619: Fine-grained SupplementalGroups Control / k8sjp67-kep-3619
everpeace
0
290
多数のWebサービスをECS/Fargate構成で効率よく構築・運用するなら copilot-cli
interu
2
120
UE5の雑多なテク
ryuichikawano
0
460
Binary Hacks Rebooted 私選ハック集
nullpo_head
1
320
【㈱アイモバイル】エンジニア向け会社説明資料
imobile
0
480
とある事業会社にとっての Kaggler の魅力
hakubishin3
7
1.3k
地域DXにおけるGrafana活用事例
wacky
0
340
不要なリソースを自動で定期的に整理する方法 ~Sandboxアカウントのコストを削減しよう!~
amixedcolor
4
180
ゼロから実装まで!機械学習入門
natsuki0726
0
230
YAPC::Hakodateの映像記録を支える技術
godan
4
400
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
504
140k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.6k
How STYLIGHT went responsive
nonsquared
95
5.1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
240
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Designing for humans not robots
tammielis
249
25k
The Pragmatic Product Professional
lauravandoore
31
6.2k
It's Worth the Effort
3n
183
27k
Bootstrapping a Software Product
garrettdimon
PRO
304
110k
What's new in Ruby 2.0
geeforr
341
31k
The Power of CSS Pseudo Elements
geoffreycrofte
71
5.3k
Transcript
Pre-processing INCEPTION ALL OVER AGAIN!
RIP ARJAN EISING He’s not really dead :)
Hi, I’m Kristof @houbenkristof —
[email protected]
Front-end/design at Mobile Vikings
I’m always up for a Challenge
Run a small firm CALLED TREESHADOW MEDIA
Creative Brewski TOGETHER WITH @TOMCLAUS & @DENNISJANSSEN
LEt’s TALK CSS
"You don’t need a new stylesheet syntax, CSS is simple
and you’re a moron if you can’t do it."
C’est très simple
Not that easy to maintain
Stylesheets evolve
Simplicity creates complexity
Keep things DRY DON’T REPEAT YOURSELF
we should Reference to existing information
"CSS is the weakest link in the web developers toolbox.
The problem goes deeper than CSS’s lack of variables. Unlike the “function” in programming, CSS has no fundamental building block."
It’s all about Abstractions
CSS PRIMITIVES HAVE NO MEANING
That’s our job!
Abstractions ARE GROUPS OF PRIMITIVES
Abstractions are not abstract to us
We give BUILDING BLOCKs meaning SO IT MAKES IT EASIER
FOR US TO UNDERSTAND
Our DESIGNS CHANGE
A kitten dies every time that happens
Find & replace OH PLEASE, DON’T GET ME STARTED!
Client: “We want #000 to be #333 but not the
user information underneath my #bada55 body text, oh while you're at it could you position absolute that element and rotate it a gazillion degrees, … oh, #333 doesn't look that great after all… Change it back!”
You’re screwed
What do we NEED?
The interior decorator!
Decorates with parts
He does not make those parts LAMPS, TABLES, CHAIRS…
PArts for PArts
Oh my god YOU REUSED A BUTTON!
When elements are common REUSE tHEM!
Focus! ON WHAT IS IMPORTANT, YOU MUST!
Hard to upgrade Customized third party stylesheets
Clearly we are in need of some Pre-processing
"In computer science, a preprocessor is a program that processes
its input data to produce output that is used as input to another program.” — Wikipedia
Syntactic CUSTOMIZED SYNTAX, EXTEND THE LANGUAGE, ADD IMPROVEMENTS
ex. SASS & LESS
Keeping things maintainable
SASS BY HAMPTON CATLIN & NATHAN WEIZENBAUM
Written in Ruby
Don’t worry, there are also GUI’s
Watches folders & compiles on save
2007 ORIGINAL SASS SYNTAX
None
Hard to convert existing CSS TO SASS
2010 SASS 3 INTRODUCES SCSS
None
Regular CSS = VALID SCSS
BUT WAIT there’s also COMPASS
It’s chock full of the web’s best reusable patterns.
None
None
Also contains other cool features IMAGE SPRITING, COLOR FUNCTIONS
None
None
You say LESS
It’s all javascript ORIGINALLY WRITTEN IN RUBY BY ALEXIS SELLIER
Regular CSS = VALID LESS
LESS INSPIRED SCSS
VS LESS SASS Thanks to Chris Eppstein - https://gist.github.com/674726
Learning curve YOU HAVE TO KNOW JACK SH*T ABOUT THE
CLI
CODEKIT IS HOT!
CSS3 Helpers SASS HAS COMPASS, LESS DOES NOT
Variables
None
Mixins
Extending
Custom units in SASS MAKING THE LANGUAGE MORE FUTUREPROOF
Looping
DEMO
Thank you!
Resources: http://coding.smashingmagazine.com/2011/09/09/an-introduction-to-less-and- comparison-to-sass/ http://sonspring.com/journal/sass-for-designers http://css-tricks.com/sass-vs-less/ http://chriseppstein.github.com/blog/2009/09/20/why-stylesheet-abstraction- matters/
Questions?