Expand description
String constants for the standard theme contract.
Every builtin theme defines these tokens, styles, and gradients. Use these instead of raw strings for autocomplete and typo prevention.
use opaline::{Theme, names::tokens, names::styles};
let theme = Theme::default();
let accent = theme.color(tokens::ACCENT_PRIMARY);
let kw = theme.style(styles::KEYWORD);