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
25
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
94
Cypress vs. Playwright
silvenon
0
120
Studying Strapi: an open source head headless CMS
silvenon
0
23
CSS Specificity
silvenon
0
20
Make your JavaScript projects more accessible to newcomers
silvenon
0
47
React Hooks
silvenon
0
57
PostCSS
silvenon
0
30
Maintainable Integration Testing in React
silvenon
0
15
Writing Codemods with jscodeshift
silvenon
0
18
Other Decks in Programming
See All in Programming
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
270
Node.js v22 で変わること
yosuke_furukawa
PRO
9
3.2k
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
200
What We Can Learn From OSS
inouehi
0
420
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
380
GitHub Copilotのススメ
marcy731
1
200
PHPはいつから死んでいるかの調査
chiroruxx
1
400
try! Swift Tokyo 2024 参加報告 / try! Swift Tokyo 2024 Report
hironytic
0
200
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
750
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
0
890
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
670
Featured
See All Featured
The Pragmatic Product Professional
lauravandoore
25
5.8k
Building a Scalable Design System with Sketch
lauravandoore
456
32k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
The Brand Is Dead. Long Live the Brand.
mthomps
49
28k
GraphQLとの向き合い方2022年版
quramy
32
12k
Git: the NoSQL Database
bkeepers
PRO
422
63k
Making Projects Easy
brettharned
108
5.5k
jQuery: Nuts, Bolts and Bling
dougneiner
59
7.1k
The Power of CSS Pseudo Elements
geoffreycrofte
60
5k
GitHub's CSS Performance
jonrohan
1025
450k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
357
22k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
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”;