Castanet is a shadcn/ui theme built around a yellow primary color (#7b7242) with green accents (#677b42). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#7b7242) on a yellow-tinted background (#0b0a04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0a04black |
| Foreground | #000000black | #fbfbf8snow |
| Card | #fcfcfcsnow | #0f0d06black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fcfcfcsnow | #0f0d06black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #7b7242darkolivegreen | #7b7242darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7b5642sienna | #7b5642sienna |
| Secondary foreground | #faf7f5whitesmoke | #faf7f5whitesmoke |
| Muted | #eae1dcgainsboro | #231a15black |
| Muted foreground | #57504cdarkolivegreen | #b3aca8darkgray |
| Accent | #677b42darkolivegreen | #677b42darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #aa4108saddlebrown | #f4661achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7b7242darkolivegreen | #7b7242darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 6.07:1 | AA |
| Muted text | 6.12:1 | AA |
| Accent | 4.69:1 | AA |
| Destructive | 6.04:1 | AA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 4.84:1 | AA |
| Secondary button | 6.07:1 | AA |
| Muted text | 7.62:1 | AAA |
| Accent | 4.69:1 | AA |
| Destructive | 6.78:1 | AA |
Paste this into your globals.css to use Castanet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.915 0.012 50.491);
--muted-foreground: oklch(0.437 0.012 50.322);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--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.549 0.068 99.498);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.058 49.232);
--secondary-foreground: oklch(0.977 0.004 50.608);
--accent: oklch(0.552 0.084 124.877);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.514 0.151 42.167);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.549 0.068 99.498);
--chart-1: oklch(0.549 0.068 99.498);
--chart-2: oklch(0.487 0.058 49.232);
--chart-3: oklch(0.552 0.084 124.877);
--chart-4: oklch(0.514 0.062 49.216);
--chart-5: oklch(0.556 0.074 99.506);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.015 101.171);
--foreground: oklch(0.988 0.003 98.367);
--muted: oklch(0.227 0.017 49.765);
--muted-foreground: oklch(0.748 0.01 50.484);
--popover: oklch(0.159 0.016 100.162);
--popover-foreground: oklch(0.994 0.002 98.342);
--card: oklch(0.159 0.016 100.162);
--card-foreground: oklch(0.994 0.002 98.342);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.549 0.068 99.498);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.487 0.058 49.232);
--secondary-foreground: oklch(0.977 0.004 50.608);
--accent: oklch(0.552 0.084 124.877);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.681 0.191 43.277);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.549 0.068 99.498);
--chart-1: oklch(0.549 0.068 99.498);
--chart-2: oklch(0.487 0.058 49.232);
--chart-3: oklch(0.552 0.084 124.877);
--chart-4: oklch(0.514 0.062 49.216);
--chart-5: oklch(0.556 0.074 99.506);
}