Malachi. UI. TokenGen. Token
(malachi v0.22.7)
View Source
One token as Malachi.UI.TokenGen.Source read it, before anything is computed from it.
pathis where it sits in the token file (color.state.active), the name every section of the file uses to refer to it.nameis the name every consumer sees (state-active): the CSS custom property without its dashes, the key in the snapshot and inMalachi.UI.Tokens, and the Rust field once dashes become underscores.rawis the value as authored:%{light: _, dark: _}for a themed color, otherwise the$value, with references still in their{path}form.refis the referenced path when the whole value is one reference, andnilotherwise.modesare the$modesalternatives, in declaration order, each a mode name and a path.
Summary
Types
@type platform() :: :web | :elixir | :tui
@type type() ::
:color
| :dimension
| :duration
| :font_family
| :font_weight
| :number
| :cubic_bezier
| :shadow
| :typography