Sour is a shadcn/ui theme built around a vivid light yellow primary color (#fae69e) with muted light yellow accents (#d6d1c2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#fae69e) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #040301black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #040301black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #fae69epalegoldenrod | #fae69epalegoldenrod |
| Primary foreground | #614d05saddlebrown | #614d05saddlebrown |
| Secondary | #d6d1c2lightgrey | #2b2922darkslategray |
| Secondary foreground | #3d3829darkslategray | #c7c4b8silver |
| Muted | #f4f3f0whitesmoke | #0f0e0bblack |
| Muted foreground | #676356dimgray | #a9a598darkgray |
| Accent | #d6d1c2lightgrey | #2b2922darkslategray |
| Accent foreground | #3d3829darkslategray | #c7c4b8silver |
| Destructive | #840806maroon | #f62623crimson |
| Destructive foreground | #fcc0bflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fae69epalegoldenrod | #fae69epalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 7.84:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Sour in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.965 0.004 93.911);
--muted-foreground: oklch(0.5 0.021 94.262);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.925 0.093 94.493);
--primary-foreground: oklch(0.429 0.085 91.056);
--secondary: oklch(0.861 0.021 94.114);
--secondary-foreground: oklch(0.342 0.026 94.454);
--accent: oklch(0.861 0.021 94.114);
--accent-foreground: oklch(0.342 0.026 94.454);
--destructive: oklch(0.389 0.154 28.945);
--destructive-foreground: oklch(0.863 0.069 19.709);
--ring: oklch(0.925 0.093 94.493);
--chart-1: oklch(0.925 0.093 94.493);
--chart-2: oklch(0.861 0.021 94.114);
--chart-3: oklch(0.861 0.021 94.114);
--chart-4: oklch(0.882 0.018 94.074);
--chart-5: oklch(0.928 0.096 94.49);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 97.935);
--foreground: oklch(1 0 180);
--muted: oklch(0.163 0.006 94.235);
--muted-foreground: oklch(0.723 0.019 94.134);
--popover: oklch(0.099 0.011 97.935);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.099 0.011 97.935);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.925 0.093 94.493);
--primary-foreground: oklch(0.429 0.085 91.056);
--secondary: oklch(0.28 0.013 94.297);
--secondary-foreground: oklch(0.818 0.017 94.078);
--accent: oklch(0.28 0.013 94.297);
--accent-foreground: oklch(0.818 0.017 94.078);
--destructive: oklch(0.624 0.238 28.238);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.925 0.093 94.493);
--chart-1: oklch(0.925 0.093 94.493);
--chart-2: oklch(0.28 0.013 94.297);
--chart-3: oklch(0.28 0.013 94.297);
--chart-4: oklch(0.313 0.015 94.311);
--chart-5: oklch(0.928 0.096 94.49);
}