Skip to content
Back

Accent and densityPro

Oxyn original: accent, row spacing and corner shape beside a settings sample that takes each at once.

oxyn add accent-density

Accent

Density

Corners

General

NotificationsPing when a run ends
SoundsA soft click on send
Auto-saveEvery thirty seconds

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

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

Terminal
oxyn add accent-density

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

Blue, cozy rows, soft corners.

Accent

Density

Corners

General

NotificationsPing when a run ends
SoundsA soft click on send
Auto-saveEvery thirty seconds

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

Compact square

Graphite, compact rows without their second line, square corners: a dense tool panel.

Accent

Density

Corners

General

NotificationsPing when a run ends
SoundsA soft click on send
Auto-saveEvery thirty seconds

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

Roomy round

Rose, roomy rows and round corners.

Accent

Density

Corners

General

NotificationsPing when a run ends
SoundsA soft click on send
Auto-saveEvery thirty seconds

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

Green

Green accent, cozy rows, round corners.

Accent

Density

Corners

General

NotificationsPing when a run ends
SoundsA soft click on send
Auto-saveEvery thirty seconds

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

AccentDensity

PropTypeDefaultDescription
default_accentString"blue"Starting accent key.
default_densityString"cozy"Starting density key (`compact`, `cozy`, `roomy`).
default_cornerString"soft"Starting corner key (`square`, `soft`, `round`).
on_changeEventHandler<(String, String, String)>—Any choice changed: (accent, density, corner).

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabAccents, density, corners, then the sample's switches and buttons
EnterorSpacePicks 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 AccentDensity from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: AccentDensityEl 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