Minor is a shadcn/ui theme built around a muted light red primary color (#dbd2d1) with muted light cyan accents (#d1dadb). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light red primary (#dbd2d1) on a red-tinted background (#0a0605).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0605black |
| Foreground | #110504black | #fbf9f8snow |
| Card | #fcfcfcsnow | #0d0807black |
| Card foreground | #0c0403black | #fdfcfcsnow |
| Popover | #fcfcfcsnow | #0d0807black |
| Popover foreground | #0c0403black | #fdfcfcsnow |
| Primary | #dbd2d1lightgrey | #dbd2d1lightgrey |
| Primary foreground | #453836darkslategray | #453836darkslategray |
| Secondary | #d1dadblightgrey | #d1dadblightgrey |
| Secondary foreground | #364345darkslategray | #364345darkslategray |
| Muted | #dfeff1lavender | #0e1e20black |
| Muted foreground | #3e4546darkslategray | #b9c0c1silver |
| Accent | #d1dadblightgrey | #d1dadblightgrey |
| Accent foreground | #364345darkslategray | #364345darkslategray |
| Destructive | #7f170bmaroon | #eb2e19orangered |
| Destructive foreground | #fac8c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dbd2d1lightgrey | #dbd2d1lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 8.26:1 | AAA |
| Accent | 7.21:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 9.30:1 | AAA |
| Accent | 7.21:1 | AAA |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Minor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.023 31.878);
--muted: oklch(0.94 0.017 206.345);
--muted-foreground: oklch(0.386 0.009 206.316);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.123 0.02 32.521);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.02 32.521);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.872 0.01 26.516);
--primary-foreground: oklch(0.352 0.019 26.886);
--secondary: oklch(0.882 0.01 206.378);
--secondary-foreground: oklch(0.371 0.017 206.26);
--accent: oklch(0.882 0.01 206.378);
--accent-foreground: oklch(0.371 0.017 206.26);
--destructive: oklch(0.388 0.14 30.495);
--destructive-foreground: oklch(0.874 0.058 25.669);
--ring: oklch(0.872 0.01 26.516);
--chart-1: oklch(0.872 0.01 26.516);
--chart-2: oklch(0.882 0.01 206.378);
--chart-3: oklch(0.882 0.01 206.378);
--chart-4: oklch(0.904 0.008 206.391);
--chart-5: oklch(0.871 0.012 26.537);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.01 29.01);
--foreground: oklch(0.983 0.003 26.46);
--muted: oklch(0.221 0.021 206.436);
--muted-foreground: oklch(0.802 0.008 206.383);
--popover: oklch(0.141 0.011 28.545);
--popover-foreground: oklch(0.992 0.001 26.45);
--card: oklch(0.141 0.011 28.545);
--card-foreground: oklch(0.992 0.001 26.45);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.872 0.01 26.516);
--primary-foreground: oklch(0.352 0.019 26.886);
--secondary: oklch(0.882 0.01 206.378);
--secondary-foreground: oklch(0.371 0.017 206.26);
--accent: oklch(0.882 0.01 206.378);
--accent-foreground: oklch(0.371 0.017 206.26);
--destructive: oklch(0.608 0.225 30.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.872 0.01 26.516);
--chart-1: oklch(0.872 0.01 26.516);
--chart-2: oklch(0.882 0.01 206.378);
--chart-3: oklch(0.882 0.01 206.378);
--chart-4: oklch(0.904 0.008 206.391);
--chart-5: oklch(0.871 0.012 26.537);
}