~/talk

Custom CSS is the path to inconsistent UI

Talkat React Finland 2019 · 2019-04-24..04-26· [react, design-collaboration]

Custom CSS causes divergence in real projects: an analysis finds typography and whitespace as the biggest offenders, with many nearly identical but inconsistent values. The remedy is design tokens and a small set of primitive components (Text, Heading, Spacing, Flex/Box/Grid) that expose spacing and typography as props. Implementation uses CSS-in-JS and a style-system library so values come from tokens, margins and font sizes become API choices, and the approach proves it reduces bespoke styles and improves consistency.

AI-written summary · about

  1. 0:00Start
  2. 1:16Sources of custom CSS
  3. 2:43Design tokens implementation
  4. 3:11Custom CSS & design tokens
  5. 3:43Bad token combinations
  6. 5:17Text styles
  7. 5:39What else?
  8. 6:09API: selecting a style
  9. 7:38API: rigidity vs flexibility
  10. 8:13API: custom HTML element
  11. 9:10Example
  12. 10:21Spacing scales
  13. 10:49Scale naming
  14. 12:13Flexbox layouts
  15. 12:31Responsive layouts
  16. 12:50CSS Grid Layouts
  17. 13:14Plain CSS
  18. 14:58Why use primitives
~/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.