feat: add design system , theme.json, reusable components, docs#347
feat: add design system , theme.json, reusable components, docs#347Hamzaa6296 wants to merge 2 commits intoheygen-com:mainfrom
Conversation
Adds theme.json global tokens, reusable LowerThird and Outro components, and documentation for style inheritance. Addresses issue heygen-com#340.
|
Thanks for the contribution @Hamzaa6296 ! We are thinking about this a bit more holistically internally, we will have some more details in the coming days how we are thinking about this long term will leave this PR and the issue open for now while we discuss |
|
Hi, Severity: action required | Category: correctness How to fix: Remove binding or implement it Agent prompt to fix - you can give this to your LLM of choice:
We noticed a couple of other issues in this PR as well - happy to share if helpful. Found by Qodo code review. FYI, Qodo is free for open-source. |
|
Hi, The fallback in Severity: remediation recommended | Category: correctness How to fix: Fix font-family fallback syntax Agent prompt to fix - you can give this to your LLM of choice:
We noticed a couple of other issues in this PR as well - happy to share if helpful. Found by Qodo code review |
|
|
Thanks for the review! Both issues have been fixed in the latest commit: Replaced data-bind with static default text content, component is now fully self-contained |
Summary
Closes / contributes to #340
Adds a foundational Design System layer to Hyperframes so creators can maintain
consistent brand identity across multiple video compositions without repeating styles.
Changes
templates/theme.json, global design tokens (colors, typography, spacing)templates/components/LowerThird.html, reusable branded lower-third overlaytemplates/components/Outro.html, reusable branded end carddocs/design-system.md, documentation for the design systemHow it works
theme.json--hf-color-accent,--hf-font-family, etc.) are injected at rendertemplates/components/can be copied into any compositionTesting
npx hyperframes init my-videotheme.jsonand a component into the projectnpx hyperframes preview, tokens should resolve correctly