Sandy is a shadcn/ui theme built around a muted deep yellow primary color (#564e38) with muted deep violet accents (#4e3856). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the muted deep yellow primary (#564e38) on a yellow-tinted background (#0b0904).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #0b0904black |
| Foreground | #0c0a03black | #ffffffwhite |
| Card | #fcfbf8snow | #0f0c05black |
| Card foreground | #080602black | #ffffffwhite |
| Popover | #fdfdfbsnow | #0b0904black |
| Popover foreground | #0c0a03black | #ffffffwhite |
| Primary | #564e38darkolivegreen | #564e38darkolivegreen |
| Primary foreground | #e7e3dagainsboro | #e7e3dagainsboro |
| Secondary | #38564edarkslategray | #38564edarkslategray |
| Secondary foreground | #dae7e3gainsboro | #dae7e3gainsboro |
| Muted | #ebefeewhitesmoke | #101413black |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #4e3856darkslategray | #4e3856darkslategray |
| Accent foreground | #e3dae7gainsboro | #e3dae7gainsboro |
| Destructive | #bf2312firebrick | #d72714firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #564e38darkolivegreen | #564e38darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 6.29:1 | AA |
| Muted text | 7.66:1 | AAA |
| Accent | 7.60:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.44:1 | AA |
| Secondary button | 6.29:1 | AA |
| Muted text | 9.04:1 | AAA |
| Accent | 7.60:1 | AAA |
| Destructive | 5.01:1 | AA |
Paste this into your globals.css to use Sandy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 88.804);
--foreground: oklch(0.144 0.019 93.88);
--muted: oklch(0.95 0.005 177.554);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(0.994 0.002 88.804);
--popover-foreground: oklch(0.144 0.019 93.88);
--card: oklch(0.988 0.004 88.818);
--card-foreground: oklch(0.126 0.017 94.697);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.426 0.035 88.969);
--primary-foreground: oklch(0.917 0.013 88.878);
--secondary: oklch(0.428 0.038 174.751);
--secondary-foreground: oklch(0.917 0.015 177.248);
--accent: oklch(0.379 0.057 316.147);
--accent-foreground: oklch(0.899 0.02 316.544);
--destructive: oklch(0.521 0.193 30.52);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.426 0.035 88.969);
--chart-1: oklch(0.426 0.035 88.969);
--chart-2: oklch(0.428 0.038 174.751);
--chart-3: oklch(0.379 0.057 316.147);
--chart-4: oklch(0.459 0.042 174.704);
--chart-5: oklch(0.43 0.04 88.916);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.014 93.088);
--foreground: oklch(1 0 180);
--muted: oklch(0.186 0.008 176.467);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.141 0.014 93.088);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.016 90.857);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.426 0.035 88.969);
--primary-foreground: oklch(0.917 0.013 88.878);
--secondary: oklch(0.428 0.038 174.751);
--secondary-foreground: oklch(0.917 0.015 177.248);
--accent: oklch(0.379 0.057 316.147);
--accent-foreground: oklch(0.899 0.02 316.544);
--destructive: oklch(0.567 0.211 30.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.426 0.035 88.969);
--chart-1: oklch(0.426 0.035 88.969);
--chart-2: oklch(0.428 0.038 174.751);
--chart-3: oklch(0.379 0.057 316.147);
--chart-4: oklch(0.459 0.042 174.704);
--chart-5: oklch(0.43 0.04 88.916);
}