Theme gridPro
Eight mini-window swatches – System split corner to corner, Light, Dark, four tinted darks and Contrast – with a Font size menu and a live sample.
oxyn add theme-gridTheme
Font size
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Pick the look of the whole app from small pictures of it, and the text size, and see both on a sample at once.
When not to use
- Picture tiles we draw ourselves plus Your own, with Film, Static or Dither laid over the picture and a home screen preview: use Background picker instead.
- Oxyn original: use Theme split instead.
- Oxyn original: use Accent and density instead.
Installation
Theme grid is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add theme-gridUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
System picked – the swatch split corner to corner – with the sample following a dark device.
Theme
Font size
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Contrast
Contrast: black panes outlined in white, and larger text in the sample.
Theme
Font size
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Light device
System on a light device, small text: the sample turns light.
Theme
Font size
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Two columns
Harbor picked in a two-column grid without the sample.
Theme
Font size
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
ThemeGrid
| Prop | Type | Default | Description |
|---|---|---|---|
default_theme | String | "system" | Starting theme key. |
default_font | String | "default" | Starting font size key (`small`, `default`, `large`, `larger`). |
device_dark | bool | true | Whether the device is dark (what System follows). |
preview | bool | true | The live sample under the grid. |
cols | usize | 4 | Swatch columns (2 or 4). |
on_change | EventHandler<(String, String)> | — | Theme or font size changed: (theme key, font key). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Each swatch, then the font size button |
| EnterorSpace on a swatch | Picks the theme |
| UporDown on the button | Opens the size list |
| UporDownorHomeorEnd | Move through sizes |
| EnterorEscape | Pick / close back to the button |
Accessibility
- Swatches are a radio group named by theme; the check is decoration on top of aria-checked.
- Font size opens a listbox from its trigger; aria-activedescendant follows the highlighted size, and each size is drawn at its own scale.
- The sample is an image labelled with the theme and size it shows.
Responsive behaviour
- 600 px card; swatches drop to two columns and the sample's sidebar folds into a row under 480 px.
Edge cases (spec)
Swatches drop to two columns and the sample's sidebar folds into a row under 480 px.
Notes for AI
- Import
ThemeGridfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
ThemeGridElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.