---
title: "RUI tokens & materials"
description: "The token namespaces, material states and wallpaper-aware surfaces used by rumahl UI."
url: "https://rumahl.com/design/docs/rui-tokens"
section: "OS design system"
group: "RUI"
updated: "20 October 2026"
---

# RUI tokens & materials

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

**Area:** OS design system  
**Group:** RUI  
**Updated:** 20 October 2026  
**Reading time:** 5 min  
**HTML:** https://rumahl.com/design/docs/rui-tokens

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

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