Setting up primitive tokens was essential for consistency, reusability, and scalability across the design system. From these primitives, we created semantic tokens representing design decisions reused across components and application.
From tokens to components
Core Colors
Color is a powerful tool that enables users to quickly grasp the information hierarchy. Lumina uses three core colors that establish the visual identity and consistency of the OpenAI brand, ensuring immediate recognition across all mediums.
OpenAI core colors determined from platform's usage
These colors play a crucial role in creating a cohesive look and feel, guiding our user's attention and supporting the overall design hierarchy.
Color Scales
Color scales were also prepared based off the core colors, offering flexibility and depth in design while maintaining brand coherence.
These colors created visual hierarchy that allows differentiation between elements such as backgrounds, buttons, and text. Furthermore, color scales support accessibility by providing sufficient contrast options, ensuring readability and usability for all users.
OpenAI color scale based on the core colors. Check
storybook for color values
Semantic Colors
Semantic colors convey specific meanings or statuses, improving usability and accessibility. These colors are not necessarily part of the core brand colors but are used consistently across the design system to communicate specific feedback or states to users.
By using semantic colors, users can quickly and intuitively understand the significance of different UI elements, enhancing both usability and accessibility.
Semantic colors for Lumina
It was very important for us to get our typography right because a large part of OpenAI's platform is documentation, meaning text is being used everywhere.
Using font tokens, text variants, and semantic tokens allows us typographic consistency and clarity, making design scalable and maintainable. This standardization simplifies the design process and ensures a unified user experience.
Font Tokens (Primitives)
Font tokens define core typography styles such as font family, size, weight, and line height for consistency across the design system.
These primitives serve as the foundational elements for all text-related design.
Sample of font tokens for font weight and font size
Text Variants
Text variants are predefined styles for specific text uses like headings, body text, and captions, ensuring design consistency.
Sample of headings and tokens used to create it
We also created guidelines for
spacing and
border radius. These can also be accessed in our project files.