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
45
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
9
Introduction to Remix
silvenon
0
140
Cypress vs. Playwright
silvenon
0
160
Studying Strapi: an open source head headless CMS
silvenon
0
48
CSS Specificity
silvenon
0
39
Make your JavaScript projects more accessible to newcomers
silvenon
0
76
React Hooks
silvenon
0
83
CSS Custom Properties
silvenon
0
40
Maintainable Integration Testing in React
silvenon
0
47
Other Decks in Programming
See All in Programming
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
310
実はマルチモーダルだった。ブラウザの組み込みAI🧠でWebの未来を感じてみよう #jsfes #gemini
n0bisuke2
3
1.4k
生成AIを利用するだけでなく、投資できる組織へ
pospome
2
440
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.3k
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
210
[AI Engineering Summit Tokyo 2025] LLMは計画業務のゲームチェンジャーか? 最適化業務における活⽤の可能性と限界
terryu16
2
300
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
2
1.1k
CSC307 Lecture 01
javiergs
PRO
0
670
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
190
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
530
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
360
Cap'n Webについて
yusukebe
0
160
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
42
2.9k
Heart Work Chapter 1 - Part 1
lfama
PRO
4
35k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.8k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
230
From π to Pie charts
rasagy
0
110
Technical Leadership for Architectural Decision Making
baasie
0
210
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
0
1k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
190
Ruling the World: When Life Gets Gamed
codingconduct
0
120
Abbi's Birthday
coloredviolet
0
4.3k
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