Sandy is a shadcn/ui theme built around a muted deep teal primary color (#30453b) with muted deep teal accents (#304545). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the muted deep teal primary (#30453b) on a teal-tinted background (#050f0a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfamintcream | #050f0ablack |
| Foreground | #04110ablack | #fcfdfcwhite |
| Card | #f4faf7whitesmoke | #07130dblack |
| Card foreground | #030d08black | #ffffffwhite |
| Popover | #f4faf7whitesmoke | #07130dblack |
| Popover foreground | #030d08black | #ffffffwhite |
| Primary | #30453bdarkslategray | #30453bdarkslategray |
| Primary foreground | #ccdbd4lightgrey | #ccdbd4lightgrey |
| Secondary | #304530darkslategray | #304530darkslategray |
| Secondary foreground | #ccdbcclightgrey | #ccdbcclightgrey |
| Muted | #dcefdcgainsboro | #102310black |
| Muted foreground | #5b715bdimgray | #8ea48edarkseagreen |
| Accent | #304545darkslategray | #304545darkslategray |
| Accent foreground | #ccdbdblightgrey | #ccdbdblightgrey |
| Destructive | #c71c05firebrick | #f9391forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #30453bdarkslategray | #30453bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 4.40:1 | AA Large |
| Accent | 7.14:1 | AAA |
| Destructive | 5.84:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 7.16:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 3.72:1 | AA Large |
Paste this into your globals.css to use Sandy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 165.878);
--foreground: oklch(0.161 0.025 163.576);
--muted: oklch(0.933 0.032 145.772);
--muted-foreground: oklch(0.525 0.043 145.354);
--popover: oklch(0.981 0.008 165.806);
--popover-foreground: oklch(0.144 0.021 165.67);
--card: oklch(0.981 0.008 165.806);
--card-foreground: oklch(0.144 0.021 165.67);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.37 0.032 163.452);
--primary-foreground: oklch(0.879 0.02 165.407);
--secondary: oklch(0.367 0.044 145.012);
--secondary-foreground: oklch(0.877 0.027 145.803);
--accent: oklch(0.373 0.026 197.408);
--accent-foreground: oklch(0.881 0.017 198.086);
--destructive: oklch(0.53 0.205 30.773);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.37 0.032 163.452);
--chart-1: oklch(0.37 0.032 163.452);
--chart-2: oklch(0.367 0.044 145.012);
--chart-3: oklch(0.373 0.026 197.408);
--chart-4: oklch(0.398 0.049 144.989);
--chart-5: oklch(0.374 0.037 163.025);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.019 164.201);
--foreground: oklch(0.993 0.002 165.958);
--muted: oklch(0.234 0.043 144.4);
--muted-foreground: oklch(0.696 0.041 145.566);
--popover: oklch(0.172 0.022 162.676);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.172 0.022 162.676);
--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.37 0.032 163.452);
--primary-foreground: oklch(0.879 0.02 165.407);
--secondary: oklch(0.367 0.044 145.012);
--secondary-foreground: oklch(0.877 0.027 145.803);
--accent: oklch(0.373 0.026 197.408);
--accent-foreground: oklch(0.881 0.017 198.086);
--destructive: oklch(0.641 0.23 31.039);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.37 0.032 163.452);
--chart-1: oklch(0.37 0.032 163.452);
--chart-2: oklch(0.367 0.044 145.012);
--chart-3: oklch(0.373 0.026 197.408);
--chart-4: oklch(0.398 0.049 144.989);
--chart-5: oklch(0.374 0.037 163.025);
}