Soil is a shadcn/ui theme built around a vivid light purple primary color (#f5ade2) with vivid light cyan accents (#ade2f5). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid light purple primary (#f5ade2) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #040103black |
| Foreground | #090107black | #fdfcfdwhite |
| Card | #fcf8fbsnow | #040103black |
| Card foreground | #090107black | #fdfcfdwhite |
| Popover | #fcf8fbsnow | #040103black |
| Popover foreground | #090107black | #fdfcfdwhite |
| Primary | #f5ade2plum | #f5ade2plum |
| Primary foreground | #640c4dpurple | #640c4dpurple |
| Secondary | #e2f5adpalegoldenrod | #e2f5adpalegoldenrod |
| Secondary foreground | #070901black | #070901black |
| Muted | #e4e6e0gainsboro | #1d1f19black |
| Muted foreground | #585a53dimgray | #aaaca5darkgray |
| Accent | #ade2f5paleturquoise | #ade2f5paleturquoise |
| Accent foreground | #0c4d64darkslategray | #0c4d64darkslategray |
| Destructive | #cb1201firebrick | #fe1b06red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5ade2plum | #f5ade2plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 17.11:1 | AAA |
| Muted text | 5.55:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 5.79:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 17.11:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Soil in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 334.613);
--foreground: oklch(0.104 0.033 335.469);
--muted: oklch(0.921 0.008 118.712);
--muted-foreground: oklch(0.464 0.011 118.989);
--popover: oklch(0.983 0.005 334.613);
--popover-foreground: oklch(0.104 0.033 335.469);
--card: oklch(0.983 0.005 334.613);
--card-foreground: oklch(0.104 0.033 335.469);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.832 0.108 336.659);
--primary-foreground: oklch(0.346 0.137 342.061);
--secondary: oklch(0.94 0.095 120.396);
--secondary-foreground: oklch(0.133 0.026 118.676);
--accent: oklch(0.882 0.061 222.238);
--accent-foreground: oklch(0.393 0.072 228.668);
--destructive: oklch(0.534 0.212 30.149);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.832 0.108 336.659);
--chart-1: oklch(0.832 0.108 336.659);
--chart-2: oklch(0.94 0.095 120.396);
--chart-3: oklch(0.882 0.061 222.238);
--chart-4: oklch(0.949 0.08 120.069);
--chart-5: oklch(0.831 0.112 336.737);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.018 335.187);
--foreground: oklch(0.992 0.002 334.565);
--muted: oklch(0.235 0.011 119.365);
--muted-foreground: oklch(0.74 0.01 118.802);
--popover: oklch(0.085 0.018 335.187);
--popover-foreground: oklch(0.992 0.002 334.565);
--card: oklch(0.085 0.018 335.187);
--card-foreground: oklch(0.992 0.002 334.565);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.832 0.108 336.659);
--primary-foreground: oklch(0.346 0.137 342.061);
--secondary: oklch(0.94 0.095 120.396);
--secondary-foreground: oklch(0.133 0.026 118.676);
--accent: oklch(0.882 0.061 222.238);
--accent-foreground: oklch(0.393 0.072 228.668);
--destructive: oklch(0.632 0.251 29.995);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.832 0.108 336.659);
--chart-1: oklch(0.832 0.108 336.659);
--chart-2: oklch(0.94 0.095 120.396);
--chart-3: oklch(0.882 0.061 222.238);
--chart-4: oklch(0.949 0.08 120.069);
--chart-5: oklch(0.831 0.112 336.737);
}