Stormy is a shadcn/ui theme built around a muted yellow primary color (#7c7c55) with muted green accents (#687c55). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#7c7c55) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040401black | #fafaf5whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #040401black | #fafaf5whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040401black | #fafaf5whitesmoke |
| Primary | #7c7c55dimgray | #7c7c55dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #7c6955dimgray | #7c6955dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f6f2efwhitesmoke | #100d09black |
| Muted foreground | #605c57dimgray | #a8a39fdarkgray |
| Accent | #687c55dimgray | #687c55dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #830202maroon | #fc2727crimson |
| Destructive foreground | #feb9b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7c7c55dimgray | #7c7c55dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 4.29:1 | AA Large |
| Secondary button | 5.22:1 | AA |
| Muted text | 5.96:1 | AA |
| Accent | 4.54:1 | AA |
| Destructive | 6.53:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 4.29:1 | AA Large |
| Secondary button | 5.22:1 | AA |
| Muted text | 7.75:1 | AAA |
| Accent | 4.54:1 | AA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Stormy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.014 109.218);
--muted: oklch(0.964 0.006 69.587);
--muted-foreground: oklch(0.477 0.009 69.448);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.014 109.218);
--card: oklch(1 0 180);
--card-foreground: oklch(0.104 0.014 109.218);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.577 0.057 108.868);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.534 0.039 68.703);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.56 0.064 130.429);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.383 0.156 29.017);
--destructive-foreground: oklch(0.849 0.081 18.879);
--ring: oklch(0.577 0.057 108.868);
--chart-1: oklch(0.577 0.057 108.868);
--chart-2: oklch(0.534 0.039 68.703);
--chart-3: oklch(0.56 0.064 130.429);
--chart-4: oklch(0.562 0.042 68.693);
--chart-5: oklch(0.586 0.065 109.063);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.006 107.282);
--muted: oklch(0.161 0.01 69.08);
--muted-foreground: oklch(0.719 0.009 69.532);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.006 107.282);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.006 107.282);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.577 0.057 108.868);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.534 0.039 68.703);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.56 0.064 130.429);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.635 0.242 27.711);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.577 0.057 108.868);
--chart-1: oklch(0.577 0.057 108.868);
--chart-2: oklch(0.534 0.039 68.703);
--chart-3: oklch(0.56 0.064 130.429);
--chart-4: oklch(0.562 0.042 68.693);
--chart-5: oklch(0.586 0.065 109.063);
}