Accent and densityPro
Oxyn original: accent, row spacing and corner shape beside a settings sample that takes each at once.
oxyn add accent-densityAccent
Density
Corners
General
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
- Tune the accent colour, row spacing and corner shape together on a sample that shows each change 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.
- Eight mini-window swatches: use Theme grid instead.
- Oxyn original: use Theme split instead.
Installation
Accent and density 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 accent-densityUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
Blue, cozy rows, soft corners.
Accent
Density
Corners
General
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Compact square
Graphite, compact rows without their second line, square corners: a dense tool panel.
Accent
Density
Corners
General
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Roomy round
Rose, roomy rows and round corners.
Accent
Density
Corners
General
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Green
Green accent, cozy rows, round corners.
Accent
Density
Corners
General
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
AccentDensity
| Prop | Type | Default | Description |
|---|---|---|---|
default_accent | String | "blue" | Starting accent key. |
default_density | String | "cozy" | Starting density key (`compact`, `cozy`, `roomy`). |
default_corner | String | "soft" | Starting corner key (`square`, `soft`, `round`). |
on_change | EventHandler<(String, String, String)> | — | Any choice changed: (accent, density, corner). |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Accents, density, corners, then the sample's switches and buttons |
| EnterorSpace | Picks an option or flips a switch |
Accessibility
- Accent, Density and Corners are radio groups; accents are named, not only coloured.
- Sample switches are role=switch with aria-checked.
- Every change is said in a polite live note.
Responsive behaviour
- 600 px card; controls stack above the sample under 560 px.
Edge cases (spec)
Controls stack above the sample under 560 px.
Notes for AI
- Import
AccentDensityfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
AccentDensityElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.