TokenChain
Zeigt für eine Farbrolle die Kette Tailwind-Utility → shadcn-Brücke → semantische Rolle → Radix-Stufe → Wert in Hell und Dunkel sowie Radius- und Schattenrollen mit Live-Vorschau.
src/components/ds/TokenChain.astroSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use through the documented parent
Entry point: src/components/ds/EmbedPage.astro
- Daten kommen beim Build aus src/lib/token-chain.ts (Token-CSS per import.meta.glob ?raw in der Reihenfolge von global.css); keine Werte in der Komponente pflegen.
- Swatches lesen die Live-Rollen in einem .light- und einem .dark-Bereich; neue Radix-Skalen müssen im Glob von token-chain.ts stehen, sonst bricht der Build.
Examples
No dedicated demo is assigned. Use the documented entry point and consumers below; this is not evidence of a missing runtime component.
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
interface Props {locale: Locale}Astro.props
Bindings and defaults read from source; these do not add inferred types.
locale
Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
- src/pages/embed/[component].astro
- src/components/ds/EmbedPage.astro
- src/components/ds/TokenChain.astro
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
@/components/SegmentSwitcher.astro·src/components/SegmentSwitcher.astro@/lib/token-chain·src/lib/token-chain.ts@/i18n·src/i18n/index.ts