Minor is a shadcn/ui theme built around a deep indigo primary color (#2f2956) with deep green accents (#505629). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the deep indigo primary (#2f2956) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #020203black |
| Foreground | #060410black | #f5f4fawhitesmoke |
| Card | #f8f8fcghostwhite | #040307black |
| Card foreground | #04030cblack | #f8f8fcghostwhite |
| Popover | #f8f8fcghostwhite | #040307black |
| Popover foreground | #04030cblack | #f8f8fcghostwhite |
| Primary | #2f2956midnightblue | #2f2956midnightblue |
| Primary foreground | #cfcbe6thistle | #cfcbe6thistle |
| Secondary | #505629darkolivegreen | #505629darkolivegreen |
| Secondary foreground | #e3e6cbgainsboro | #e3e6cbgainsboro |
| Muted | #f3f5eblinen | #13140ablack |
| Muted foreground | #4c4d47darkslategray | #b7b8b2silver |
| Accent | #505629darkolivegreen | #505629darkolivegreen |
| Accent foreground | #e3e6cbgainsboro | #e3e6cbgainsboro |
| Destructive | #c33613firebrick | #eb5b37tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f2956midnightblue | #2f2956midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.75:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 8.43:1 | AAA |
| Secondary button | 6.07:1 | AA |
| Muted text | 7.73:1 | AAA |
| Accent | 6.07:1 | AA |
| Destructive | 5.43:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 8.43:1 | AAA |
| Secondary button | 6.07:1 | AA |
| Muted text | 9.27:1 | AAA |
| Accent | 6.07:1 | AA |
| Destructive | 6.10:1 | AA |
Paste this into your globals.css to use Minor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 292.488);
--foreground: oklch(0.121 0.03 289.369);
--muted: oklch(0.965 0.013 112.796);
--muted-foreground: oklch(0.417 0.01 112.976);
--popover: oklch(0.98 0.006 292.432);
--popover-foreground: oklch(0.109 0.026 290.136);
--card: oklch(0.98 0.006 292.432);
--card-foreground: oklch(0.109 0.026 290.136);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.314 0.078 287.14);
--primary-foreground: oklch(0.854 0.037 291.717);
--secondary: oklch(0.437 0.066 115.448);
--secondary-foreground: oklch(0.916 0.036 113.271);
--accent: oklch(0.437 0.066 115.448);
--accent-foreground: oklch(0.916 0.036 113.271);
--destructive: oklch(0.544 0.183 34.245);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.314 0.078 287.14);
--chart-1: oklch(0.314 0.078 287.14);
--chart-2: oklch(0.437 0.066 115.448);
--chart-3: oklch(0.437 0.066 115.448);
--chart-4: oklch(0.472 0.072 115.491);
--chart-5: oklch(0.309 0.084 286.495);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.084 0.009 291.535);
--foreground: oklch(0.97 0.008 292.385);
--muted: oklch(0.187 0.019 114.421);
--muted-foreground: oklch(0.78 0.008 112.743);
--popover: oklch(0.105 0.012 291.535);
--popover-foreground: oklch(0.98 0.005 292.44);
--card: oklch(0.105 0.012 291.535);
--card-foreground: oklch(0.98 0.005 292.44);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.314 0.078 287.14);
--primary-foreground: oklch(0.854 0.037 291.717);
--secondary: oklch(0.437 0.066 115.448);
--secondary-foreground: oklch(0.916 0.036 113.271);
--accent: oklch(0.437 0.066 115.448);
--accent-foreground: oklch(0.916 0.036 113.271);
--destructive: oklch(0.655 0.185 35.114);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.314 0.078 287.14);
--chart-1: oklch(0.314 0.078 287.14);
--chart-2: oklch(0.437 0.066 115.448);
--chart-3: oklch(0.437 0.066 115.448);
--chart-4: oklch(0.472 0.072 115.491);
--chart-5: oklch(0.309 0.084 286.495);
}