~/talk

Advanced CSS Custom Properties for Components

Talkat Florida DrupalCamp 2026 · 2026-02-20..02-22· [css, component-design]
links:none on file
slides:none on file

Demos show CSS custom properties used as a real component API: root tokens for design consistency, per-component overrides to avoid 50x variation bloat, and parent-level redefinitions for placement contexts like landing / text / sidebar. Examples use Twig single-directory components, the JavaScript style API to set variables at runtime, calc() for related spacing, and an actual AppState University implementation. The talk highlights @property type checking to reject wrong units and inline CSS variables via JS and notes media/container query support is still pending.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 3:30What is a component
  3. 8:44CSS custom properties overview
  4. 12:44Custom properties as variables
  5. 17:59Component variations and custom properties
  6. 21:36Component variations vs custom properties
  7. 27:44Solving complex padding scenarios
  8. 31:08Custom properties in calculations
  9. 34:00Type checking with custom properties
  10. 39:26Summary and Q&A
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.