Skip to main content

Series: Gestalt Color System - Core and Flow


The SMPC Color Architecture

Understanding the Hierarchical Structure

The Monolex color system follows the SMPC (Simplicity is Managed Part Chaos) principle with a clear 4-level hierarchy. This structure provides the foundation for the Core and Flow naming convention.

Level 1: Primitive Colors

Raw Value Definitions

Level 1 represents the absolute foundation - raw color values that form the identity of the application. These are the β€œatomic” values from which everything else derives.

ANSI Terminal Colors

A special subset of Level 1 primitives - the 16 ANSI terminal colors that provide terminal identity:

Level 2: Semantic Colors (OKLCH Core)

The Core Color Definitions

Level 2 introduces OKLCH - the perceptually uniform color space that defines our semantic color palette. These are the Core Colors of our system.

Core and Flow Pattern Emergence

This is where the Core and Flow pattern becomes visible:

OKLCH Value Analysis


Level 1 (Overlay): Flow Color Foundations

Overlay/Transparency System

The overlay system represents a special case of Level 1 colors that are inherently β€œFlow” in nature - they are always derived from base colors.

Level 3: Component Colors

Component-Specific Definitions

Level 3 colors are tied to specific UI components, building on Levels 1 and 2:

Level 4: Contextual Relationships

Background-Foreground Pairs

Level 4 represents the highest abstraction - defining relationships between colors based on context:

Status Badge Pattern: Core and Flow in Practice


Light Theme Override Pattern

Theme-Specific Overrides

The light theme section demonstrates how to override colors while maintaining the hierarchy:

THE CENTER

How CSS Architecture Enables Consistent Information Flow

The 4-Level CSS architecture directly supports information flow visualization:
The architecture ensures that when a user sees green, it always means success. When they see red, it always means danger. This consistency across all 4 levels allows humans to quickly parse information based on color alone - solving the β€œstring soup” problem that occurs without systematic color usage.

Architecture Summary


Theme Manager Integration

How Core and Flow colors flow through the runtime theme system