Vue playground

Nova v3.38.0

Preview

Vue

Tokens

What design tokens are, why they matter and where they are stored.

Design tokens are the core building blocks of a design system, ensuring consistency and reusability across digital products by defining styles like colors, typography, and spacing.

Understanding Design Tokens#

Design tokens are like building blocks for design decisions. They define colors, typography, spacing, and other styles in a consistent and reusable way across all platforms.

Why are they important?#

  • They keep designs consistent.
  • They make design updates easier.
  • They help developers and designers work together efficiently.

Where Are Tokens Stored?#

Design tokens are stored in Figma, the single source of truth for all components of the Nova Design System.

Figma's variables panel showing the intentional colour tokens with a column each for Spark Light, Spark Dark and Ocean Light.

For Designers#

You use tokens directly in Figma to create consistent designs.

Info

Figma variable structure: Intentional / color / feedback / success / high / text

Figma's fill and stroke settings using the tokens color/feedback/information/low/background and color/feedback/information/low/border.

For Developers#

Tokens are exported as CSS variables and Tailwind utility classes, ensuring design and code stay aligned.

Info

Nova utility class structure: .text-feedback-success-high

Types of Design Tokens#

  • Primitive Tokens → Basic values like colors and spacing.
  • Intentional Tokens → Purpose-specific tokens (e.g., error, success, interactive elements).
  • Component-Specific Tokens → Tokens tailored for particular UI components (e.g., buttons, forms).
Reference flow
Reference flow
Context agnostic tokens
Context agnostic tokens

By leveraging a context-agnostic approach, tokens remain flexible and reusable, decoupling design decisions from specific themes while maintaining a unified design language.

Chapters

  1. Tokens in NovaHow a token travels from Figma to code.
  2. Context-agnostic tokensTokens that keep their meaning across light and dark mode and across themes.
  3. Naming conventionHow a token name is built, and the types of tokens.
  4. Variables and utility classesEvery token as a CSS variable and as a Tailwind utility class.