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
Matija Marohnić
May 21, 2019
Programming
0
46
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
49
CSS Specificity
silvenon
0
47
Make your JavaScript projects more accessible to newcomers
silvenon
0
80
React Hooks
silvenon
0
85
CSS Custom Properties
silvenon
0
43
Maintainable Integration Testing in React
silvenon
0
50
Other Decks in Programming
See All in Programming
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
490
米国のサイバーセキュリティタイムラインと見る Goの暗号パッケージの進化
tomtwinkle
1
320
CSC307 Lecture 12
javiergs
PRO
0
450
個人開発は儲からない - それでも開発開始1ヶ月で300万円売り上げた方法
taishiyade
0
120
AIに仕事を丸投げしたら、本当に楽になれるのか
dip_tech
PRO
0
170
AIプロダクト時代のQAエンジニアに求められること
imtnd
1
490
Rubyと楽しいをつくる / Creating joy with Ruby
chobishiba
0
200
CDIの誤解しがちな仕様とその対処TIPS
futokiyo
0
120
CopilotKit + AG-UIを学ぶ
nearme_tech
PRO
1
110
AIとペアプロして処理時間を97%削減した話 #pyconshizu
kashewnuts
1
170
猫の手も借りたい!ので AIエージェント猫を作って社内に放した話 Claude Code × Container Lambda の Slack Bot "DevNeko"
naramomi7
0
220
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
2
400
Featured
See All Featured
For a Future-Friendly Web
brad_frost
183
10k
AI: The stuff that nobody shows you
jnunemaker
PRO
3
330
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
My Coaching Mixtape
mlcsv
0
61
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
RailsConf 2023
tenderlove
30
1.4k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
240
Building AI with AI
inesmontani
PRO
1
740
New Earth Scene 8
popppiees
1
1.6k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
1.9k
GraphQLの誤解/rethinking-graphql
sonatard
74
11k
The SEO Collaboration Effect
kristinabergwall1
0
370
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