Soda is a shadcn/ui theme built around a vivid light violet primary color (#a585ff) with muted light violet accents (#d6d3df). The light mode uses a neutral background (#f8f7fd). Dark mode keeps the vivid light violet primary (#a585ff) on a violet-tinted background (#06050a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f7fdghostwhite | #06050ablack |
| Foreground | #080416black | #f6f4fawhitesmoke |
| Card | #f5f3fcghostwhite | #09070eblack |
| Card foreground | #070312black | #f9f8fcghostwhite |
| Popover | #f8f7fdghostwhite | #06050ablack |
| Popover foreground | #080416black | #f6f4fawhitesmoke |
| Primary | #a585ffmediumpurple | #a585ffmediumpurple |
| Primary foreground | #160052midnightblue | #160052midnightblue |
| Secondary | #d6d3dfgainsboro | #171617black |
| Secondary foreground | #3b364adarkslategray | #afaeb2darkgray |
| Muted | #d9d4e8gainsboro | #1d172bblack |
| Muted foreground | #5f5874dimgray | #928ba7lightslategray |
| Accent | #d6d3dfgainsboro | #171617black |
| Accent foreground | #3b364adarkslategray | #afaeb2darkgray |
| Destructive | #7e0c0cmaroon | #d71414crimson |
| Destructive foreground | #f9c2c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a585ffmediumpurple | #a585ffmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.95:1 | AAA |
| Text on card | 18.49:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 4.63:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.95:1 | AA |
| Text on background | 18.59:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 5.34:1 | AA |
| Accent | 8.15:1 | AAA |
| Destructive | 5.26:1 | AA |
Paste this into your globals.css to use Soda in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.009 298.414);
--foreground: oklch(0.128 0.043 294.96);
--muted: oklch(0.88 0.028 298.017);
--muted-foreground: oklch(0.478 0.046 296.841);
--popover: oklch(0.978 0.009 298.414);
--popover-foreground: oklch(0.128 0.043 294.96);
--card: oklch(0.968 0.013 298.334);
--card-foreground: oklch(0.118 0.038 296.576);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.699 0.175 293.658);
--primary-foreground: oklch(0.214 0.129 280.451);
--secondary: oklch(0.872 0.017 298.225);
--secondary-foreground: oklch(0.345 0.036 296.714);
--accent: oklch(0.872 0.017 298.225);
--accent-foreground: oklch(0.345 0.036 296.714);
--destructive: oklch(0.379 0.146 27.958);
--destructive-foreground: oklch(0.864 0.063 18.452);
--ring: oklch(0.699 0.175 293.658);
--chart-1: oklch(0.699 0.175 293.658);
--chart-2: oklch(0.872 0.017 298.225);
--chart-3: oklch(0.872 0.017 298.225);
--chart-4: oklch(0.898 0.014 298.303);
--chart-5: oklch(0.696 0.18 293.463);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.015 298.488);
--foreground: oklch(0.971 0.008 298.425);
--muted: oklch(0.222 0.039 295.346);
--muted-foreground: oklch(0.652 0.043 297.409);
--popover: oklch(0.121 0.015 298.488);
--popover-foreground: oklch(0.971 0.008 298.425);
--card: oklch(0.133 0.017 297.736);
--card-foreground: oklch(0.981 0.005 298.473);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.699 0.175 293.658);
--primary-foreground: oklch(0.214 0.129 280.451);
--secondary: oklch(0.203 0.002 298.408);
--secondary-foreground: oklch(0.754 0.005 298.461);
--accent: oklch(0.203 0.002 298.408);
--accent-foreground: oklch(0.754 0.005 298.461);
--destructive: oklch(0.557 0.22 28.437);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.699 0.175 293.658);
--chart-1: oklch(0.699 0.175 293.658);
--chart-2: oklch(0.203 0.002 298.408);
--chart-3: oklch(0.203 0.002 298.408);
--chart-4: oklch(0.236 0.002 298.392);
--chart-5: oklch(0.696 0.18 293.463);
}