Bare Simply Purple is a shadcn/ui theme built around a violet primary color (#7d5bb3) with purple accents (#a95bb3). The light mode uses a neutral background (#f9f6fd). Dark mode keeps the violet primary (#7d5bb3) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f6fdghostwhite | #020204black |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #f9f6fdghostwhite | #020204black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #f9f6fdghostwhite | #020204black |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #7d5bb3slateblue | #7d5bb3slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5b65b3slateblue | #5b65b3slateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e4e4e7gainsboro | #18181bblack |
| Muted foreground | #56596cdimgray | #9396a9darkgray |
| Accent | #a95bb3mediumorchid | #a95bb3mediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b34100saddlebrown | #eb5600orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e0dfe2gainsboro | #232225black |
| Input | #e0dfe2gainsboro | #232225black |
| Ring | #7d5bb3slateblue | #7d5bb3slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 5.23:1 | AA |
| Secondary button | 5.29:1 | AA |
| Muted text | 5.45:1 | AA |
| Accent | 4.34:1 | AA Large |
| Destructive | 5.71:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 5.23:1 | AA |
| Secondary button | 5.29:1 | AA |
| Muted text | 6.04:1 | AA |
| Accent | 4.34:1 | AA Large |
| Destructive | 3.58:1 | AA Large |
Paste this into your globals.css to use Bare Simply Purple in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.01 303.495);
--foreground: oklch(0 0 0);
--muted: oklch(0.92 0.004 280.268);
--muted-foreground: oklch(0.468 0.031 279.227);
--popover: oklch(0.978 0.01 303.495);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.978 0.01 303.495);
--card-foreground: oklch(0 0 0);
--border: oklch(0.906 0.003 303.583);
--input: oklch(0.906 0.003 303.583);
--primary: oklch(0.546 0.137 299.556);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.536 0.122 275.791);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.596 0.154 322.804);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.528 0.159 41.999);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.546 0.137 299.556);
--chart-1: oklch(0.546 0.137 299.556);
--chart-2: oklch(0.536 0.122 275.791);
--chart-3: oklch(0.596 0.154 322.804);
--chart-4: oklch(0.567 0.113 276.449);
--chart-5: oklch(0.541 0.147 299.125);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.012 304.278);
--foreground: oklch(0.983 0.003 303.601);
--muted: oklch(0.211 0.005 279.926);
--muted-foreground: oklch(0.677 0.028 279.658);
--popover: oklch(0.083 0.012 304.278);
--popover-foreground: oklch(0.983 0.003 303.601);
--card: oklch(0.083 0.012 304.278);
--card-foreground: oklch(0.983 0.003 303.601);
--border: oklch(0.255 0.006 303.32);
--input: oklch(0.255 0.006 303.32);
--primary: oklch(0.546 0.137 299.556);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.536 0.122 275.791);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.596 0.154 322.804);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.644 0.197 41.203);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.546 0.137 299.556);
--chart-1: oklch(0.546 0.137 299.556);
--chart-2: oklch(0.536 0.122 275.791);
--chart-3: oklch(0.596 0.154 322.804);
--chart-4: oklch(0.567 0.113 276.449);
--chart-5: oklch(0.541 0.147 299.125);
}