Savannah is a shadcn/ui theme built around a deep indigo primary color (#18173f) with deep violet accents (#2c173f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep indigo primary (#18173f) on an indigo-tinted background (#06060f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #06060fblack |
| Foreground | #02020eblack | #f9f8fbghostwhite |
| Card | #ffffffwhite | #06060fblack |
| Card foreground | #02020eblack | #f9f8fbghostwhite |
| Popover | #ffffffwhite | #06060fblack |
| Popover foreground | #02020eblack | #f9f8fbghostwhite |
| Primary | #18173fmidnightblue | #18173fmidnightblue |
| Primary foreground | #aaa9dflightsteelblue | #aaa9dflightsteelblue |
| Secondary | #172b3fdarkslategray | #172b3fdarkslategray |
| Secondary foreground | #a9c3dflightsteelblue | #a9c3dflightsteelblue |
| Muted | #d3d9degainsboro | #21262cdarkslategray |
| Muted foreground | #3e4247darkslategray | #b8bdc1silver |
| Accent | #2c173fmidnightblue | #2c173fmidnightblue |
| Accent foreground | #c5a9dfplum | #c5a9dfplum |
| Destructive | #973f0csaddlebrown | #e76113chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #18173fmidnightblue | #18173fmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 7.09:1 | AAA |
| Accent | 7.74:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.63:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 7.74:1 | AAA |
| Destructive | 6.10:1 | AA |
Paste this into your globals.css to use Savannah in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.096 0.037 278.371);
--muted: oklch(0.882 0.009 249.75);
--muted-foreground: oklch(0.377 0.01 249.893);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.096 0.037 278.371);
--card: oklch(1 0 180);
--card-foreground: oklch(0.096 0.037 278.371);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.234 0.074 279.755);
--primary-foreground: oklch(0.756 0.077 285.165);
--secondary: oklch(0.282 0.046 251.231);
--secondary-foreground: oklch(0.808 0.049 250.172);
--accent: oklch(0.256 0.075 305.617);
--accent-foreground: oklch(0.778 0.081 308.028);
--destructive: oklch(0.48 0.131 44.707);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.234 0.074 279.755);
--chart-1: oklch(0.234 0.074 279.755);
--chart-2: oklch(0.282 0.046 251.231);
--chart-3: oklch(0.256 0.075 305.617);
--chart-4: oklch(0.312 0.052 251.314);
--chart-5: oklch(0.231 0.079 279.039);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.023 283.615);
--foreground: oklch(0.981 0.004 287.099);
--muted: oklch(0.266 0.013 250.07);
--muted-foreground: oklch(0.795 0.008 249.749);
--popover: oklch(0.125 0.023 283.615);
--popover-foreground: oklch(0.981 0.004 287.099);
--card: oklch(0.125 0.023 283.615);
--card-foreground: oklch(0.981 0.004 287.099);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.234 0.074 279.755);
--primary-foreground: oklch(0.756 0.077 285.165);
--secondary: oklch(0.282 0.046 251.231);
--secondary-foreground: oklch(0.808 0.049 250.172);
--accent: oklch(0.256 0.075 305.617);
--accent-foreground: oklch(0.778 0.081 308.028);
--destructive: oklch(0.653 0.184 43.886);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.234 0.074 279.755);
--chart-1: oklch(0.234 0.074 279.755);
--chart-2: oklch(0.282 0.046 251.231);
--chart-3: oklch(0.256 0.075 305.617);
--chart-4: oklch(0.312 0.052 251.314);
--chart-5: oklch(0.231 0.079 279.039);
}