Tambourine is a shadcn/ui theme built around a green primary color (#27be57) with muted light green accents (#c5d8cb). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#27be57) on a green-tinted background (#050f08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050f08black |
| Foreground | #010402black | #f9fbfamintcream |
| Card | #fcfcfcsnow | #06130ablack |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #ffffffwhite | #050f08black |
| Popover foreground | #010402black | #f9fbfamintcream |
| Primary | #27be57mediumseagreen | #27be57mediumseagreen |
| Primary foreground | #04150ablack | #04150ablack |
| Secondary | #c5d8cblightgrey | #292929darkslategray |
| Secondary foreground | #2b4032darkslategray | #c2c2c2silver |
| Muted | #d8eedfgainsboro | #271111black |
| Muted foreground | #4b6352darkslategray | #b49c9crosybrown |
| Accent | #c5d8cblightgrey | #292929darkslategray |
| Accent foreground | #2b4032darkslategray | #c2c2c2silver |
| Destructive | #7e3007saddlebrown | #f3671bchocolate |
| Destructive foreground | #fbd2bbpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #27be57mediumseagreen | #27be57mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 5.35:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.48:1 | AA |
| Text on background | 18.69:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 7.72:1 | AAA |
| Secondary button | 8.18:1 | AAA |
| Muted text | 6.95:1 | AA |
| Accent | 8.18:1 | AAA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Tambourine in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.099 0.018 156.044);
--muted: oklch(0.928 0.03 155.914);
--muted-foreground: oklch(0.474 0.039 154.793);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.099 0.018 156.044);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.705 0.189 148.519);
--primary-foreground: oklch(0.177 0.034 153.404);
--secondary: oklch(0.864 0.026 155.95);
--secondary-foreground: oklch(0.349 0.035 154.352);
--accent: oklch(0.864 0.026 155.95);
--accent-foreground: oklch(0.349 0.035 154.352);
--destructive: oklch(0.416 0.118 43.122);
--destructive-foreground: oklch(0.893 0.056 49.915);
--ring: oklch(0.705 0.189 148.519);
--chart-1: oklch(0.705 0.189 148.519);
--chart-2: oklch(0.864 0.026 155.95);
--chart-3: oklch(0.864 0.026 155.95);
--chart-4: oklch(0.886 0.022 156.064);
--chart-5: oklch(0.714 0.195 148.222);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.023 155.084);
--foreground: oklch(0.986 0.002 156.517);
--muted: oklch(0.211 0.036 20.514);
--muted-foreground: oklch(0.715 0.029 17.845);
--popover: oklch(0.157 0.023 155.084);
--popover-foreground: oklch(0.986 0.002 156.517);
--card: oklch(0.172 0.027 153.819);
--card-foreground: oklch(0.993 0.001 156.539);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.705 0.189 148.519);
--primary-foreground: oklch(0.177 0.034 153.404);
--secondary: oklch(0.28 0 180);
--secondary-foreground: oklch(0.813 0 165.964);
--accent: oklch(0.28 0 180);
--accent-foreground: oklch(0.813 0 165.964);
--destructive: oklch(0.679 0.189 43.435);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.705 0.189 148.519);
--chart-1: oklch(0.705 0.189 148.519);
--chart-2: oklch(0.28 0 180);
--chart-3: oklch(0.28 0 180);
--chart-4: oklch(0.311 0 180);
--chart-5: oklch(0.714 0.195 148.222);
}