Zum Inhalt springen

Tokens

Tokens

Design Token Referenz — Primitives, Semantic, Brand, Fluid.

Neon nutzt Tailwind v4 @theme als Single Source of Truth in addxion-neon/packages/core/src/tokens/.

SchichtDateiZweck
Primitivesprimitives.cssFarben (accent, info, tip, destructive, success, warning), Radius, Fluid Typography, Font-Stack
Brandbrand.css[data-brand] Overrides — Mechanismus in Neon, Werte beim Consumer
Semanticsemantic.cssIntent-Tokens via @theme inline + theme()
Starlight-Bridgetokens/starlight-bridge.cssNeon Semantic → Starlight --sl-color-*
Docs-Prosedocs/prose.cssStarlight MDX-Komponenten (Cards, Asides, Badges, Tabs, Steps)
shadcn-Bridgetokens/shadcn-bridge.cssNeon Semantic → --background, --foreground, …
Fontsfonts/inter.cssSelf-hosted Inter — siehe Typografie
TokenVerwendung
primary / primary-foregroundCTAs, Akzente
secondary / secondary-foregroundSekundäre Flächen
muted / muted-foregroundDezente Hintergründe
accent / accent-foregroundHighlights, Badges
surface, text, text-mutedFlächen und Fließtext
card / card-foregroundCard-Flächen
code-background, mark-backgroundCode-Blöcke, Highlights
info / info-foregroundDocs-Asides (note)
tip / tip-foregroundDocs-Asides (tip)
border, input, ringRahmen, Formulare, Focus
destructiveFehler, Löschen
success, warningStatus
popoverOverlays

Starlight-Consumers importieren:

@import "@addxion/neon/tokens/starlight-bridge.css";
@import "@addxion/neon/docs/prose.css";

Brand-Werte setzt der Consumer in brand.css via --brand-color-*.

primary
secondary
muted
surface
destructive
success
warning
text

text-sm — fluid

text-base — fluid

text-lg — fluid

text-xl — fluid

text-hero — fluid

Consumer setzen --brand-color-* in brand.css (addxion.com) oder [data-brand].

IDWahrheit
T-PKG-NEONConsumer-Einstieg: @addxion/neon, nicht @addxion/core
T-NEON-BRANDMarkenwerte in Consumer brand.css
T-TRUTHS-SSOTTruths-Registry — referenzieren, nicht duplizieren

Scope: Semantic Tokens und tw:-Utilities.

  • Tokens in addxion-neon pflegen, nicht in Consumern duplizieren
  • Consumer importieren @addxion/neon/styles