Basic is a shadcn/ui theme built around a vivid purple primary color (#f882ec) with muted purple accents (#c5b5c3). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#f882ec) on a purple-tinted background (#0a050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0a050ablack |
| Foreground | #040104black | #ffffffwhite |
| Card | #fefbfdsnow | #0a050ablack |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fefbfdsnow | #0a050ablack |
| Popover foreground | #040104black | #ffffffwhite |
| Primary | #f882ecviolet | #f882ecviolet |
| Primary foreground | #43043dmidnightblue | #43043dmidnightblue |
| Secondary | #cdcbcdlightgrey | #181618black |
| Secondary foreground | #343234darkslategray | #b5abb4darkgray |
| Muted | #eeddeclavender | #221120black |
| Muted foreground | #564d56dimgray | #b2a9b1darkgray |
| Accent | #c5b5c3silver | #2e242ddarkslategray |
| Accent foreground | #281f27darkslategray | #c9bac8silver |
| Destructive | #dd0e03red | #fc3b31tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f882ecviolet | #f882ecviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 8.16:1 | AAA |
| Destructive | 5.07:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 7.86:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 3.61:1 | AA Large |
Paste this into your globals.css to use Basic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 328.636);
--foreground: oklch(0.086 0.02 329.923);
--muted: oklch(0.916 0.026 328.906);
--muted-foreground: oklch(0.432 0.019 329.07);
--popover: oklch(0.991 0.004 328.636);
--popover-foreground: oklch(0.086 0.02 329.923);
--card: oklch(0.991 0.004 328.636);
--card-foreground: oklch(0.086 0.02 329.923);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.772 0.191 331.074);
--primary-foreground: oklch(0.269 0.114 333.05);
--secondary: oklch(0.844 0.003 328.637);
--secondary-foreground: oklch(0.32 0.004 328.74);
--accent: oklch(0.79 0.027 328.96);
--accent-foreground: oklch(0.254 0.019 329.39);
--destructive: oklch(0.567 0.228 29.6);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.772 0.191 331.074);
--chart-1: oklch(0.772 0.191 331.074);
--chart-2: oklch(0.844 0.003 328.637);
--chart-3: oklch(0.79 0.027 328.96);
--chart-4: oklch(0.868 0.003 328.629);
--chart-5: oklch(0.772 0.197 331.145);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.016 329.333);
--foreground: oklch(1 0 180);
--muted: oklch(0.209 0.037 330.424);
--muted-foreground: oklch(0.744 0.017 328.838);
--popover: oklch(0.128 0.016 329.333);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.128 0.016 329.333);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.772 0.191 331.074);
--primary-foreground: oklch(0.269 0.114 333.05);
--secondary: oklch(0.203 0.006 328.941);
--secondary-foreground: oklch(0.752 0.016 328.827);
--accent: oklch(0.275 0.021 329.418);
--accent-foreground: oklch(0.807 0.024 328.924);
--destructive: oklch(0.649 0.229 28.481);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.772 0.191 331.074);
--chart-1: oklch(0.772 0.191 331.074);
--chart-2: oklch(0.203 0.006 328.941);
--chart-3: oklch(0.275 0.021 329.418);
--chart-4: oklch(0.235 0.008 328.977);
--chart-5: oklch(0.772 0.197 331.145);
}