Flab UIv0.5.0
MobileA2UI

Palette picker

A row of colour swatches, one per palette. Selecting a palette re-tints the whole product — surfaces, borders, text, accent and the focus ring — not just the accent spots. It is an axis independent of light/dark mode.

Default

Reads and writes through usePalette, so it must sit under a PaletteProvider. Each swatch paints itself from its palette's own token, so the dots track the live mode. The control below drives the real palette for this page.

<PalettePicker />

Available palettes

Choose a palette for the overall character of your product. Every palette supports light and dark mode independently. Success, warning, danger and other status colours keep their semantic meaning across palettes; switching palettes does not change what a status means.

Signaturesignature
The original Flab identity: a bright acid-green accent on warm neutral surfaces. Choose it when brand recognition and a crisp selected state matter. This is the library default.
Minimalminimal
Monochrome graphite with neutral surfaces. A restrained choice for content-heavy screens, settings and tools where the data should lead. This documentation site starts with Minimal.
Jadejade
A soft celadon accent with cool green surfaces and a deeper pine wash in dark mode. Choose it for a quieter green identity on dashboards and workspaces used for long sessions.
Coolcool
A clear blue accent with cool-toned surfaces. A familiar, professional choice for administration, operations and enterprise workflows.
Warmwarm
A bright amber accent with sand-toned surfaces. Choose it for a warmer, more approachable product identity; warning states still use their own labelled status tokens.
Impactimpact
A vivid violet accent with purple-toned surfaces. The most expressive option, suited to products with a stronger visual identity. Keep accent use limited to actions and selected states.

Jade is inspired by Omarchy Jade Horse. It is an optional alternative to Signature, which retains the original brand green.

Setup

Wrap the app in PaletteProvider, and run paletteInitScript() in the document head so the stored palette attribute is applied before first paint. The palettes themselves live in the token layer and activate off a data-theme attribute on the document root.

To start with a particular palette, use its value above as defaultPalette on PaletteProvider and pass the same value to paletteInitScript, for example 'jade'. A saved user preference takes precedence over this default.

import { PaletteProvider, PalettePicker } from '@flabbergasted-ai/react';import { paletteInitScript } from '@flabbergasted-ai/react/palette-script';
// In the document <head>:<script dangerouslySetInnerHTML={{ __html: paletteInitScript() }} />
// Around the app:<PaletteProvider>  <PalettePicker /></PaletteProvider>

Props

PropTypeDefaultNotes
aria-labelstring'Theme palette'Accessible label for the radiogroup.
classNamestring—Merged onto the pill container for layout overrides.