Skip to main content

resolve_token

Function resolve_token 

Source
pub fn resolve_token(
    theme: &ResolvedTheme,
    reference: &Value,
    mode: Mode,
) -> Option<Value>
Expand description

$color.primary in dark → "#e5e5e5"; $spacing.md → 12; $shadow.sm → the layers; $type.family.sans → "Inter". None when not a token (or not one this theme has).