Savior is a shadcn/ui theme built around a neutral gray primary color (#d7d6d5) with neutral gray accents (#d7d6d5). The light mode uses a neutral background (#fdf7f6). Dark mode keeps the neutral gray primary (#d7d6d5) on a red-tinted background (#100605).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f6snow | #100605black |
| Foreground | #0c0403black | #fbf9f9snow |
| Card | #fdf3f2lavenderblush | #140706black |
| Card foreground | #080302black | #fdfcfcsnow |
| Popover | #fdf3f2lavenderblush | #140706black |
| Popover foreground | #080302black | #fdfcfcsnow |
| Primary | #d7d6d5lightgrey | #d7d6d5lightgrey |
| Primary foreground | #3e3c3cdarkslategray | #3e3c3cdarkslategray |
| Secondary | #d7d5d6lightgrey | #d7d5d6lightgrey |
| Secondary foreground | #3e3c3ddarkslategray | #3e3c3ddarkslategray |
| Muted | #eedde3mistyrose | #221117black |
| Muted foreground | #6a585fdimgray | #a7959cdarkgray |
| Accent | #d7d6d5lightgrey | #d7d6d5lightgrey |
| Accent foreground | #3e3d3cdarkslategray | #3e3d3cdarkslategray |
| Destructive | #8b0d04darkred | #e01406red |
| Destructive foreground | #fdc7c3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7d6d5lightgrey | #d7d6d5lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 5.06:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 4.92:1 | AA |
Paste this into your globals.css to use Savior in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 26.485);
--foreground: oklch(0.123 0.019 32.375);
--muted: oklch(0.913 0.021 352.235);
--muted-foreground: oklch(0.48 0.025 353.02);
--popover: oklch(0.972 0.01 26.51);
--popover-foreground: oklch(0.107 0.017 32.518);
--card: oklch(0.972 0.01 26.51);
--card-foreground: oklch(0.107 0.017 32.518);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.876 0.002 26.453);
--primary-foreground: oklch(0.359 0.003 26.497);
--secondary: oklch(0.876 0.002 351.656);
--secondary-foreground: oklch(0.359 0.004 351.885);
--accent: oklch(0.877 0.002 79.931);
--accent-foreground: oklch(0.362 0.003 79.919);
--destructive: oklch(0.406 0.159 29.996);
--destructive-foreground: oklch(0.877 0.062 23.145);
--ring: oklch(0.876 0.002 26.453);
--chart-1: oklch(0.876 0.002 26.453);
--chart-2: oklch(0.876 0.002 351.656);
--chart-3: oklch(0.877 0.002 79.931);
--chart-4: oklch(0.899 0.002 351.642);
--chart-5: oklch(0.875 0.004 26.471);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.02 30.82);
--foreground: oklch(0.984 0.002 26.456);
--muted: oklch(0.204 0.031 355.665);
--muted-foreground: oklch(0.688 0.023 352.509);
--popover: oklch(0.15 0.023 30.083);
--popover-foreground: oklch(0.992 0.001 26.448);
--card: oklch(0.15 0.023 30.083);
--card-foreground: oklch(0.992 0.001 26.448);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.876 0.002 26.453);
--primary-foreground: oklch(0.359 0.003 26.497);
--secondary: oklch(0.876 0.002 351.656);
--secondary-foreground: oklch(0.359 0.004 351.885);
--accent: oklch(0.877 0.002 79.931);
--accent-foreground: oklch(0.362 0.003 79.919);
--destructive: oklch(0.574 0.229 29.775);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.876 0.002 26.453);
--chart-1: oklch(0.876 0.002 26.453);
--chart-2: oklch(0.876 0.002 351.656);
--chart-3: oklch(0.877 0.002 79.931);
--chart-4: oklch(0.899 0.002 351.642);
--chart-5: oklch(0.875 0.004 26.471);
}