Minority is a shadcn/ui theme built around a muted light purple primary color (#d7bcd7) with muted light pink accents (#d7bcc9). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the muted light purple primary (#d7bcd7) on a neutral background (#080308).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fdsnow | #080308black |
| Foreground | #0e020dblack | #fdfbfdsnow |
| Card | #fcf3fcghostwhite | #0b040bblack |
| Card foreground | #090109black | #ffffffwhite |
| Popover | #fdf7fdsnow | #080308black |
| Popover foreground | #0e020dblack | #fdfbfdsnow |
| Primary | #d7bcd7thistle | #d7bcd7thistle |
| Primary foreground | #3d243ddarkslategray | #3d243ddarkslategray |
| Secondary | #cabcd7thistle | #cabcd7thistle |
| Secondary foreground | #31243ddarkslategray | #31243ddarkslategray |
| Muted | #dcd4e3gainsboro | #241c2bblack |
| Muted foreground | #615c66dimgray | #9e99a3darkgray |
| Accent | #d7bcc9thistle | #d7bcc9thistle |
| Accent foreground | #3d2430darkslategray | #3d2430darkslategray |
| Destructive | #af0c04firebrick | #fa291eorangered |
| Destructive foreground | #fee7e6mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7bcd7thistle | #d7bcd7thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.22:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 4.49:1 | AA Large |
| Accent | 7.96:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 19.91:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Minority in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.011 326.142);
--foreground: oklch(0.122 0.041 328.222);
--muted: oklch(0.88 0.022 308.864);
--muted-foreground: oklch(0.483 0.016 308.768);
--popover: oklch(0.982 0.011 326.142);
--popover-foreground: oklch(0.122 0.041 328.222);
--card: oklch(0.973 0.016 326.187);
--card-foreground: oklch(0.106 0.035 328.136);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.826 0.049 326.516);
--primary-foreground: oklch(0.302 0.055 327.411);
--secondary: oklch(0.814 0.042 308.591);
--secondary-foreground: oklch(0.287 0.048 307.315);
--accent: oklch(0.821 0.036 347.156);
--accent-foreground: oklch(0.296 0.043 349.582);
--destructive: oklch(0.477 0.19 29.65);
--destructive-foreground: oklch(0.947 0.026 21.245);
--ring: oklch(0.826 0.049 326.516);
--chart-1: oklch(0.826 0.049 326.516);
--chart-2: oklch(0.814 0.042 308.591);
--chart-3: oklch(0.821 0.036 347.156);
--chart-4: oklch(0.841 0.035 308.685);
--chart-5: oklch(0.825 0.054 326.568);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.022 327.407);
--foreground: oklch(0.992 0.003 326.08);
--muted: oklch(0.243 0.03 307.817);
--muted-foreground: oklch(0.691 0.015 308.897);
--popover: oklch(0.109 0.022 327.407);
--popover-foreground: oklch(0.992 0.003 326.08);
--card: oklch(0.125 0.026 327.445);
--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.826 0.049 326.516);
--primary-foreground: oklch(0.302 0.055 327.411);
--secondary: oklch(0.814 0.042 308.591);
--secondary-foreground: oklch(0.287 0.048 307.315);
--accent: oklch(0.821 0.036 347.156);
--accent-foreground: oklch(0.296 0.043 349.582);
--destructive: oklch(0.633 0.241 29.188);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.826 0.049 326.516);
--chart-1: oklch(0.826 0.049 326.516);
--chart-2: oklch(0.814 0.042 308.591);
--chart-3: oklch(0.821 0.036 347.156);
--chart-4: oklch(0.841 0.035 308.685);
--chart-5: oklch(0.825 0.054 326.568);
}