Design Token
Token di design
Un Design Token dà un nome a una singola scelta di design. Alcuni esempi sono un colore, uno spazio, un carattere o la velocità di un'animazione.
Un altro esempio
Ogni componente utilizza color.text.muted invece di copiare lo stesso codice grigio molte volte.
Parti principali
- 01Foundation or token
- 02Applied component
- 03Visible state and rule
Usalo quando
Usane uno quando una scelta di design deve aggiornarsi allo stesso modo attraverso temi o piattaforme.
Non usarlo quando
Non creare un token per un valore usato una sola volta, a meno che il nome non aggiunga un significato reale.
Nome usato nel codice
--color-text-muted Prima di spedire
Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience.
Outcome: Complete the task with Token di design (Design Token). User context: Ogni componente utilizza color.text.muted invece di copiare lo stesso codice grigio molte volte. Design concept to apply: Token di design (Design Token). Why it fits: Usane uno quando una scelta di design deve aggiornarsi allo stesso modo attraverso temi o piattaforme. Do not use it when: Non creare un token per un valore usato una sola volta, a meno che il nome non aggiunga un significato reale. Design requirements: Set the content order, shared design values, and reusable components. Define how the layout changes by screen size and state. Keep useful design choices separate from decoration. Inclusion and resilience: Check contrast, zoom, languages, themes, and reduced motion when needed. Do not use color or effects as the only way to show meaning. Acceptance criteria: The design stays clear on phones and desktops, at zoom, in every theme, and in all supported languages. Interactive states stay clear and consistent. Evidence and limits (evidence boundary): Un documento formale può ancora essere una bozza, un release candidate o la versione finale. Controlla il suo stato e il supporto per browser o piattaforma. Unknowns to confirm: Brand limits, amount of content, supported themes and languages, target devices, and design-system rules.
Controlla questa richiesta
Review how Token di design (Design Token) is used now. Definition: Un Design Token dà un nome a una singola scelta di design. Alcuni esempi sono un colore, uno spazio, un carattere o la velocità di un'animazione. Release checks: Check content order, shared design values, component consistency, contrast, zoom, and layout changes by screen size. Verify every theme, language, and state. If there is motion, offer an equal reduced-motion experience. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.