Forecast is a shadcn/ui theme built around a vivid yellow primary color (#a48513) with vivid purple accents (#8513a4). The light mode uses a neutral background (#fcfbf7). Dark mode keeps the vivid yellow primary (#a48513) on a yellow-tinted background (#0f0d06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf7snow | #0f0d06black |
| Foreground | #080702black | #fcfbf8snow |
| Card | #fcfbf7snow | #0f0d06black |
| Card foreground | #080702black | #fcfbf8snow |
| Popover | #fcfbf7snow | #0f0d06black |
| Popover foreground | #080702black | #fcfbf8snow |
| Primary | #a48513darkgoldenrod | #a48513darkgoldenrod |
| Primary foreground | #000000black | #000000black |
| Secondary | #13a485darkcyan | #13a485darkcyan |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9f1efwhitesmoke | #0e1614black |
| Muted foreground | #3e514ddarkslategray | #aec1bdsilver |
| Accent | #8513a4darkmagenta | #8513a4darkmagenta |
| Accent foreground | #f9edfdlavenderblush | #f9edfdlavenderblush |
| Destructive | #800000maroon | #ff1f1fred |
| Destructive foreground | #ffb3b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a48513darkgoldenrod | #a48513darkgoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 3.13:1 | AA Large |
| Muted text | 7.35:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.46:1 | AA |
| Text on background | 18.81:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 5.94:1 | AA |
| Secondary button | 3.13:1 | AA Large |
| Muted text | 9.77:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Forecast in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 93.924);
--foreground: oklch(0.126 0.015 98.21);
--muted: oklch(0.952 0.009 181.814);
--muted-foreground: oklch(0.417 0.024 180.358);
--popover: oklch(0.989 0.005 93.924);
--popover-foreground: oklch(0.126 0.015 98.21);
--card: oklch(0.989 0.005 93.924);
--card-foreground: oklch(0.126 0.015 98.21);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.628 0.124 91.228);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.643 0.121 172.273);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.462 0.213 316.863);
--accent-foreground: oklch(0.96 0.025 318.881);
--destructive: oklch(0.376 0.154 29.234);
--destructive-foreground: oklch(0.838 0.09 19.125);
--ring: oklch(0.628 0.124 91.228);
--chart-1: oklch(0.628 0.124 91.228);
--chart-2: oklch(0.643 0.121 172.273);
--chart-3: oklch(0.462 0.213 316.863);
--chart-4: oklch(0.682 0.129 172.182);
--chart-5: oklch(0.634 0.126 90.906);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.016 95.726);
--foreground: oklch(0.988 0.004 93.907);
--muted: oklch(0.191 0.012 180.137);
--muted-foreground: oklch(0.795 0.021 181.314);
--popover: oklch(0.158 0.016 95.726);
--popover-foreground: oklch(0.988 0.004 93.907);
--card: oklch(0.158 0.016 95.726);
--card-foreground: oklch(0.988 0.004 93.907);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.628 0.124 91.228);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.643 0.121 172.273);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.462 0.213 316.863);
--accent-foreground: oklch(0.96 0.025 318.881);
--destructive: oklch(0.637 0.249 28.214);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.628 0.124 91.228);
--chart-1: oklch(0.628 0.124 91.228);
--chart-2: oklch(0.643 0.121 172.273);
--chart-3: oklch(0.462 0.213 316.863);
--chart-4: oklch(0.682 0.129 172.182);
--chart-5: oklch(0.634 0.126 90.906);
}