~/talk

Case studies: Two color management plugins for PostCSS

Talkat CSS-Minsk-JS 2018 · 2018-09-21..09-22· [css, web-platform]
links:none on file
slides:none on file

Two concrete PostCSS plugins: a tiny replaces one color with another utility (about 9 lines of code) that uses a color-conversion library and css-tree parsing to match keywords, hex, rgb/hsla and handle shortened properties, and a production color theme generator that clones rules by BEM modifiers, maps theme cases, converts colors to HSL and applies a lightness delta (example 20%) to produce lighter/darker variants. Implementation uses PostCSS and CSSTree, runs in production, supports IE10/11 by emitting static CSS and emits warnings for inconsistent modifier styles.

AI-written summary · about

  1. 0:00Introduction
  2. 0:37PostCSS
  3. 2:18Other useful plugins
  4. 5:45Removing media queries
  5. 8:40PostCSS documentation
  6. 14:30Visitor Pattern
  7. 16:25Relative Values
  8. 18:19Brand Colors
  9. 22:05Code
  10. 24:22Side effects
  11. 26:40Solution
  12. 28:24IcedTea Explorer
  13. 29:36Conclusion
  14. 30:06Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.