Commander is a shadcn/ui theme built around a muted green primary color (#93a46a) with muted light green accents (#c9cdc1). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#93a46a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0a0d02black | #f8f9f5whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0a0d02black | #f8f9f5whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0a0d02black | #f8f9f5whitesmoke |
| Primary | #93a46adarkseagreen | #93a46adarkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #dedfddgainsboro | #212419black |
| Secondary foreground | #464842darkslategray | #bdc4absilver |
| Muted | #e7eed8beige | #202711black |
| Muted foreground | #4c4e46darkslategray | #b7b9b1silver |
| Accent | #c9cdc1silver | #3b4328darkslategray |
| Accent foreground | #303329darkslategray | #d3dbc2lightgrey |
| Destructive | #a5180dfirebrick | #ef4539tomato |
| Destructive foreground | #fde9e7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93a46adarkseagreen | #93a46adarkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 6.94:1 | AA |
| Muted text | 7.07:1 | AAA |
| Accent | 7.96:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 7.74:1 | AAA |
| Secondary button | 8.74:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 7.27:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Commander in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.151 0.027 120.483);
--muted: oklch(0.937 0.029 120.562);
--muted-foreground: oklch(0.42 0.015 120.633);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.151 0.027 120.483);
--card: oklch(1 0 180);
--card-foreground: oklch(0.151 0.027 120.483);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.691 0.082 122.136);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.903 0.004 120.106);
--secondary-foreground: oklch(0.397 0.009 120.435);
--accent: oklch(0.842 0.017 120.385);
--accent-foreground: oklch(0.314 0.018 121.01);
--destructive: oklch(0.464 0.176 29.656);
--destructive-foreground: oklch(0.949 0.022 22.489);
--ring: oklch(0.691 0.082 122.136);
--chart-1: oklch(0.691 0.082 122.136);
--chart-2: oklch(0.903 0.004 120.106);
--chart-3: oklch(0.842 0.017 120.385);
--chart-4: oklch(0.925 0.003 120.089);
--chart-5: oklch(0.699 0.091 122.372);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.006 120.134);
--muted: oklch(0.259 0.038 122.721);
--muted-foreground: oklch(0.783 0.013 120.311);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.006 120.134);
--card: oklch(0 0 0);
--card-foreground: oklch(0.981 0.006 120.134);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.691 0.082 122.136);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.254 0.02 121.43);
--secondary-foreground: oklch(0.809 0.036 120.798);
--accent: oklch(0.367 0.044 122.188);
--accent-foreground: oklch(0.878 0.033 120.684);
--destructive: oklch(0.636 0.208 28.543);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.691 0.082 122.136);
--chart-1: oklch(0.691 0.082 122.136);
--chart-2: oklch(0.254 0.02 121.43);
--chart-3: oklch(0.367 0.044 122.188);
--chart-4: oklch(0.289 0.025 121.517);
--chart-5: oklch(0.699 0.091 122.372);
}