What is Transparency Flow?
Transparency Flow is the process of deriving semi-transparent versions of Core Colors using thecolor-mix() function with the transparent keyword. Unlike traditional rgba() or opacity property approaches, Transparency Flow:
- Maintains perceptual color accuracy through OKLAB color space
- Derives from CSS variables (dynamic, themeable)
- Creates consistent visual hierarchy across UI elements
The transparent Keyword in CSS
Thetransparent keyword in CSS represents rgba(0, 0, 0, 0) - a fully transparent color with no RGB component. When used in color-mix():
Why OKLAB for Transparency?
OKLAB is chosen because:- Perceptual accuracy: The perceived opacity matches the specified percentage
- Color fidelity: The underlying hue is preserved during transparency
- No color shift: Unlike sRGB mixing, OKLAB does not shift toward gray
Light Overlay System
Light overlays create subtle highlights on dark backgrounds. They add visual feedback without overwhelming the content.Light Overlay Opacity Progression
Light Overlay Usage Patterns
Legacy Fallback Variables
- Older browsers without
color-mix()support - Static color values when CSS variable resolution fails
- Documentation of intended opacity values
Dark Overlay System
Dark overlays create shadows and depth in the UI. They use black as the base color for universal darkening.Dark Overlay Opacity Progression
Light vs Dark Overlay Comparison
Semantic Color Transparency (Muted Variants)
Muted colors are semi-transparent versions of semantic colors. They are used for backgrounds that need to convey meaning without overwhelming content.Muted Color Architecture
Selection Background Transparency
Selection states use the primary color at 20% opacity to indicate selected items without obscuring content.Selection Transparency Analysis
Status Badge Transparency System
Status badges use a three-color system: full opacity for icons/text, 20% opacity for backgrounds.Status Badge Visual System
Light Theme Transparency Overrides
Light themes require different overlay values because dark elements on white backgrounds are more visible than light elements on dark backgrounds.Dark vs Light Theme Comparison
THE CENTER
How Transparency Communicates Information Flow
- Full opacity (100%): Primary actions, important text, active states
- Mid opacity (20%): Selection backgrounds, status badges, semantic regions
- Low opacity (5-12%): Hover states, subtle separators, ambient feedback
Shadow and Overlay System
Learn how shadows create depth and elevation in the UI