Sandy is a shadcn/ui theme built around a muted yellow primary color (#c6c6b3) with muted indigo accents (#b3b4c6). The light mode uses a neutral background (#fbfbf8). Dark mode keeps the muted yellow primary (#c6c6b3) on a yellow-tinted background (#101004).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbf8snow | #101004black |
| Foreground | #090901black | #fdfdfcwhite |
| Card | #fafaf5whitesmoke | #141405black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fbfbf8snow | #101004black |
| Popover foreground | #090901black | #fdfdfcwhite |
| Primary | #c6c6b3silver | #c6c6b3silver |
| Primary foreground | #29291fdarkslategray | #29291fdarkslategray |
| Secondary | #b3b4c6silver | #b3b4c6silver |
| Secondary foreground | #1f1f29black | #1f1f29black |
| Muted | #eaeaf5lavender | #0a0a15black |
| Muted foreground | #55555edimgray | #a1a1aadarkgray |
| Accent | #b3b4c6silver | #b3b4c6silver |
| Accent foreground | #1f1f29black | #1f1f29black |
| Destructive | #831307maroon | #f32c16orangered |
| Destructive foreground | #fcc6c0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c6c6b3silver | #c6c6b3silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 18.77:1 | AAA |
| Text on card | 18.51:1 | AAA |
| Primary button | 8.45:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Sandy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 105.688);
--foreground: oklch(0.134 0.022 108.447);
--muted: oklch(0.941 0.015 285.33);
--muted-foreground: oklch(0.452 0.014 285.043);
--popover: oklch(0.988 0.004 105.688);
--popover-foreground: oklch(0.134 0.022 108.447);
--card: oklch(0.983 0.006 105.724);
--card-foreground: oklch(0.107 0.018 108.447);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.821 0.025 106.146);
--primary-foreground: oklch(0.276 0.017 106.683);
--secondary: oklch(0.775 0.026 285.006);
--secondary-foreground: oklch(0.243 0.019 284.159);
--accent: oklch(0.775 0.026 285.006);
--accent-foreground: oklch(0.243 0.019 284.159);
--destructive: oklch(0.393 0.147 30.582);
--destructive-foreground: oklch(0.872 0.062 25.731);
--ring: oklch(0.821 0.025 106.146);
--chart-1: oklch(0.821 0.025 106.146);
--chart-2: oklch(0.775 0.026 285.006);
--chart-3: oklch(0.775 0.026 285.006);
--chart-4: oklch(0.801 0.023 285.102);
--chart-5: oklch(0.826 0.03 106.25);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.17 0.025 108.02);
--foreground: oklch(0.993 0.001 105.637);
--muted: oklch(0.15 0.024 282.384);
--muted-foreground: oklch(0.713 0.013 285.297);
--popover: oklch(0.17 0.025 108.02);
--popover-foreground: oklch(0.993 0.001 105.637);
--card: oklch(0.187 0.028 108.033);
--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.821 0.025 106.146);
--primary-foreground: oklch(0.276 0.017 106.683);
--secondary: oklch(0.775 0.026 285.006);
--secondary-foreground: oklch(0.243 0.019 284.159);
--accent: oklch(0.775 0.026 285.006);
--accent-foreground: oklch(0.243 0.019 284.159);
--destructive: oklch(0.621 0.233 30.514);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.821 0.025 106.146);
--chart-1: oklch(0.821 0.025 106.146);
--chart-2: oklch(0.775 0.026 285.006);
--chart-3: oklch(0.775 0.026 285.006);
--chart-4: oklch(0.801 0.023 285.102);
--chart-5: oklch(0.826 0.03 106.25);
}