Menu

Components

Glass

The accent as a surface: three layers of light over the accent ramp and a blur, for the deck's pill and a selected view.

Usage

Glass

Uses.aka-glass.aka-glass-rose

<span aria-hidden className="aka-glass block h-2.5 w-24 rounded-full" />

It belonged to the deck's progress pill and nothing else, until the view toggle needed to mark the deck in the deck's own terms. Two users made it vocabulary. The layers, the ramp and the rule are on Surfaces.

Examples

Led from the rose end

<span aria-hidden className="aka-glass aka-glass-rose block h-2.5 w-24 rounded-full" />

Two glass controls side by side otherwise read as the same control printed twice. Reversing the ramp keeps one material and gives each its own end of it.

Best practices

When to use

  • The one accent, spent on one subject per screen: where you are in the deck, and which deck you are in.
  • Never as a panel behind text.

Behaviour

  • The white specular is a literal on purpose: highlight is light, not a surface, and must not dim with the theme.
  • The backdrop filter stays; removing it was measured and moved the pill's pixels.

Accessibility

  • Glass carries no type: a saturated accent cannot. Ink on it is text-background, as the selected segment shows.
  • State is announced by the control, with aria-pressed, never by the colour alone.