Earthquake is a shadcn/ui theme built around a light green primary color (#bfe1bc) with light purple accents (#debce1). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the light green primary (#bfe1bc) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fdf7mintcream | #020302black |
| Foreground | #030d02black | #f5faf4whitesmoke |
| Card | #f4fcf3honeydew | #040703black |
| Card foreground | #020901black | #f8fcf8mintcream |
| Popover | #f8fdf7mintcream | #020302black |
| Popover foreground | #030d02black | #f5faf4whitesmoke |
| Primary | #bfe1bcsilver | #bfe1bcsilver |
| Primary foreground | #244a21darkslategray | #244a21darkslategray |
| Secondary | #debce1thistle | #debce1thistle |
| Secondary foreground | #47214adarkslategray | #47214adarkslategray |
| Muted | #e0d6e1gainsboro | #281e29darkslategray |
| Muted foreground | #6b606cdimgray | #9e939fdarkgray |
| Accent | #debce1thistle | #debce1thistle |
| Accent foreground | #47214adarkslategray | #47214adarkslategray |
| Destructive | #d93c0dorangered | #f4693etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bfe1bcsilver | #bfe1bcsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.13:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 4.22:1 | AA Large |
| Accent | 7.80:1 | AAA |
| Destructive | 4.56:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 7.80:1 | AAA |
| Destructive | 6.91:1 | AA |
Paste this into your globals.css to use Earthquake in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.009 143.091);
--foreground: oklch(0.144 0.034 140.966);
--muted: oklch(0.887 0.019 323.233);
--muted-foreground: oklch(0.503 0.024 323.347);
--popover: oklch(0.988 0.009 143.091);
--popover-foreground: oklch(0.144 0.034 140.966);
--card: oklch(0.982 0.014 143.069);
--card-foreground: oklch(0.125 0.03 140.917);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.876 0.063 142.793);
--primary-foreground: oklch(0.371 0.081 142.116);
--secondary: oklch(0.836 0.064 323.476);
--secondary-foreground: oklch(0.318 0.086 324.157);
--accent: oklch(0.836 0.064 323.476);
--accent-foreground: oklch(0.318 0.086 324.157);
--destructive: oklch(0.587 0.2 35.082);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.876 0.063 142.793);
--chart-1: oklch(0.876 0.063 142.793);
--chart-2: oklch(0.836 0.064 323.476);
--chart-3: oklch(0.836 0.064 323.476);
--chart-4: oklch(0.862 0.054 323.414);
--chart-5: oklch(0.878 0.068 142.768);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.012 142.038);
--foreground: oklch(0.98 0.009 143.089);
--muted: oklch(0.252 0.026 323.588);
--muted-foreground: oklch(0.676 0.022 323.282);
--popover: oklch(0.095 0.012 142.038);
--popover-foreground: oklch(0.98 0.009 143.089);
--card: oklch(0.12 0.015 142.038);
--card-foreground: oklch(0.987 0.006 143.105);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.876 0.063 142.793);
--primary-foreground: oklch(0.371 0.081 142.116);
--secondary: oklch(0.836 0.064 323.476);
--secondary-foreground: oklch(0.318 0.086 324.157);
--accent: oklch(0.836 0.064 323.476);
--accent-foreground: oklch(0.318 0.086 324.157);
--destructive: oklch(0.686 0.181 37.322);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.876 0.063 142.793);
--chart-1: oklch(0.876 0.063 142.793);
--chart-2: oklch(0.836 0.064 323.476);
--chart-3: oklch(0.836 0.064 323.476);
--chart-4: oklch(0.862 0.054 323.414);
--chart-5: oklch(0.878 0.068 142.768);
}