Softdrink is a shadcn/ui theme built around a muted deep green primary color (#37433c) with muted deep pink accents (#43373e). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted deep green primary (#37433c) on a green-tinted background (#030c07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030c07black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f8fcf9mintcream | #041009black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefcwhite | #030c07black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #37433cdarkslategray | #37433cdarkslategray |
| Primary foreground | #d2dad5lightgrey | #d2dad5lightgrey |
| Secondary | #43373edarkslategray | #43373edarkslategray |
| Secondary foreground | #dad2d7lightgrey | #dad2d7lightgrey |
| Muted | #e5d7dfgainsboro | #281a23black |
| Muted foreground | #635f61dimgray | #a09c9edarkgray |
| Accent | #43373edarkslategray | #43373edarkslategray |
| Accent foreground | #dad2d7lightgrey | #dad2d7lightgrey |
| Destructive | #803205saddlebrown | #f6630eorangered |
| Destructive foreground | #fdd2bapeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #37433cdarkslategray | #37433cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.64:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 4.52:1 | AA |
| Accent | 7.62:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 7.62:1 | AAA |
| Destructive | 6.72:1 | AA |
Paste this into your globals.css to use Softdrink in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 160.165);
--foreground: oklch(0 0 0);
--muted: oklch(0.892 0.019 340.708);
--muted-foreground: oklch(0.49 0.006 340.514);
--popover: oklch(0.994 0.003 160.165);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.006 160.096);
--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.371 0.02 158.915);
--primary-foreground: oklch(0.882 0.011 159.945);
--secondary: oklch(0.353 0.021 341.536);
--secondary-foreground: oklch(0.872 0.011 340.521);
--accent: oklch(0.353 0.021 341.536);
--accent-foreground: oklch(0.872 0.011 340.521);
--destructive: oklch(0.421 0.119 44.004);
--destructive-foreground: oklch(0.895 0.058 51.761);
--ring: oklch(0.371 0.02 158.915);
--chart-1: oklch(0.371 0.02 158.915);
--chart-2: oklch(0.353 0.021 341.536);
--chart-3: oklch(0.353 0.021 341.536);
--chart-4: oklch(0.381 0.023 341.563);
--chart-5: oklch(0.374 0.026 158.519);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.02 159.857);
--foreground: oklch(0.993 0.002 160.181);
--muted: oklch(0.24 0.026 342.582);
--muted-foreground: oklch(0.697 0.006 340.415);
--popover: oklch(0.142 0.02 159.857);
--popover-foreground: oklch(0.993 0.002 160.181);
--card: oklch(0.158 0.024 158.452);
--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.371 0.02 158.915);
--primary-foreground: oklch(0.882 0.011 159.945);
--secondary: oklch(0.353 0.021 341.536);
--secondary-foreground: oklch(0.872 0.011 340.521);
--accent: oklch(0.353 0.021 341.536);
--accent-foreground: oklch(0.872 0.011 340.521);
--destructive: oklch(0.679 0.197 42.963);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.371 0.02 158.915);
--chart-1: oklch(0.371 0.02 158.915);
--chart-2: oklch(0.353 0.021 341.536);
--chart-3: oklch(0.353 0.021 341.536);
--chart-4: oklch(0.381 0.023 341.563);
--chart-5: oklch(0.374 0.026 158.519);
}