Softdrink is a shadcn/ui theme built around a muted deep pink primary color (#2c1b22) with muted deep red accents (#2c1d1b). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the muted deep pink primary (#2c1b22) on a pink-tinted background (#0f0609).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f9snow | #0f0609black |
| Foreground | #110409black | #fdfcfcsnow |
| Card | #fcf8f9snow | #0f0609black |
| Card foreground | #110409black | #fdfcfcsnow |
| Popover | #fcf8f9snow | #0f0609black |
| Popover foreground | #110409black | #fdfcfcsnow |
| Primary | #2c1b22black | #2c1b22black |
| Primary foreground | #ccadb9silver | #ccadb9silver |
| Secondary | #2c1b2adarkslategray | #2c1b2adarkslategray |
| Secondary foreground | #ccadc8silver | #ccadc8silver |
| Muted | #e8d9e6gainsboro | #261724black |
| Muted foreground | #635f62dimgray | #a09ca0darkgray |
| Accent | #2c1d1bblack | #2c1d1bblack |
| Accent foreground | #ccb1adsilver | #ccb1adsilver |
| Destructive | #a63d0csaddlebrown | #f17941coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c1b22black | #2c1b22black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 4.62:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 7.53:1 | AAA |
Paste this into your globals.css to use Softdrink in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 351.731);
--foreground: oklch(0.133 0.03 353.275);
--muted: oklch(0.901 0.025 329.447);
--muted-foreground: oklch(0.49 0.007 329.304);
--popover: oklch(0.982 0.005 351.731);
--popover-foreground: oklch(0.133 0.03 353.275);
--card: oklch(0.982 0.005 351.731);
--card-foreground: oklch(0.133 0.03 353.275);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.248 0.028 354.627);
--primary-foreground: oklch(0.779 0.039 352.957);
--secondary: oklch(0.251 0.036 330.692);
--secondary-foreground: oklch(0.784 0.051 329.862);
--accent: oklch(0.25 0.023 27.338);
--accent-foreground: oklch(0.783 0.032 26.761);
--destructive: oklch(0.502 0.149 40.631);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.248 0.028 354.627);
--chart-1: oklch(0.248 0.028 354.627);
--chart-2: oklch(0.251 0.036 330.692);
--chart-3: oklch(0.25 0.023 27.338);
--chart-4: oklch(0.282 0.042 330.769);
--chart-5: oklch(0.247 0.032 355.036);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.02 352.846);
--foreground: oklch(0.991 0.002 351.654);
--muted: oklch(0.23 0.034 330.748);
--muted-foreground: oklch(0.698 0.007 329.243);
--popover: oklch(0.137 0.02 352.846);
--popover-foreground: oklch(0.991 0.002 351.654);
--card: oklch(0.137 0.02 352.846);
--card-foreground: oklch(0.991 0.002 351.654);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.248 0.028 354.627);
--primary-foreground: oklch(0.779 0.039 352.957);
--secondary: oklch(0.251 0.036 330.692);
--secondary-foreground: oklch(0.784 0.051 329.862);
--accent: oklch(0.25 0.023 27.338);
--accent-foreground: oklch(0.783 0.032 26.761);
--destructive: oklch(0.705 0.163 43.826);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.248 0.028 354.627);
--chart-1: oklch(0.248 0.028 354.627);
--chart-2: oklch(0.251 0.036 330.692);
--chart-3: oklch(0.25 0.023 27.338);
--chart-4: oklch(0.282 0.042 330.769);
--chart-5: oklch(0.247 0.032 355.036);
}