diff --git a/docs/design-system.md b/docs/design-system.md new file mode 100644 index 000000000..af4c1f9dd --- /dev/null +++ b/docs/design-system.md @@ -0,0 +1,29 @@ +# Design System & Reusable Components + +Hyperframes supports a global design system via `theme.json` and reusable HTML components. + +## 1. Global Theme (`templates/theme.json`) + +Define your brand's colors, typography, and spacing once: + +```json +{ + "colors": { "accent": "#FF5733" }, + "typography": { "heading": { "fontSize": "72px" } } +} +``` + +All CSS variables are auto-injected at render time with the prefix `--hf-*`: +- `--hf-color-accent` +- `--hf-font-family` +- `--hf-heading-size` +- `--hf-spacing-margin` + +## 2. Reusable Components (`templates/components/`) + +Pre-built components live in `templates/components/`. Copy any into your composition: + +- `LowerThird.html` — name + title overlay +- `Outro.html` — branded end card + +## 3. Style Inheritance Order \ No newline at end of file diff --git a/templates/components/LowerThird.html b/templates/components/LowerThird.html new file mode 100644 index 000000000..22f9c5e37 --- /dev/null +++ b/templates/components/LowerThird.html @@ -0,0 +1,44 @@ + +