Sane is a shadcn/ui theme built around a neutral gray primary color (#6e6367) with muted light pink accents (#ece4e7). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the neutral gray primary (#6e6367) on a pink-tinted background (#0c0406).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #0c0406black |
| Foreground | #080204black | #faf5f6whitesmoke |
| Card | #fdf7f9snow | #0c0406black |
| Card foreground | #080204black | #faf5f6whitesmoke |
| Popover | #fdf7f9snow | #0c0406black |
| Popover foreground | #080204black | #faf5f6whitesmoke |
| Primary | #6e6367dimgray | #6e6367dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ece4e7linen | #33282cdarkslategray |
| Secondary foreground | #5c424bdarkslategray | #cec0c5silver |
| Muted | #eddee3gainsboro | #211217black |
| Muted foreground | #4b494adarkslategray | #b6b4b5silver |
| Accent | #ece4e7linen | #33282cdarkslategray |
| Accent foreground | #5c424bdarkslategray | #cec0c5silver |
| Destructive | #811f04maroon | #df3607orangered |
| Destructive foreground | #fdc8bapeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6e6367dimgray | #6e6367dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 7.20:1 | AAA |
| Muted text | 6.86:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 5.74:1 | AA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 8.75:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 4.51:1 | AA |
Paste this into your globals.css to use Sane in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 354.802);
--foreground: oklch(0.104 0.021 354.192);
--muted: oklch(0.914 0.018 355.151);
--muted-foreground: oklch(0.408 0.002 354.738);
--popover: oklch(0.981 0.007 354.802);
--popover-foreground: oklch(0.104 0.021 354.192);
--card: oklch(0.981 0.007 354.802);
--card-foreground: oklch(0.104 0.021 354.192);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.512 0.014 355.379);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.926 0.009 354.871);
--secondary-foreground: oklch(0.41 0.04 357.233);
--accent: oklch(0.926 0.009 354.871);
--accent-foreground: oklch(0.41 0.04 357.233);
--destructive: oklch(0.399 0.137 34.768);
--destructive-foreground: oklch(0.876 0.064 35.98);
--ring: oklch(0.512 0.014 355.379);
--chart-1: oklch(0.512 0.014 355.379);
--chart-2: oklch(0.926 0.009 354.871);
--chart-3: oklch(0.926 0.009 354.871);
--chart-4: oklch(0.951 0.006 354.771);
--chart-5: oklch(0.508 0.023 355.86);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.021 354.461);
--foreground: oklch(0.974 0.006 354.77);
--muted: oklch(0.205 0.027 358.178);
--muted-foreground: oklch(0.772 0.002 354.655);
--popover: oklch(0.122 0.021 354.461);
--popover-foreground: oklch(0.974 0.006 354.77);
--card: oklch(0.122 0.021 354.461);
--card-foreground: oklch(0.974 0.006 354.77);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.512 0.014 355.379);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.292 0.018 356.253);
--secondary-foreground: oklch(0.821 0.016 355.154);
--accent: oklch(0.292 0.018 356.253);
--accent-foreground: oklch(0.821 0.016 355.154);
--destructive: oklch(0.591 0.21 33.83);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.512 0.014 355.379);
--chart-1: oklch(0.512 0.014 355.379);
--chart-2: oklch(0.292 0.018 356.253);
--chart-3: oklch(0.292 0.018 356.253);
--chart-4: oklch(0.322 0.02 356.312);
--chart-5: oklch(0.508 0.023 355.86);
}