~/talk

Crafting Stateful Styles with State Machines

Talkat CSSConf Budapest 2019 · on Wednesday, 2019-09-25· [css, frontend-architecture]
slides:none on file

Claims that finite state machines make styles maintainable, testable, and interactive by encoding component states as attributes and transitions; uses ARIA, data-state attributes, CSS variables and a little JavaScript (examples use an XState/x8-style machine) to stop duplicate API requests and enforce single states; builds CSS-driven demos — button loading/success/fail, drag-and-drop, password form — plus a visualization generator that maps machine configs to diagrams, and shows the approach scales via hierarchical statecharts.

AI-written summary · about

  1. 0:00Introduction
  2. 6:35Applying Classes
  3. 8:20User Flows
  4. 8:50States
  5. 9:55Finite State Machines
  6. 11:10Data Attributes
  7. 13:00Switch Case Statements
  8. 14:30XE
  9. 15:10Drag and Drop
  10. 16:45Previous State
  11. 18:10Animations
  12. 18:30Mouse Movement
  13. 19:10Mouse Movement Example
  14. 19:50State Mapping
  15. 20:40State Charts
  16. 21:30Hierarchy
  17. 22:10Data attribute selectors
  18. 23:10Data show data hide
  19. 23:50Password form example
  20. 24:30Visualization
  21. 25:10Sketch Systems
  22. 25:50Advantages
  23. 26:50Disadvantages
  24. 27:20Complexity
  25. 28:05Resources
~/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.