Meteorology is a shadcn/ui theme built around a vivid green primary color (#bafb79) with muted light green accents (#c2c8bc). The light mode uses a neutral background (#fafcf8). Dark mode keeps the vivid green primary (#bafb79) on a green-tinted background (#080b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #080b04black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fafcf8snow | #080b04black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fafcf8snow | #080b04black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #bafb79palegreen | #bafb79palegreen |
| Primary foreground | #214002darkgreen | #214002darkgreen |
| Secondary | #d9dbd7gainsboro | #242a1dblack |
| Secondary foreground | #40433ddarkslategray | #bdc9b1silver |
| Muted | #dee7d4gainsboro | #212b18black |
| Muted foreground | #5c694fdimgray | #a3b096darkgray |
| Accent | #c2c8bcsilver | #364527darkslategray |
| Accent foreground | #292d25darkslategray | #cfdcc1lightgrey |
| Destructive | #86240esaddlebrown | #ea5939tomato |
| Destructive foreground | #fad5ccbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bafb79palegreen | #bafb79palegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 4.60:1 | AA |
| Accent | 8.19:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 9.53:1 | AAA |
| Secondary button | 8.52:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 7.24:1 | AAA |
| Destructive | 5.99:1 | AA |
Paste this into your globals.css to use Meteorology in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 128.527);
--foreground: oklch(0 0 0);
--muted: oklch(0.917 0.028 128.801);
--muted-foreground: oklch(0.501 0.042 129.455);
--popover: oklch(0.988 0.006 128.527);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.006 128.527);
--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.917 0.174 131.078);
--primary-foreground: oklch(0.335 0.094 133.656);
--secondary: oklch(0.888 0.006 128.53);
--secondary-foreground: oklch(0.377 0.011 128.803);
--accent: oklch(0.824 0.018 128.707);
--accent-foreground: oklch(0.29 0.016 129.076);
--destructive: oklch(0.414 0.136 33.771);
--destructive-foreground: oklch(0.901 0.043 32.752);
--ring: oklch(0.917 0.174 131.078);
--chart-1: oklch(0.917 0.174 131.078);
--chart-2: oklch(0.888 0.006 128.53);
--chart-3: oklch(0.824 0.018 128.707);
--chart-4: oklch(0.911 0.004 128.515);
--chart-5: oklch(0.922 0.178 131.162);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.018 127.618);
--foreground: oklch(0.993 0.001 128.477);
--muted: oklch(0.273 0.036 130.112);
--muted-foreground: oklch(0.74 0.039 129.06);
--popover: oklch(0.143 0.018 127.618);
--popover-foreground: oklch(0.993 0.001 128.477);
--card: oklch(0.143 0.018 127.618);
--card-foreground: oklch(0.993 0.001 128.477);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.917 0.174 131.078);
--primary-foreground: oklch(0.335 0.094 133.656);
--secondary: oklch(0.275 0.025 129.517);
--secondary-foreground: oklch(0.819 0.035 128.949);
--accent: oklch(0.367 0.052 130.257);
--accent-foreground: oklch(0.877 0.039 128.971);
--destructive: oklch(0.65 0.186 34.144);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.917 0.174 131.078);
--chart-1: oklch(0.917 0.174 131.078);
--chart-2: oklch(0.275 0.025 129.517);
--chart-3: oklch(0.367 0.052 130.257);
--chart-4: oklch(0.309 0.029 129.571);
--chart-5: oklch(0.922 0.178 131.162);
}