Ziggurat is a shadcn/ui theme built around a neutral gray primary color (#2f3130) with neutral gray accents (#31302f). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#2f3130) on a green-tinted background (#040b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #040b05black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f6fdf7mintcream | #060f07black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefbwhite | #040b05black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #2f3130darkslategray | #2f3130darkslategray |
| Primary foreground | #c8cbc9silver | #c8cbc9silver |
| Secondary | #302f31darkslategray | #302f31darkslategray |
| Secondary foreground | #c9c8cbsilver | #c9c8cbsilver |
| Muted | #e3e2eelavender | #12111dblack |
| Muted foreground | #514f63dimgray | #9e9cb0darkgray |
| Accent | #31302fdarkslategray | #31302fdarkslategray |
| Accent foreground | #cbc9c8silver | #cbc9c8silver |
| Destructive | #8a120adarkred | #f24c40tomato |
| Destructive foreground | #fbcecbpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f3130darkslategray | #2f3130darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.68:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Ziggurat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.006 148.53);
--foreground: oklch(0 0 0);
--muted: oklch(0.917 0.016 290.681);
--muted-foreground: oklch(0.439 0.032 289.589);
--popover: oklch(0.994 0.006 148.53);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.011 148.465);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.312 0.004 148.447);
--primary-foreground: oklch(0.838 0.004 148.546);
--secondary: oklch(0.308 0.003 290.803);
--secondary-foreground: oklch(0.835 0.003 290.947);
--accent: oklch(0.31 0.003 25.057);
--accent-foreground: oklch(0.836 0.002 25.011);
--destructive: oklch(0.407 0.155 29.647);
--destructive-foreground: oklch(0.889 0.052 22.957);
--ring: oklch(0.312 0.004 148.447);
--chart-1: oklch(0.312 0.004 148.447);
--chart-2: oklch(0.308 0.003 290.803);
--chart-3: oklch(0.31 0.003 25.057);
--chart-4: oklch(0.338 0.004 290.796);
--chart-5: oklch(0.314 0.01 148.227);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.02 147.564);
--foreground: oklch(0.993 0.001 148.58);
--muted: oklch(0.185 0.024 288.381);
--muted-foreground: oklch(0.701 0.028 290.236);
--popover: oklch(0.139 0.02 147.564);
--popover-foreground: oklch(0.993 0.001 148.58);
--card: oklch(0.154 0.024 147.301);
--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.312 0.004 148.447);
--primary-foreground: oklch(0.838 0.004 148.546);
--secondary: oklch(0.308 0.003 290.803);
--secondary-foreground: oklch(0.835 0.003 290.947);
--accent: oklch(0.31 0.003 25.057);
--accent-foreground: oklch(0.836 0.002 25.011);
--destructive: oklch(0.649 0.204 28.217);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.312 0.004 148.447);
--chart-1: oklch(0.312 0.004 148.447);
--chart-2: oklch(0.308 0.003 290.803);
--chart-3: oklch(0.31 0.003 25.057);
--chart-4: oklch(0.338 0.004 290.796);
--chart-5: oklch(0.314 0.01 148.227);
}