Uncommon is a shadcn/ui theme built around a vivid purple primary color (#d008e2) with vivid green accents (#1ae208). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid purple primary (#d008e2) on a neutral background (#070208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070208black |
| Foreground | #130514black | #fdfcfdwhite |
| Card | #fcfcfcsnow | #0b030cblack |
| Card foreground | #0f0410black | #ffffffwhite |
| Popover | #ffffffwhite | #070208black |
| Popover foreground | #130514black | #fdfcfdwhite |
| Primary | #d008e2magenta | #d008e2magenta |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #1ae208lime | #1ae208lime |
| Secondary foreground | #031e01black | #031e01black |
| Muted | #e8ede8linen | #121712black |
| Muted foreground | #656765dimgray | #989a98darkgray |
| Accent | #1ae208lime | #1ae208lime |
| Accent foreground | #031e01black | #031e01black |
| Destructive | #b82514firebrick | #e94b3atomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d008e2magenta | #d008e2magenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 4.35:1 | AA Large |
| Secondary button | 10.05:1 | AAA |
| Muted text | 4.82:1 | AA |
| Accent | 10.05:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 20.05:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 4.35:1 | AA Large |
| Secondary button | 10.05:1 | AAA |
| Muted text | 6.39:1 | AA |
| Accent | 10.05:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Uncommon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.15 0.04 324.335);
--muted: oklch(0.942 0.009 143.088);
--muted-foreground: oklch(0.512 0.004 143.099);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.15 0.04 324.335);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.137 0.035 324.474);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.615 0.287 323.814);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.793 0.266 142.205);
--secondary-foreground: oklch(0.204 0.064 140.926);
--accent: oklch(0.793 0.266 142.205);
--accent-foreground: oklch(0.204 0.064 140.926);
--destructive: oklch(0.508 0.185 30.502);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.615 0.287 323.814);
--chart-1: oklch(0.615 0.287 323.814);
--chart-2: oklch(0.793 0.266 142.205);
--chart-3: oklch(0.793 0.266 142.205);
--chart-4: oklch(0.832 0.28 142.213);
--chart-5: oklch(0.621 0.291 323.751);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.024 324.824);
--foreground: oklch(0.992 0.001 323.14);
--muted: oklch(0.198 0.014 142.804);
--muted-foreground: oklch(0.684 0.004 143.11);
--popover: oklch(0.108 0.024 324.824);
--popover-foreground: oklch(0.992 0.001 323.14);
--card: oklch(0.123 0.028 324.653);
--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.615 0.287 323.814);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.793 0.266 142.205);
--secondary-foreground: oklch(0.204 0.064 140.926);
--accent: oklch(0.793 0.266 142.205);
--accent-foreground: oklch(0.204 0.064 140.926);
--destructive: oklch(0.633 0.197 29.846);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.615 0.287 323.814);
--chart-1: oklch(0.615 0.287 323.814);
--chart-2: oklch(0.793 0.266 142.205);
--chart-3: oklch(0.793 0.266 142.205);
--chart-4: oklch(0.832 0.28 142.213);
--chart-5: oklch(0.621 0.291 323.751);
}