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.jsonHarborTodayLibrarySam
Harbor
A ferry timetable app for a cold port city
See how it works
Search your library
This week+12%
2,481
Morning set12 minFocus
Long exhale8 minEvening
Before the shift20 minSaved
Harbor
A ferry timetable app for a cold port city
Palette preview is a Captain family piece with its own repo: github.com/jawadjalal/palette. Install it with the command above.
Usage
import { PalettePreview } from "@/components/palette-preview"
<PalettePreview theme={tokens} name="Harbor" />Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| theme | PaletteTokens | Twelve roles: ground, surface, ink, accent and supports. | |
| name | string | The 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.