Lumos Color System
π Overview
The Lumos Color System is designed to provide scalability, consistency, and accessibility across all platforms. This system ensures a structured approach to color application, seamless adaptability for dark and light themes, and enhanced UI coherence.
π·οΈ 1. Naming Convention
The Lumos Design System follows a structured naming convention to maintain consistency across all tokens:
Format:
πΉ Naming Example:
β System β Defines the design system (e.g., lumos)β Tier β Indicates whether it is a global, alias, or component tokenβ Type β Specifies the token type (e.g., color, spacing, typography)β Group β Identifies the category (e.g., primary, button)β Purpose/Modifier β Defines its specific role (e.g., onHover, large)
Why Use This Naming Convention?
Using a structured naming convention ensures:
β Clarity & Readability β Tokens are easy to understand, reducing confusion for designers and developers.β Scalability β The system can grow without breaking existing structures.β Reusability β Standardized tokens allow for design consistency across multiple platforms.β Efficiency β Speeds up collaboration by providing clear guidelines on token usage.β Flexibility β Enables quick updates to themes, dark mode support, and brand evolution.
This naming structure enables a systematic, future-proof approach to managing colors, typography, spacing, and other UI elements.
2οΈβ£ Example Use Case: Button Component
To illustrate how Global, Alias, and Component-Specific Tokens work together, letβs use a Button Component as an example.
Step 1: Define the Global Tokens
Global tokens establish the base color values.
Step 2: Define the Alias Tokens
Alias tokens map the global tokens to meaningful roles.
Step 3: Apply Component-Specific Tokens
Component-specific tokens assign alias tokens to the button component.
Why Use This Structure?
β Consistency β Ensures all buttons follow the same styling rules.β Scalability β If we need to change the theme, updating the alias tokens automatically updates all buttons.β Accessibility β Ensures contrast and readability for users with different needs.
3οΈβ£ Light & Dark Mode Mapping
Alias tokens allow for seamless light and dark mode switching.