Skip to main content

STEP_FLOOR

Constant STEP_FLOOR 

Source
pub const STEP_FLOOR: f32 = 1.21;
Expand description

The contrast a tonal step must clear against the token it is a step of.

A ratio says how far to travel, not how far that lands, and the two are the same thing only when the base has room to travel in. Across the bundled themes a derived content.secondary sits between 1.21 and 1.44 of its ink; the exceptions were the two themes whose ink is #000000, where OKLab L is 0, 12 percent of nothing is nothing, and the sRGB transfer curve compresses what is left into a 3/255 move. So the floor is the bottom of the band the healthy themes already reach, and a theme inside it does not move.

Deliberately below DISTINCT: that is the 3:1 two areas need to read as separate, and an emphasis step is one voice quieter rather than a second region. Asking 3:1 of it would flatten every theme’s ramp into three widely spaced greys.