Fundamentals

Theme Modes and Variables

Use design tokens to switch between different theme modes.

🚧This page is still under construction and some content may not be complete.

Introduction

One of the most significant ways of managing sources of truth is through design tokens. In Master CSS, you can implement your design tokens through configuration.

This is similar to Figma's variables.


Benefits

Design tokens are a fundamental part of design systems and are crucial for maintaining design consistency and efficiency in projects, especially in larger organizations or projects with complex design requirements. They help bridge the gap between design and development, promoting collaboration and ensuring a cohesive user experience.

  1. Abstraction: Design tokens abstract design decisions into a format that can be easily applied and reused. For example, instead of specifying a color as "red," a design token might represent it as "primary-red."

  2. Consistency: They help maintain design consistency across various applications, platforms, and teams by providing a single source of truth for design attributes.

  3. Maintainability: Design tokens make it easier to update and manage design properties. When a design change is required, it can be made in one central place, and it will automatically propagate to all instances where that token is used.

  4. Cross-platform: Design tokens can be used in different design tools, development environments, and platforms, ensuring a unified design language.

  5. Automation: Developers can use design tokens to automate the generation of styles, making it more efficient to implement designs in code.

  6. Scalability: They allow design systems to scale and evolve as new design decisions are made without disrupting existing implementations.


Future

Fundamentals
Reusing Styles

This guide helps develop concepts for code reuse and de-duplication techniques.

Design Variables
Colors

Customizing color variables or starting with the crafted palette.

© Aoyue Design LLC.