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
PostCSS
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Matija Marohnić
May 21, 2019
Programming
0
47
PostCSS
Matija Marohnić
May 21, 2019
Tweet
Share
More Decks by Matija Marohnić
See All by Matija Marohnić
Goodbye jsdom/happy-dom, hello Vitest Browser Mode!
silvenon
0
10
Introduction to Remix
silvenon
0
150
Cypress vs. Playwright
silvenon
0
170
Studying Strapi: an open source head headless CMS
silvenon
0
50
CSS Specificity
silvenon
0
48
Make your JavaScript projects more accessible to newcomers
silvenon
0
81
React Hooks
silvenon
0
85
CSS Custom Properties
silvenon
0
47
Maintainable Integration Testing in React
silvenon
0
51
Other Decks in Programming
See All in Programming
AI活用のコスパを最大化する方法
ochtum
0
260
生成 AI 時代のスナップショットテストってやつを見せてあげますよ(α版)
ojun9
0
280
GC言語のWasm化とComponent Modelサポートの実践と課題 - Scalaの場合
tanishiking
0
120
ロボットのための工場に灯りは要らない
watany
11
3k
Fundamentals of Software Engineering In the Age of AI
therealdanvega
2
280
ふつうのRubyist、ちいさなデバイス、大きな一年 / Ordinary Rubyists, Tiny Devices, Big Year
chobishiba
1
480
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
500
条件判定に名前、つけてますか? #phperkaigi #c
77web
2
620
Agentic AI: Evolution oder Revolution
mobilelarson
PRO
0
190
Goの型安全性で実現する複数プロダクトの権限管理
ishikawa_pro
2
500
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
350
Codex の「自走力」を高める
yorifuji
0
1.3k
Featured
See All Featured
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
340
Exploring anti-patterns in Rails
aemeredith
2
290
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.7k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
250
Faster Mobile Websites
deanohume
310
31k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
150
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
85
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
200
30 Presentation Tips
portentint
PRO
1
260
Agile that works and the tools we love
rasmusluckow
331
21k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.5k
Transcript
PostCSS
PostCSS • like Babel, but for CSS • what it
basically does: 1. “understands” CSS code 2. changes it using plugins
Autoprefixer .postcssrc.yml plugin configuration
Autoprefixer
Autoprefixer
Easing gradients
Easing gradients
Easing gradients
Easing gradients
Sass? Less? Stylus? • you can combine them with PostCSS
• or create a subset of their features using plugins
Nesting
Nesting
Nesting
How PostCSS works • reads CSS file content • converts
it to an abstract syntax tree (AST) • plugins perform transformations on the AST • new AST is converted back into CSS file content
CSS syntax selector property value declaration rule etc.
Abstract syntax tree (AST)
A good PostCSS plugin • follows a specification (ideally) •
makes your code better without you being aware of it • isn’t magic, doesn’t invent new syntax
Other use cases for PostCSS
stylelint • like ESLint, but for CSS • used for
detecting mistakes and discouraging patterns
stylelint-a11y
stylelint-a11y
postcss.org