Skip to main content

Module adaptive

Module adaptive 

Source
Expand description

Case 5 — mode-adaptive brand.

A single brand color faces two backgrounds (light and dark) and the two checks pull in opposite directions. The engine measures each independently and only edits the failing mode.

rustio-admin is currently light-only, so today both outputs often equal the input. The token structure still ships both so a future dark-mode return is a configuration flip, not a refactor.

Structs§

AdaptiveBrand
The light- and dark-mode variants of one brand color, plus a flag for each side indicating whether the engine had to adjust it and whether that adjustment actually cleared AA. *_adjusted says “we tried”; *_clears_aa says “we succeeded”.

Functions§

adaptive_brand
Produce the light/dark pair for one brand color.