Blazor playground

Nova v3.38.0

Preview

Blazor

Naming convention

How a token name is built, and the types of tokens.

A clear naming convention is essential for scalability and usability, ensuring that design tokens are easy to understand and implement across teams.

Best Practices for Naming#

Our naming convention is designed to create a universal language that bridges the gap between designers and developers. Instead of relying on arbitrary colour names or direct design references, our approach focuses on the meaning and intention behind design elements. This ensures:

  • Clarity & Consistency – Tokens are self-explanatory and easy to understand.
  • Scalability & Maintainability – The structure prevents technical debt by avoiding hardcoded values.
  • Flexibility Across Themes & Modes – Names reflect intent rather than specific values, making adaptation seamless.

Naming Structure#

Tokens follow a structured format#

The token name intentional.color.feedback.error.high.background, labelled part by part as domain, group, concept, modifier and property.
  • Domain – Defines the scope (e.g., intentional tokens for semantic use).
  • Group – Categorizes the type (e.g., colour, spacing, typography).
  • Concept – Describes the general purpose (e.g., feedback, interaction).
  • Modifier – Adds specificity (e.g., error.high, container.neutral).
  • Property – Specifies the design property (e.g., background, border).
  • State (optional) – Defines interaction states (e.g., hover, active).

Examples#

DomainGroupConceptModifierPropertyState
intentionalcolourfeedbackerror.highbackground—
intentionalcolourinteractioncontainer.neutralborderhover
intentionalcolourlevel00background—
intentionalcolourinteractioncontainer.branded.highborderhover

By structuring tokens in this way, we ensure a future-proof, context-agnostic, and developer-friendly design system that adapts effortlessly across products and platforms.

Types of Tokens#

Primitive Tokens#

The foundational values of the system (e.g., raw colours, spacing, typography scales). These are abstract and context-agnostic, serving as the building blocks for all other tokens.

  • Colour
  • Spacing
  • Typography
  • Radius
A tree from Primitives to color, font-size, font-weight, leading, line-height, radius and spacing.

Intentional Tokens#

Tokens that convey semantic meaning and design intent (e.g., feedback.error.high). They abstract primitives into meaningful categories, ensuring consistency across themes and modes

  • Content: Body content (text, icons, borders)
  • Level: Defines the background and surface colours of layouts.
  • Interaction: Interactive elements (buttons, links, navigation items)
  • Feedback: Status indicators (error, warning, success)
  • Accent: Highlights (used to emphasize elements)
A tree from Color to its groups Content, Level, Interaction, Feedback, Accent, Chart, focus and Rainbow, each with its number of tokens.

Example - Feedback tokens structure :

A tree from Feedback to success, warning, neutral, error and information, each split into low and high. High information ends in text, icon, border and background.

Component-Specific Tokens#

Warning

Component specific tokens is an additional layer of abstraction that help the Nova team keeps a granular control over the style of every component. These tokens shouldn’t be used by the products.

Tokens applied directly to components, defining their styling while inheriting from intentional tokens. They ensure a consistent look and feel while allowing flexibility within the system.

  • Tokens specific to UI components (e.g., buttons, forms, modals).

Colours

A tree from Components to alert, avatar, button, form, list, menu, notification, overlay, popover and tooltip.

Spacings

A tree from spacings to the components that have their own: alert, avatar, badge, button, dialog, form, icon, list, menu, notification, popover and tooltip.
  • we use 2 main types of tokens to build a component: spacings and colours