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
CSS Custom Properties
Search
Matija Marohnić
March 13, 2019
Programming
0
37
CSS Custom Properties
Matija Marohnić
March 13, 2019
Tweet
Share
More Decks by Matija Marohnić
See All by Matija Marohnić
Introduction to Remix
silvenon
0
130
Cypress vs. Playwright
silvenon
0
150
Studying Strapi: an open source head headless CMS
silvenon
0
33
CSS Specificity
silvenon
0
25
Make your JavaScript projects more accessible to newcomers
silvenon
0
69
React Hooks
silvenon
0
67
PostCSS
silvenon
0
41
Maintainable Integration Testing in React
silvenon
0
28
Writing Codemods with jscodeshift
silvenon
0
26
Other Decks in Programming
See All in Programming
Enterprise Web App. Development (1): Build Tool Training Ver. 5
knakagawa
1
120
Dissecting and Reconstructing Ruby Syntactic Structures
ydah
3
2.1k
The Implementations of Advanced LR Parser Algorithm
junk0612
2
1.4k
Amazon CloudWatchの地味だけど強力な機能紹介!
itotsum
0
240
By the way Google Cloud Next 2025に行ってみてどうだった
ymd65536
0
120
Lambda(Python)の リファクタリングが好きなんです
komakichi
4
250
KANNA Android の技術的課題と取り組み
watabee
0
200
Rubyの!メソッドをちゃんと理解する
alstrocrack
1
130
Носок на сок
bo0om
0
1.2k
生成AIで知るお願いの仕方の難しさ
ohmori_yusuke
1
110
VitestのIn-Source Testingが便利
taro28
8
2.4k
Flutterでllama.cppをつかってローカルLLMを試してみた
sakuraidayo
0
130
Featured
See All Featured
It's Worth the Effort
3n
184
28k
Optimising Largest Contentful Paint
csswizardry
37
3.2k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
41
2.3k
Being A Developer After 40
akosma
91
590k
Music & Morning Musume
bryan
47
6.5k
Writing Fast Ruby
sferik
628
61k
A better future with KSS
kneath
239
17k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.7k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
Facilitating Awesome Meetings
lara
54
6.3k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.6k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Transcript
CSS Custom Properties a.k.a. CSS Variables
Sass
Sass → CSS
CSS
CSS
What’s the big deal? • part of CSS specification •
no compilation • dynamic ✨
“Dynamic”…? Behold… *drumroll*
None
Custom Properties CSS Custom Properties are a new feature in
CSS. I encourage you to experiment with them! 320px 2rem 1rem
Custom Properties CSS Custom Properties are a new feature in
CSS. I encourage you to experiment with them! 1440px 3rem 1.5rem
None
Giving you some information. Warning you about a potential problem.
Telling you about a serious error.
None
BTW
JavaScript? Demo time!
Browser support tl;dr no IE
Polyfill? Not really
Fallback? Yes. Browsers ignore declarations that they don’t understand.
None
postcss-custom-properties PostCSS plugin that automatically adds fallbacks for CSS Custom
Properties!
Try using Custom Properties today! --thanks-for: “listening”;