Soulful is a shadcn/ui theme built around a light green primary color (#adddac) with light purple accents (#dcacdd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#adddac) on a neutral background (#030803).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030803black |
| Foreground | #031203black | #f8fcf8mintcream |
| Card | #ffffffwhite | #030803black |
| Card foreground | #031203black | #f8fcf8mintcream |
| Popover | #ffffffwhite | #030803black |
| Popover foreground | #031203black | #f8fcf8mintcream |
| Primary | #adddacsilver | #adddacsilver |
| Primary foreground | #1a3e19darkgreen | #1a3e19darkgreen |
| Secondary | #dcacddplum | #dcacddplum |
| Secondary foreground | #3d193edarkslategray | #3d193edarkslategray |
| Muted | #f4e6f4lavenderblush | #190b19black |
| Muted foreground | #625562dimgray | #a99daadarkgray |
| Accent | #dcacddplum | #dcacddplum |
| Accent foreground | #3d193edarkslategray | #3d193edarkslategray |
| Destructive | #991e06darkred | #f63913orangered |
| Destructive foreground | #fddad3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #adddacsilver | #adddacsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 5.83:1 | AA |
| Accent | 7.79:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 7.34:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Soulful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.161 0.042 142.823);
--muted: oklch(0.94 0.024 325.273);
--muted-foreground: oklch(0.468 0.026 325.476);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.161 0.042 142.823);
--card: oklch(1 0 180);
--card-foreground: oklch(0.161 0.042 142.823);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.851 0.084 144.375);
--primary-foreground: oklch(0.325 0.074 143.335);
--secondary: oklch(0.803 0.086 325.811);
--secondary-foreground: oklch(0.283 0.079 326.777);
--accent: oklch(0.803 0.086 325.811);
--accent-foreground: oklch(0.283 0.079 326.777);
--destructive: oklch(0.444 0.161 32.502);
--destructive-foreground: oklch(0.916 0.041 31.195);
--ring: oklch(0.851 0.084 144.375);
--chart-1: oklch(0.851 0.084 144.375);
--chart-2: oklch(0.803 0.086 325.811);
--chart-3: oklch(0.803 0.086 325.811);
--chart-4: oklch(0.829 0.075 325.701);
--chart-5: oklch(0.853 0.09 144.325);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.021 143.621);
--foreground: oklch(0.987 0.007 145.053);
--muted: oklch(0.176 0.035 326.351);
--muted-foreground: oklch(0.71 0.023 325.326);
--popover: oklch(0.121 0.021 143.621);
--popover-foreground: oklch(0.987 0.007 145.053);
--card: oklch(0.121 0.021 143.621);
--card-foreground: oklch(0.987 0.007 145.053);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.851 0.084 144.375);
--primary-foreground: oklch(0.325 0.074 143.335);
--secondary: oklch(0.803 0.086 325.811);
--secondary-foreground: oklch(0.283 0.079 326.777);
--accent: oklch(0.803 0.086 325.811);
--accent-foreground: oklch(0.283 0.079 326.777);
--destructive: oklch(0.636 0.229 32.501);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.851 0.084 144.375);
--chart-1: oklch(0.851 0.084 144.375);
--chart-2: oklch(0.803 0.086 325.811);
--chart-3: oklch(0.803 0.086 325.811);
--chart-4: oklch(0.829 0.075 325.701);
--chart-5: oklch(0.853 0.09 144.325);
}