hard-coding
Writing a fixed value, such as a colour or size, directly into code instead of referring to a named token or setting.
In more detail
Hard-coded values must be found and changed one by one, and they drift apart over time. Tokens replace them with one named source.
Related terms
- design token — A named design decision, such as a colour, font size or spacing value, stored as data so every platform can use the same value.
- design drift — The slow divergence of what products look like from what the design system specifies, as teams copy and tweak values by hand.
Taught in
- What An Embedding Is — AI Engineering: LLM Apps, RAG & Agents
- Workflows Before Agents — AI Engineering: LLM Apps, RAG & Agents
- Design Systems Architecture: Foundations, Layers & Taxonomy — Design Systems & Component Engineering
- Design Tokens: W3C Specs, Global, Semantic & Component Tokens — Design Systems & Component Engineering
- Component API Ergonomics: Composition vs Boolean Config Props — Design Systems & Component Engineering
- Storybook & Component Driven Development Workflows — Design Systems & Component Engineering