Skip to main content

resolve

Function resolve 

Source
pub fn resolve(theme: &ThemeColors) -> SemanticTokens
Expand description

Resolve an authored theme into the full intent token set.

  1. Copy each present base intent from the authored colors.
  2. Compute the derived interactive states from the base intents, using the same math the apps used to apply individually (so output is identical). Each derived token is emitted only when its source intents exist, mirroring the skip-missing behavior of the rest of the crate.