Design Token
Named design decisions — color, spacing, radius, type — stored as data so they can be shared and re-themed.
A design token is a named design decision stored as data rather than repeated as a literal: a color role, a spacing step, a radius, a font family, a shadow. Tokens are the interface between design intent and implementation, and the substrate that makes theming possible.
The distinction that gives them their power is between primitive tokens (a specific color value) and semantic tokens (the role that color plays — surface, accent, danger). Components should consume roles. A component referring to a raw value has hard-coded a decision that the system exists to keep changeable.
Two governance problems recur once tokens are shared across teams.
One name, two values. Two pieces of parallel work can each introduce the same token name with a slightly different value, and whichever lands second silently overwrites the other. The convention that resolves it is to never disagree on a name: if two shades are genuinely both needed, they get distinct names.
Orphaned tokens. Rerouting a token so it becomes overridable can leave the previous name referenced by nothing, while documentation, tooling, and editor fields keep advertising it. Writes to it then succeed and render nothing — a Silent Failure no test can catch. The check is to search the compiled output for the name and confirm zero hits.
See also13
CSS Custom Property
A user-defined CSS property that participates in the cascade and inherits down the tree.
Design & Interface12 connections
Scoped Styling
Confining a set of style decisions to a subtree so the same component can look different in different contexts.
Design & Interface11 connections
OKLCH
A perceptually uniform color space that makes lightness and chroma behave predictably.
Design & Interface15 connections
Utility-First CSS
Composing styles from many small single-purpose classes rather than authoring semantic rules.
Design & Interface15 connections
Cascade
The algorithm deciding which declaration wins when several apply to the same element.
Design & Interface12 connections
Design System
A shared vocabulary of tokens, primitives, and rules that makes independent work converge.
Design & Interface22 connections
Dark Mode
Serving an alternate palette for low-light preference, and the three states that implies.
Design & Interface19 connections
Typographic Scale
A constrained set of type sizes and their paired line heights and spacing.
Design & Interface17 connections
Root Cause Analysis
Escalating past the visible symptom until you find the layer that actually produced it.
Method49 connections
Cascading Style Sheets
The language that describes how web pages look, proposed in 1994 to separate presentation from structure, nearly sunk by inconsistent browser support, and grown since into a layout and animation system that does work once reserved for scripts.
Web Platform11 connections
CSS-in-JS
Writing a component's styles in JavaScript alongside its markup and logic, so styles are scoped automatically and can depend on the component's state, an approach popular in the React era whose runtime costs led to build-time variants.
Web Platform16 connections
Ricing
The hobby of customizing a computer desktop's appearance into a coherent look, and the online culture of sharing screenshots and configuration files.
Meaning & Society9 connections
Box Model
The rule that every element on a web page is a rectangle of content wrapped in padding, border, and margin, and the two quirks, box sizing and collapsing margins, behind most surprises in CSS spacing.
Design & Interface10 connections
Linked from18
- AffordanceDesign & Interface
A property an object's design communicates about how it can be used, before any instruction is read.
- Box ModelDesign & Interface
The rule that every element on a web page is a rectangle of content wrapped in padding, border, and margin, and the two quirks, box sizing and collapsing margins, behind most surprises in CSS spacing.
- CascadeDesign & Interface
The algorithm deciding which declaration wins when several apply to the same element.
- Cascading Style SheetsWeb Platform
The language that describes how web pages look, proposed in 1994 to separate presentation from structure, nearly sunk by inconsistent browser support, and grown since into a layout and animation system that does work once reserved for scripts.
- Color ContrastDesign & Interface
The measured luminance difference between foreground and background, and the accessibility floor it must clear.
- Container QueryDesign & Interface
Styling based on the size of an element's container rather than the viewport.
- CSS Custom PropertyDesign & Interface
A user-defined CSS property that participates in the cascade and inherits down the tree.
- Dark ModeDesign & Interface
Serving an alternate palette for low-light preference, and the three states that implies.
- Design SystemDesign & Interface
A shared vocabulary of tokens, primitives, and rules that makes independent work converge.
- Motion DesignDesign & Interface
Using movement to communicate change, continuity, and hierarchy rather than to decorate.
- OKLCHDesign & Interface
A perceptually uniform color space that makes lightness and chroma behave predictably.
- Opponent Process TheoryDesign & Interface
Color is recoded after the cones into red-green, blue-yellow and light-dark opponent channels.
- RicingMeaning & Society
The hobby of customizing a computer desktop's appearance into a coherent look, and the online culture of sharing screenshots and configuration files.
- Scoped StylingDesign & Interface
Confining a set of style decisions to a subtree so the same component can look different in different contexts.
- Typographic ScaleDesign & Interface
A constrained set of type sizes and their paired line heights and spacing.
- UI PrimitiveDesign & Interface
The small set of typed components through which all interface markup is expressed.
- Utility-First CSSDesign & Interface
Composing styles from many small single-purpose classes rather than authoring semantic rules.
- Variable FontsDesign & Interface
A single font file that encodes a continuous design space, letting weight, width, and other axes be set to any value at runtime.