Skip to content

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

Theme

Font size

The code is part of Oxyn Pro

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.

Get Pro

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.

Terminal
oxyn add theme-grid

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Default

System picked – the swatch split corner to corner – with the sample following a dark device.

Theme

Font size

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Contrast

Contrast: black panes outlined in white, and larger text in the sample.

Theme

Font size

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Light device

System on a light device, small text: the sample turns light.

Theme

Font size

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Two columns

Harbor picked in a two-column grid without the sample.

Theme

Font size

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

ThemeGrid

PropTypeDefaultDescription
default_themeString"system"Starting theme key.
default_fontString"default"Starting font size key (`small`, `default`, `large`, `larger`).
device_darkbooltrueWhether the device is dark (what System follows).
previewbooltrueThe live sample under the grid.
colsusize4Swatch columns (2 or 4).
on_changeEventHandler<(String, String)>—Theme or font size changed: (theme key, font key).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabEach swatch, then the font size button
EnterorSpace on a swatchPicks the theme
UporDown on the buttonOpens the size list
UporDownorHomeorEndMove through sizes
EnterorEscapePick / 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 ThemeGrid from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: ThemeGridEl in oxyn_gpui.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI