Cameo is a shadcn/ui theme built around a muted purple primary color (#986790) with neutral gray accents (#e7e4e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted purple primary (#986790) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040103black |
| Foreground | #10050eblack | #fdfcfdwhite |
| Card | #ffffffwhite | #040103black |
| Card foreground | #10050eblack | #fdfcfdwhite |
| Popover | #ffffffwhite | #040103black |
| Popover foreground | #10050eblack | #fdfcfdwhite |
| Primary | #986790gray | #986790gray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e7e4e6gainsboro | #342732darkslategray |
| Secondary foreground | #50494fdarkslategray | #cfbfccthistle |
| Muted | #efe6eelavender | #191018black |
| Muted foreground | #695d67dimgray | #a296a0darkgray |
| Accent | #e7e4e6gainsboro | #342732darkslategray |
| Accent foreground | #50494fdarkslategray | #cfbfccthistle |
| Destructive | #631708maroon | #e23512orangered |
| Destructive foreground | #f8b3a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #986790gray | #986790gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 4.48:1 | AA Large |
| Secondary button | 6.92:1 | AA |
| Muted text | 5.12:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 7.22:1 | AAA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 4.48:1 | AA Large |
| Secondary button | 8.03:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 4.40:1 | AA Large |
Paste this into your globals.css to use Cameo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.138 0.03 332.869);
--muted: oklch(0.934 0.014 331.029);
--muted-foreground: oklch(0.495 0.022 331.399);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.138 0.03 332.869);
--card: oklch(1 0 180);
--card-foreground: oklch(0.138 0.03 332.869);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.579 0.084 332.649);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.922 0.004 330.879);
--secondary-foreground: oklch(0.414 0.014 331.286);
--accent: oklch(0.922 0.004 330.879);
--accent-foreground: oklch(0.414 0.014 331.286);
--destructive: oklch(0.333 0.111 33.089);
--destructive-foreground: oklch(0.828 0.083 31.578);
--ring: oklch(0.579 0.084 332.649);
--chart-1: oklch(0.579 0.084 332.649);
--chart-2: oklch(0.922 0.004 330.879);
--chart-3: oklch(0.922 0.004 330.879);
--chart-4: oklch(0.946 0.003 330.86);
--chart-5: oklch(0.578 0.096 332.92);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.014 331.628);
--foreground: oklch(0.991 0.003 330.859);
--muted: oklch(0.188 0.022 332.291);
--muted-foreground: oklch(0.685 0.02 331.209);
--popover: oklch(0.087 0.014 331.628);
--popover-foreground: oklch(0.991 0.003 330.859);
--card: oklch(0.087 0.014 331.628);
--card-foreground: oklch(0.991 0.003 330.859);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.579 0.084 332.649);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.294 0.026 331.987);
--secondary-foreground: oklch(0.822 0.025 331.228);
--accent: oklch(0.294 0.026 331.987);
--accent-foreground: oklch(0.822 0.025 331.228);
--destructive: oklch(0.598 0.213 32.592);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.579 0.084 332.649);
--chart-1: oklch(0.579 0.084 332.649);
--chart-2: oklch(0.294 0.026 331.987);
--chart-3: oklch(0.294 0.026 331.987);
--chart-4: oklch(0.323 0.03 332.026);
--chart-5: oklch(0.578 0.096 332.92);
}