~/talk

Refactoring CSS

Talkat CSS Day 2025 · 2025-06-05..06-06· [css, developer-experience]
slides:none on file

Practical checklist: run Project Wallace and CSS Stats, use Chrome DevTools Coverage or Puppeteer to spot unused rules (one homepage showed 64.8% unused CSS), and try Firefox’s style editor and Google’s baseline checker with analytics. Refactor by component, keep a temporary overrides file, prefer data-attributes, logical properties and font-clamp, migrate pixels to rems, and replace risky third-party widgets with CSS where it reduces maintenance burden and measurable regressions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:48Why refactoring CSS matters
  3. 2:54Returning after leave
  4. 5:43Legacy codebases
  5. 9:15Motivation for refactoring
  6. 10:41CSS audit approach
  7. 15:34CSS audit tools
  8. 20:09Next steps after audit
  9. 23:20Documenting pain points
  10. 27:12Convincing product teams
  11. 35:43Refactoring in isolation
  12. 37:49Naming components
  13. 39:34Logical properties
  14. 41:22Progress over perfection
  15. 42:30Q&A
~/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.