Skip to main content

Crate rusty_tokens

Crate rusty_tokens 

Source
Expand description

Design tokens for Rust UIs – semantic CSS custom-property names + neutral defaults.

Token names are the CSS contract (--rt-*); default values are a small ASCII starter theme. Optional feature css emits a :root stylesheet.

By default installs rusty_alloc via rusty_alloc_default (opt out with default-features = false). Safe to combine with rusty_symbols / rusty_a11y defaults – one shared allocator link.

Modules§

color
Semantic color roles – CSS custom-property names + default hex values.
csscss
CSS :root sheet emitter for WebView / Dioxus injection.
radius
Border-radius scale – CSS custom-property names + default values.
space
Spacing scale – CSS custom-property names + default rem values.
type_scale
Type scale – font-size and line-height token names + defaults.

Functions§

rusty_alloc_enabled
Whether this build pulled in the default rusty_alloc install.
secure_allocator_enabled
Whether the hardened secure allocator profile is compiled in.