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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Matija Marohnić
March 13, 2019
Programming
52
0
Share
CSS Custom Properties
Matija Marohnić
March 13, 2019
More Decks by Matija Marohnić
See All by Matija Marohnić
oxlint & oxfmt: linting and formatting from the future
silvenon
0
26
Goodbye jsdom/happy-dom, hello Vitest Browser Mode!
silvenon
0
15
Introduction to Remix
silvenon
0
150
Cypress vs. Playwright
silvenon
0
170
Studying Strapi: an open source head headless CMS
silvenon
0
54
CSS Specificity
silvenon
0
53
Make your JavaScript projects more accessible to newcomers
silvenon
0
86
React Hooks
silvenon
0
91
PostCSS
silvenon
0
56
Other Decks in Programming
See All in Programming
JOAI2026 1st solution - heron0519 -
heron0519
0
140
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
의존성 주입과 모듈화
fornewid
0
150
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
220
アーキテクチャモダナイゼーションとは何か
nwiizo
19
5.3k
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
480
煩雑なSkills管理をSoC(関心の分離)により解決する――関心を分離し、プロンプトを部品として育てるためのOSSを作った話 / Solving Complex Skills Management Through SoC (Separation of Concerns)
nrslib
4
970
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
490
Running Swift without an OS
kishikawakatsumi
0
840
PCOVから学ぶコードカバレッジ #phpcon_odawara
o0h
PRO
0
270
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
230
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
2
210
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
187
22k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.4k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
130
AI: The stuff that nobody shows you
jnunemaker
PRO
6
580
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Building an army of robots
kneath
306
46k
Agile that works and the tools we love
rasmusluckow
331
21k
First, design no harm
axbom
PRO
2
1.2k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
380
The Spectacular Lies of Maps
axbom
PRO
1
710
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”;