Captain UI

Palette preview

A palette shown as a real app and a poster, with proportions, checked contrast, light and dark.

npx shadcn@latest add https://palette-for-agents.vercel.app/r/palette-preview.json
HarborTodayLibrarySam

Harbor

A ferry timetable app for a cold port city

See how it works
Search your library
This week+12%
2,481
FocusEveningSaved
Morning set12 minFocus
Long exhale8 minEvening
Before the shift20 minSaved

Usage

import { PalettePreview } from "@/components/palette-preview"

<PalettePreview theme={tokens} name="Harbor" />

Props

PropTypeDefaultWhat it does
themePaletteTokensTwelve roles: ground, surface, ink, accent and supports.
namestringThe palette's name.
shares[number x5][56,16,10,6,12]How much of each colour is used.

Accessibility

  • Contrast is checked against WCAG in the engine.
  • The poster is decorative, marked aria-hidden.