Skip to main content

CSS System Architecture

“VariableMD extends the Brick from Terminal to Documents”

How the CSS System Works


The Two-Anchor System

The heart of Monolex theming: all colors derive from just two anchor points.

Theme Switching

How dark and light themes work with the anchor system:

Container Queries

Traditional responsive design responds to window size. VariableMD responds to container size.

Adaptive Typography

Text automatically adjusts to container width:

Heading Scale System

One setting controls all heading sizes through linear interpolation:

Variable Bridging

How theme variables flow from global to component level:

OKLCH Color Space

Monolex uses OKLCH for perceptually uniform colors:

Key Principles


Summary


Related: