<aside> <img src="/icons/home_blue.svg" alt="/icons/home_blue.svg" width="40px" /> Home | Foundations | Components | Addons | Patterns
</aside>
Design Tokens are the foundational building blocks of the Aqua Design System. They are key values that define visual properties like color, typography, spacing, and more. Their purpose is to ensure consistency, scalability, and easy implementation across different platforms (web, mobile, etc.).
Application of the color palette brings a unified and recognizable consistency to Masiv vast array of digital products and interfaces. This consistency is grounded by a set of well-defined rules on how to work with the Aqua component library.
Aqua establishes a clear and intuitive relationship between Design Tokens and components, enabling UX and UI designers to build cohesive and consistent interfaces.
When applying styles to components, many properties are derived directly from Design Tokens. For example, a button’s background might be defined using the --primary token, ensuring consistency across the entire design system.
Aqua organizes its Design Tokens into three main collections:
This collection contains the raw foundational values used across the system. These values are not directly tied to specific components but serve as the building blocks for all design decisions.
Aqua design tokens are grouped by function and usage:
Aqua supports custom themes using token layering and nesting:
Token nesting is a technique where one token references another, creating a hierarchy or relationship between design tokens. This allows for easier updates and consistent styling across your product.
Let’s say you have a base color token:
"color-base-blue": "#1D4ED8"
You can then nest it inside other tokens:
"color-background-primary": "{color-base-blue}",
"color-button-primary-bg": "{color-background-primary}"