Mindless is a shadcn/ui theme built around a muted deep green primary color (#3c5233) with muted deep green accents (#335239). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#3c5233) on a green-tinted background (#080f05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080f05black |
| Foreground | #091603black | #ffffffwhite |
| Card | #fcfcfcsnow | #0a1307black |
| Card foreground | #071203black | #ffffffwhite |
| Popover | #ffffffwhite | #080f05black |
| Popover foreground | #091603black | #ffffffwhite |
| Primary | #3c5233darkslategray | #3c5233darkslategray |
| Primary foreground | #d8e4d3gainsboro | #d8e4d3gainsboro |
| Secondary | #4b5233darkolivegreen | #4b5233darkolivegreen |
| Secondary foreground | #e0e4d3gainsboro | #e0e4d3gainsboro |
| Muted | #e4e6dbgainsboro | #222419black |
| Muted foreground | #5a5e4adarkolivegreen | #b1b5a1darkgray |
| Accent | #335239darkslategray | #335239darkslategray |
| Accent foreground | #d3e4d6gainsboro | #d3e4d6gainsboro |
| Destructive | #8a1405darkred | #f7361dorangered |
| Destructive foreground | #fdcbc4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c5233darkslategray | #3c5233darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.62:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 6.37:1 | AA |
| Muted text | 5.29:1 | AA |
| Accent | 6.61:1 | AA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.40:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 6.37:1 | AA |
| Muted text | 7.50:1 | AAA |
| Accent | 6.61:1 | AA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Mindless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.183 0.043 135.718);
--muted: oklch(0.919 0.014 115.859);
--muted-foreground: oklch(0.473 0.032 116.812);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.183 0.043 135.718);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.165 0.037 134.901);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.41 0.056 136.618);
--primary-foreground: oklch(0.904 0.025 136.125);
--secondary: oklch(0.423 0.048 117.708);
--secondary-foreground: oklch(0.91 0.022 116.026);
--accent: oklch(0.405 0.055 149.738);
--accent-foreground: oklch(0.901 0.025 151.585);
--destructive: oklch(0.408 0.153 31.072);
--destructive-foreground: oklch(0.883 0.058 27.019);
--ring: oklch(0.41 0.056 136.618);
--chart-1: oklch(0.41 0.056 136.618);
--chart-2: oklch(0.423 0.048 117.708);
--chart-3: oklch(0.405 0.055 149.738);
--chart-4: oklch(0.456 0.052 117.742);
--chart-5: oklch(0.415 0.062 136.707);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.025 135.284);
--foreground: oklch(1 0 180);
--muted: oklch(0.254 0.019 116.961);
--muted-foreground: oklch(0.764 0.028 116.261);
--popover: oklch(0.158 0.025 135.284);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.173 0.029 136.12);
--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.41 0.056 136.618);
--primary-foreground: oklch(0.904 0.025 136.125);
--secondary: oklch(0.423 0.048 117.708);
--secondary-foreground: oklch(0.91 0.022 116.026);
--accent: oklch(0.405 0.055 149.738);
--accent-foreground: oklch(0.901 0.025 151.585);
--destructive: oklch(0.635 0.23 31.032);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.41 0.056 136.618);
--chart-1: oklch(0.41 0.056 136.618);
--chart-2: oklch(0.423 0.048 117.708);
--chart-3: oklch(0.405 0.055 149.738);
--chart-4: oklch(0.456 0.052 117.742);
--chart-5: oklch(0.415 0.062 136.707);
}