Cappuccino is a shadcn/ui theme built around a near-black primary color (#080205) with near-black accents (#020805). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#080205) on a pink-tinted background (#0e070b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e070bblack |
| Foreground | #16030eblack | #fdfcfdwhite |
| Card | #ffffffwhite | #0e070bblack |
| Card foreground | #16030eblack | #fdfcfdwhite |
| Popover | #ffffffwhite | #0e070bblack |
| Popover foreground | #16030eblack | #fdfcfdwhite |
| Primary | #080205black | #080205black |
| Primary foreground | #dd5fa4palevioletred | #dd5fa4palevioletred |
| Secondary | #020805black | #020805black |
| Secondary foreground | #25b164mediumseagreen | #25b164mediumseagreen |
| Muted | #ebf4efwhitesmoke | #0b140fblack |
| Muted foreground | #49504cdarkslategray | #afb6b2darkgray |
| Accent | #020805black | #020805black |
| Accent foreground | #25b164mediumseagreen | #25b164mediumseagreen |
| Destructive | #ba4908chocolate | #f77d36coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #080205black | #080205black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 5.18:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 9.07:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 7.91:1 | AAA |
Paste this into your globals.css to use Cappuccino in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.042 346.82);
--muted: oklch(0.96 0.011 162.323);
--muted-foreground: oklch(0.424 0.012 161.903);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.042 346.82);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.042 346.82);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.105 0.025 342.578);
--primary-foreground: oklch(0.663 0.174 348.746);
--secondary: oklch(0.125 0.019 162.649);
--secondary-foreground: oklch(0.671 0.16 153.257);
--accent: oklch(0.125 0.019 162.649);
--accent-foreground: oklch(0.671 0.16 153.257);
--destructive: oklch(0.55 0.16 43.041);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.105 0.025 342.578);
--chart-1: oklch(0.105 0.025 342.578);
--chart-2: oklch(0.125 0.019 162.649);
--chart-3: oklch(0.125 0.019 162.649);
--chart-4: oklch(0.177 0.031 158.72);
--chart-5: oklch(0.104 0.026 342.576);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.017 344.042);
--foreground: oklch(0.992 0.002 342.657);
--muted: oklch(0.179 0.017 160.051);
--muted-foreground: oklch(0.77 0.01 162.282);
--popover: oklch(0.139 0.017 344.042);
--popover-foreground: oklch(0.992 0.002 342.657);
--card: oklch(0.139 0.017 344.042);
--card-foreground: oklch(0.992 0.002 342.657);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.105 0.025 342.578);
--primary-foreground: oklch(0.663 0.174 348.746);
--secondary: oklch(0.125 0.019 162.649);
--secondary-foreground: oklch(0.671 0.16 153.257);
--accent: oklch(0.125 0.019 162.649);
--accent-foreground: oklch(0.671 0.16 153.257);
--destructive: oklch(0.718 0.17 47.354);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.105 0.025 342.578);
--chart-1: oklch(0.105 0.025 342.578);
--chart-2: oklch(0.125 0.019 162.649);
--chart-3: oklch(0.125 0.019 162.649);
--chart-4: oklch(0.177 0.031 158.72);
--chart-5: oklch(0.104 0.026 342.576);
}