Skip to main content

What is Transparency Flow?

Transparency Flow is the process of deriving semi-transparent versions of Core Colors using the color-mix() function with the transparent keyword. Unlike traditional rgba() or opacity property approaches, Transparency Flow:
  1. Maintains perceptual color accuracy through OKLAB color space
  2. Derives from CSS variables (dynamic, themeable)
  3. Creates consistent visual hierarchy across UI elements

The transparent Keyword in CSS

The transparent 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:
  1. Perceptual accuracy: The perceived opacity matches the specified percentage
  2. Color fidelity: The underlying hue is preserved during transparency
  3. 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

These fallbacks exist for:
  1. Older browsers without color-mix() support
  2. Static color values when CSS variable resolution fails
  3. 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

Transparency is a fundamental tool for communicating information hierarchy. When a color becomes more transparent, it signals “this is context, not primary content.” The human eye naturally focuses on high-contrast (opaque) elements while perceiving transparent elements as environmental. In the Gestalt Color System:
  • 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
This creates a clear visual language where opacity directly maps to information priority.

Shadow and Overlay System

Learn how shadows create depth and elevation in the UI