Soulful is a shadcn/ui theme built around a vivid purple primary color (#b015c1) with vivid pink accents (#c1157c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#b015c1) on a purple-tinted background (#0b030c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b030cblack |
| Foreground | #100311black | #fbf9fbsnow |
| Card | #fcfcfcsnow | #0f0410black |
| Card foreground | #0c020dblack | #fdfcfdwhite |
| Popover | #ffffffwhite | #0b030cblack |
| Popover foreground | #100311black | #fbf9fbsnow |
| Primary | #b015c1darkorchid | #b015c1darkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5a15c1rebeccapurple | #5a15c1rebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4deedlavender | #181221black |
| Muted foreground | #5a5464dimgray | #a29babdarkgray |
| Accent | #c1157cmediumvioletred | #c1157cmediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6e2907saddlebrown | #e6560fchocolate |
| Destructive foreground | #fac7aepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b015c1darkorchid | #b015c1darkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 5.65:1 | AA |
| Secondary button | 9.07:1 | AAA |
| Muted text | 5.53:1 | AA |
| Accent | 5.73:1 | AA |
| Destructive | 6.94:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 5.65:1 | AA |
| Secondary button | 9.07:1 | AAA |
| Muted text | 6.80:1 | AA |
| Accent | 5.73:1 | AA |
| Destructive | 3.67: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.135 0.041 324.155);
--muted: oklch(0.91 0.021 304.017);
--muted-foreground: oklch(0.457 0.028 303.475);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.135 0.041 324.155);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.121 0.036 324.511);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.547 0.248 323.208);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.433 0.229 290.878);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.539 0.214 351.489);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.378 0.107 42.496);
--destructive-foreground: oklch(0.868 0.068 47.921);
--ring: oklch(0.547 0.248 323.208);
--chart-1: oklch(0.547 0.248 323.208);
--chart-2: oklch(0.433 0.229 290.878);
--chart-3: oklch(0.539 0.214 351.489);
--chart-4: oklch(0.455 0.242 290.722);
--chart-5: oklch(0.552 0.253 323.14);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.029 324.217);
--foreground: oklch(0.984 0.003 322.639);
--muted: oklch(0.198 0.03 302.088);
--muted-foreground: oklch(0.7 0.025 303.836);
--popover: oklch(0.123 0.029 324.217);
--popover-foreground: oklch(0.984 0.003 322.639);
--card: oklch(0.136 0.034 323.871);
--card-foreground: oklch(0.992 0.001 322.633);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.547 0.248 323.208);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.433 0.229 290.878);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.539 0.214 351.489);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.638 0.192 40.905);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.547 0.248 323.208);
--chart-1: oklch(0.547 0.248 323.208);
--chart-2: oklch(0.433 0.229 290.878);
--chart-3: oklch(0.539 0.214 351.489);
--chart-4: oklch(0.455 0.242 290.722);
--chart-5: oklch(0.552 0.253 323.14);
}