Stormy is a shadcn/ui theme built around a vivid light pink primary color (#ffa9d8) with neutral gray accents (#d2d1d1). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid light pink primary (#ffa9d8) on a pink-tinted background (#0f060b).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0f060bblack |
| Foreground | #000000black | #fcf8fasnow |
| Card | #fefbfdsnow | #0f060bblack |
| Card foreground | #000000black | #fcf8fasnow |
| Popover | #fefbfdsnow | #0f060bblack |
| Popover foreground | #000000black | #fcf8fasnow |
| Primary | #ffa9d8lightpink | #ffa9d8lightpink |
| Primary foreground | #750140maroon | #750140maroon |
| Secondary | #d2d1d1lightgrey | #1f1a1cblack |
| Secondary foreground | #393838darkslategray | #bcaeb6silver |
| Muted | #e0dcdegainsboro | #231f21black |
| Muted foreground | #6f5d67dimgray | #a2909arosybrown |
| Accent | #d2d1d1lightgrey | #1f1a1cblack |
| Accent foreground | #393838darkslategray | #bcaeb6silver |
| Destructive | #c6340cfirebrick | #f36239tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffa9d8lightpink | #ffa9d8lightpink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 4.48:1 | AA Large |
| Accent | 7.64:1 | AAA |
| Destructive | 5.40:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.62:1 | AA |
Paste this into your globals.css to use Stormy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 342.702);
--foreground: oklch(0 0 0);
--muted: oklch(0.897 0.006 342.784);
--muted-foreground: oklch(0.499 0.028 343.949);
--popover: oklch(0.991 0.003 342.702);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.003 342.702);
--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.831 0.116 345.8);
--primary-foreground: oklch(0.366 0.149 356.486);
--secondary: oklch(0.86 0.001 342.653);
--secondary-foreground: oklch(0.34 0.002 342.753);
--accent: oklch(0.86 0.001 342.653);
--accent-foreground: oklch(0.34 0.002 342.753);
--destructive: oklch(0.546 0.188 34.421);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.831 0.116 345.8);
--chart-1: oklch(0.831 0.116 345.8);
--chart-2: oklch(0.86 0.001 342.653);
--chart-3: oklch(0.86 0.001 342.653);
--chart-4: oklch(0.884 0.001 342.646);
--chart-5: oklch(0.831 0.12 345.896);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.021 344.34);
--foreground: oklch(0.983 0.005 342.732);
--muted: oklch(0.245 0.008 343.447);
--muted-foreground: oklch(0.672 0.026 343.544);
--popover: oklch(0.138 0.021 344.34);
--popover-foreground: oklch(0.983 0.005 342.732);
--card: oklch(0.138 0.021 344.34);
--card-foreground: oklch(0.983 0.005 342.732);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.831 0.116 345.8);
--primary-foreground: oklch(0.366 0.149 356.486);
--secondary: oklch(0.223 0.009 343.628);
--secondary-foreground: oklch(0.765 0.018 343.193);
--accent: oklch(0.223 0.009 343.628);
--accent-foreground: oklch(0.765 0.018 343.193);
--destructive: oklch(0.676 0.188 36.133);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.831 0.116 345.8);
--chart-1: oklch(0.831 0.116 345.8);
--chart-2: oklch(0.223 0.009 343.628);
--chart-3: oklch(0.223 0.009 343.628);
--chart-4: oklch(0.254 0.012 343.706);
--chart-5: oklch(0.831 0.12 345.896);
}