~/talk

Single Directory Components in Core: A Modern Approach to Drupal’s Front-end

Talkat Design4Drupal Boston 2023 · 2023-07-20..07-21· [drupal, frontend-architecture]
slides:none on file

Drupal core adds Single Directory Components in 10.1 so a component’s template, CSS, JS and metadata live together and are auto‑loaded; a demo converts node--session teaser into a details.component.yaml + details.twig directory, fixes schema errors, and shows SDC auto-includes CSS/JS and emits helpful dev errors. Schemas use JSON Schema for props/slots (twig blocks), modules require schemas while themes may omit them, components can replace theme modules, and Storybook hooks exist via CL server.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:12Problem with Drupal’s front-end
  3. 5:18Why components matter
  4. 6:24Benefits of single directory
  5. 7:07Coding karaoke demo starts
  6. 10:41Converting component to SDC
  7. 14:43Fixing schema and errors
  8. 17:09Handling assets and paths
  9. 20:58Finalizing the component
  10. 22:03Component metadata explained
  11. 25:38Component replacement rules
  12. 27:05Future plans for SDC
  13. 28:33Integration with design systems
  14. 30:16How to contribute and help
  15. 30:57Q&A: Template dependency
  16. 33:30Q&A: Asset organization
  17. 34:53Q&A: SASS compilation
  18. 36:20Q&A: Storybook integration
  19. 37:24Q&A: Library overrides
  20. 40:36Q&A: Fast-tracking to core
  21. 42:42Q&A wrap-up and thanks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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.