OS design system
RUI tokens & materials
The token namespaces, material states and wallpaper-aware surfaces used by rumahl UI.
Token namespace
RUI tokens are projected onto the shell root as --rumahl-ui-* custom properties. Components read those tokens; a theme supplies the values.
--rumahl-ui-color-accent
--rumahl-ui-color-canvas-background
--rumahl-ui-color-panel-background
--rumahl-ui-color-text-primary
--rumahl-ui-shape-radius-window
--rumahl-ui-material-opacity
Token groups
| Group | Purpose |
|---|---|
| color.* | Accent, surfaces, text, canvas, panel, outline and shadow |
| material.* | Blur, saturation, opacity and glass strength |
| shape.* | Corner radii and icon sizes |
| motion.* | Durations and easing |
| typography.* | UI and display faces, and the type scale |
| layout.* | Layout primitives for shell and app surfaces |
| texture.wallpaper | Wallpaper-aware surface treatment |
| icon.gradient | Icon finish and brand detail |
Material states
- Glass: default control material for navigation and controls over the OS surface.
- Solid: flat, opaque surfaces where translucency would reduce clarity.
- Floating: an element state for controls that hover over a picture or another surface.
- A floating control is its own island; a bar is only for adjacent controls.
Rules
- Components do not hard-code colours or radii.
- Themes must be able to restyle components through tokens.
- A theme cannot replace protected shell behaviour.
- Reduced-motion and focus states are part of the contract.
Need the implementation? Open the design resources or the source repository.