Sandal is a shadcn/ui theme built around a deep indigo primary color (#1c1c40) with deep violet accents (#2d1c40). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the deep indigo primary (#1c1c40) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #010104black |
| Foreground | #010109black | #f5f5fawhitesmoke |
| Card | #f8f8fcghostwhite | #010104black |
| Card foreground | #010109black | #f5f5fawhitesmoke |
| Popover | #f8f8fcghostwhite | #010104black |
| Popover foreground | #010109black | #f5f5fawhitesmoke |
| Primary | #1c1c40midnightblue | #1c1c40midnightblue |
| Primary foreground | #b0b1ddlightsteelblue | #b0b1ddlightsteelblue |
| Secondary | #1c2f40darkslategray | #1c2f40darkslategray |
| Secondary foreground | #b0c8ddlightsteelblue | #b0c8ddlightsteelblue |
| Muted | #ced9e3gainsboro | #1c2731darkslategray |
| Muted foreground | #404a54darkslategray | #abb5bfsilver |
| Accent | #2d1c40midnightblue | #2d1c40midnightblue |
| Accent foreground | #c6b0ddthistle | #c6b0ddthistle |
| Destructive | #881806darkred | #ea290borangered |
| Destructive foreground | #fcccc5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1c1c40midnightblue | #1c1c40midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 7.89:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.88:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.32:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Sandal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 285.515);
--foreground: oklch(0.084 0.031 275.969);
--muted: oklch(0.88 0.018 246.2);
--muted-foreground: oklch(0.405 0.02 246.536);
--popover: oklch(0.98 0.006 285.515);
--popover-foreground: oklch(0.084 0.031 275.969);
--card: oklch(0.98 0.006 285.515);
--card-foreground: oklch(0.084 0.031 275.969);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.249 0.067 279.614);
--primary-foreground: oklch(0.776 0.063 284.077);
--secondary: oklch(0.296 0.041 247.765);
--secondary-foreground: oklch(0.821 0.04 246.515);
--accent: oklch(0.267 0.069 304.476);
--accent-foreground: oklch(0.792 0.067 306.805);
--destructive: oklch(0.407 0.15 31.545);
--destructive-foreground: oklch(0.885 0.056 28.389);
--ring: oklch(0.249 0.067 279.614);
--chart-1: oklch(0.249 0.067 279.614);
--chart-2: oklch(0.296 0.041 247.765);
--chart-3: oklch(0.267 0.069 304.476);
--chart-4: oklch(0.326 0.047 247.847);
--chart-5: oklch(0.245 0.072 278.964);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.076 0.016 280.711);
--foreground: oklch(0.971 0.007 285.488);
--muted: oklch(0.266 0.024 247.031);
--muted-foreground: oklch(0.769 0.017 246.224);
--popover: oklch(0.076 0.016 280.711);
--popover-foreground: oklch(0.971 0.007 285.488);
--card: oklch(0.076 0.016 280.711);
--card-foreground: oklch(0.971 0.007 285.488);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.249 0.067 279.614);
--primary-foreground: oklch(0.776 0.063 284.077);
--secondary: oklch(0.296 0.041 247.765);
--secondary-foreground: oklch(0.821 0.04 246.515);
--accent: oklch(0.267 0.069 304.476);
--accent-foreground: oklch(0.792 0.067 306.805);
--destructive: oklch(0.602 0.228 31.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.249 0.067 279.614);
--chart-1: oklch(0.249 0.067 279.614);
--chart-2: oklch(0.296 0.041 247.765);
--chart-3: oklch(0.267 0.069 304.476);
--chart-4: oklch(0.326 0.047 247.847);
--chart-5: oklch(0.245 0.072 278.964);
}