Skip to content

Phase 0 Overview

apps/docs/src/content/docs/prototype/overview Click to copy
Copied! apps/docs/src/content/docs/prototype/overview

Status: In Progress Timeline: February 2026 Goal: Validate core technology stack and architecture decisions through working prototypes


  1. Validate Technology Stack - Confirm Lit 3.x + Storybook 10.x + Astro/Starlight work together seamlessly
  2. Prove Component Architecture - Build 2-3 proof-of-concept components that demonstrate the full pattern
  3. Test Drupal Integration - Verify web components render correctly in Drupal TWIG templates
  4. Establish Build Pipeline - Set up monorepo, TypeScript, build tooling, and CI/CD
  5. Create Documentation Hub - Stand up the Astro/Starlight docs site with initial content

Phase 0 is about reducing risk before committing to a full 40+ component build. By building a small vertical slice (button, card, form field), we validate every layer of the architecture:

  • Component authoring (Lit 3.x with TypeScript)
  • Design tokens (Terrazzo + W3C DTCG format) (planned)
  • Storybook integration (autodocs, controls, a11y addon) (complete)
  • Documentation generation (CEM → Starlight API pages)
  • Drupal integration (TWIG templates, behaviors)
  • Testing (Vitest browser mode, axe-core) (planned)
  • Build & publish (Vite library mode, npm package)
DeliverableDescriptionStatus
Monorepo setupnpm workspaces + Turborepo, TypeScript strict, ESLint/PrettierComplete
wc-button componentFirst proof-of-concept componentComplete
wc-card componentContent card with slots and variantsComplete
wc-text-input componentForm input with validation and ElementInternalsComplete
Design token pipelineTerrazzo config → CSS custom propertiesPlanned
Storybook instanceStories, autodocs, a11y testingComplete
Docs siteAstro/Starlight with initial architecture docsComplete
Vitest testingBrowser-mode unit testingPlanned
Drupal prototypeTWIG template rendering web componentsPlanned
  • wc-button renders in Storybook with full controls
  • Design tokens generate correctly from DTCG JSON
  • Components pass axe-core accessibility audit
  • TWIG template successfully renders wc-button
  • CEM generates accurate API documentation
  • Vitest browser tests pass for all prototype components
  • Documentation site builds and deploys

Once Phase 0 validates the architecture, Planning & Discovery provides the comprehensive build plan for the full 40+ component library.