Skip to main content

SEEDS_EXTENSION

Constant SEEDS_EXTENSION 

Source
pub const SEEDS_EXTENSION: &str = "org.egui-pop.seeds";
Expand description

The root $extensions key under which a token file gives colour scales by their seed rather than as twelve values:

{ "$extensions": { "org.egui-pop.seeds": {
    "blue": { "seed": "#8e44ad", "scheme": "light" }
} } }

When the theme is resolved, each such scale is generated from its seed (Ramp::fitted, fitted to the theme’s surfaces and text as the file gives them), then the file’s own tokens are laid over it: a step the file also gives explicitly keeps the file’s value.