Minor is a shadcn/ui theme built around a muted light purple primary color (#e2dee3) with muted light pink accents (#e3dee1). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted light purple primary (#e2dee3) on a purple-tinted background (#0b040c).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0b040cblack |
| Foreground | #000000black | #f8f6f9whitesmoke |
| Card | #fcf7fdghostwhite | #0e0510black |
| Card foreground | #000000black | #fbf9fbsnow |
| Popover | #fcf7fdghostwhite | #0e0510black |
| Popover foreground | #000000black | #fbf9fbsnow |
| Primary | #e2dee3gainsboro | #e2dee3gainsboro |
| Primary foreground | #4c424ddarkslategray | #4c424ddarkslategray |
| Secondary | #e0dee3gainsboro | #e0dee3gainsboro |
| Secondary foreground | #46424ddarkslategray | #46424ddarkslategray |
| Muted | #dddae2gainsboro | #201d25black |
| Muted foreground | #554f5fdimgray | #a6a0b0darkgray |
| Accent | #e3dee1gainsboro | #e3dee1gainsboro |
| Accent foreground | #4d4249darkslategray | #4d4249darkslategray |
| Destructive | #882101darkred | #e83802orangered |
| Destructive foreground | #fecdbdpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e2dee3gainsboro | #e2dee3gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 18.89:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.31:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 7.20:1 | AAA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Minor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 322.131);
--foreground: oklch(0 0 0);
--muted: oklch(0.893 0.011 303.453);
--muted-foreground: oklch(0.439 0.026 302.75);
--popover: oklch(0.981 0.011 322.15);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.011 322.15);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.905 0.008 322.143);
--primary-foreground: oklch(0.392 0.023 322.309);
--secondary: oklch(0.903 0.007 303.526);
--secondary-foreground: oklch(0.387 0.02 302.877);
--accent: oklch(0.905 0.007 339.631);
--accent-foreground: oklch(0.392 0.019 340.521);
--destructive: oklch(0.415 0.143 35.263);
--destructive-foreground: oklch(0.886 0.061 37.592);
--ring: oklch(0.905 0.008 322.143);
--chart-1: oklch(0.905 0.008 322.143);
--chart-2: oklch(0.903 0.007 303.526);
--chart-3: oklch(0.905 0.007 339.631);
--chart-4: oklch(0.928 0.005 303.557);
--chart-5: oklch(0.904 0.011 322.155);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.027 323.612);
--foreground: oklch(0.976 0.005 322.129);
--muted: oklch(0.238 0.016 302.667);
--muted-foreground: oklch(0.717 0.023 303.159);
--popover: oklch(0.137 0.031 323.196);
--popover-foreground: oklch(0.984 0.003 322.124);
--card: oklch(0.137 0.031 323.196);
--card-foreground: oklch(0.984 0.003 322.124);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.905 0.008 322.143);
--primary-foreground: oklch(0.392 0.023 322.309);
--secondary: oklch(0.903 0.007 303.526);
--secondary-foreground: oklch(0.387 0.02 302.877);
--accent: oklch(0.905 0.007 339.631);
--accent-foreground: oklch(0.392 0.019 340.521);
--destructive: oklch(0.61 0.218 34.112);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.905 0.008 322.143);
--chart-1: oklch(0.905 0.008 322.143);
--chart-2: oklch(0.903 0.007 303.526);
--chart-3: oklch(0.905 0.007 339.631);
--chart-4: oklch(0.928 0.005 303.557);
--chart-5: oklch(0.904 0.011 322.155);
}