Envisioning a Design System Maintained by the Drupal Community
summary
Generic Drupal Web Components builds a small library (card, menu, link) that actually fetches Drupal data via the Decoupled Menus JSON endpoint and renders equally in Twig and Vue using native web platform APIs (custom elements, Shadow DOM, HTML templates). The menu proof‑of‑concept uses fetch to load menus and supports theming via CSS custom properties and Open Props; a companion npm package Drupal State caches and flattens JSON:API responses and a store/provider pattern renders templates declaratively. Works cross‑framework but needs better dev ergonomics, server‑side rendering (see declarative Shadow DOM), and broader community maintenance. GDWC-menu
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker background
- 2:35What are web components?
- 9:52Pros and cons of web components
- 13:54Menu component for Drupal
- 17:17Styling web components
- 23:53Design tokens and Open Props
- 29:26Drupal-aware components
- 33:08Managing application state
- 38:44Drupal State library
- 42:42Future of web components in Drupal
- 47:24Acknowledgements and contributors
- 48:07Q&A session
