All articles
Back to Design docs
OS design system

RUI tokens & materials

The token namespaces, material states and wallpaper-aware surfaces used by rumahl UI.

5 min read Updated: 20 October 2026
Markdown

Token namespace

RUI tokens are projected onto the shell root as --rumahl-ui-* custom properties. Components read those tokens; a theme supplies the values.

css
--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

GroupPurpose
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.wallpaperWallpaper-aware surface treatment
icon.gradientIcon 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.

On this page