Commission is a shadcn/ui theme built around a violet primary color (#854fba) with teal accents (#4fba85). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#854fba) on a violet-tinted background (#0a0510).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0510black |
| Foreground | #0d0317black | #fcfcfdwhite |
| Card | #ffffffwhite | #0a0510black |
| Card foreground | #0d0317black | #fcfcfdwhite |
| Popover | #ffffffwhite | #0a0510black |
| Popover foreground | #0d0317black | #fcfcfdwhite |
| Primary | #854fbaslateblue | #854fbaslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #ba854fperu | #ba854fperu |
| Secondary foreground | #000000black | #000000black |
| Muted | #e2dbd4gainsboro | #2b241dblack |
| Muted foreground | #525251darkslategray | #aeadaddarkgray |
| Accent | #4fba85mediumseagreen | #4fba85mediumseagreen |
| Accent foreground | #112c1fblack | #112c1fblack |
| Destructive | #c82014firebrick | #ea362acrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #854fbaslateblue | #854fbaslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.14:1 | AAA |
| Text on card | 20.14:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.72:1 | AA |
| Accent | 6.21:1 | AA |
| Destructive | 5.74:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 5.50:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 6.85:1 | AA |
| Accent | 6.21:1 | AA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Commission in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.049 306.604);
--muted: oklch(0.896 0.012 67.667);
--muted-foreground: oklch(0.438 0.002 67.779);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.049 306.604);
--card: oklch(1 0 180);
--card-foreground: oklch(0.133 0.049 306.604);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.539 0.166 304.478);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.658 0.097 64.753);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.713 0.128 158.758);
--accent-foreground: oklch(0.267 0.042 159.875);
--destructive: oklch(0.534 0.202 29.634);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.539 0.166 304.478);
--chart-1: oklch(0.539 0.166 304.478);
--chart-2: oklch(0.658 0.097 64.753);
--chart-3: oklch(0.713 0.128 158.758);
--chart-4: oklch(0.679 0.091 65.272);
--chart-5: oklch(0.536 0.176 304.11);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.13 0.028 308.231);
--foreground: oklch(0.991 0.002 308.441);
--muted: oklch(0.265 0.017 66.995);
--muted-foreground: oklch(0.749 0.001 67.8);
--popover: oklch(0.13 0.028 308.231);
--popover-foreground: oklch(0.991 0.002 308.441);
--card: oklch(0.13 0.028 308.231);
--card-foreground: oklch(0.991 0.002 308.441);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.539 0.166 304.478);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.658 0.097 64.753);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.713 0.128 158.758);
--accent-foreground: oklch(0.267 0.042 159.875);
--destructive: oklch(0.613 0.217 29.159);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.539 0.166 304.478);
--chart-1: oklch(0.539 0.166 304.478);
--chart-2: oklch(0.658 0.097 64.753);
--chart-3: oklch(0.713 0.128 158.758);
--chart-4: oklch(0.679 0.091 65.272);
--chart-5: oklch(0.536 0.176 304.11);
}