Incentive is a shadcn/ui theme built around an indigo primary color (#9998dd) with muted light indigo accents (#d0d0dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#9998dd) on an indigo-tinted background (#04040b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04040bblack |
| Foreground | #05050fblack | #f6f6f9whitesmoke |
| Card | #ffffffwhite | #04040bblack |
| Card foreground | #05050fblack | #f6f6f9whitesmoke |
| Popover | #ffffffwhite | #04040bblack |
| Popover foreground | #05050fblack | #f6f6f9whitesmoke |
| Primary | #9998ddmediumpurple | #9998ddmediumpurple |
| Primary foreground | #111132black | #111132black |
| Secondary | #d0d0ddlightgrey | #2b2a2cdarkslategray |
| Secondary foreground | #343347darkslategray | #c3c3c6silver |
| Muted | #cfcee3lightgrey | #1c1c31darkslategray |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #d0d0ddlightgrey | #2b2a2cdarkslategray |
| Accent foreground | #343347darkslategray | #c3c3c6silver |
| Destructive | #b21d10firebrick | #dd2413crimson |
| Destructive foreground | #fef6f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9998ddmediumpurple | #9998ddmediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 4.54:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 18.91:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 8.09:1 | AAA |
| Destructive | 4.86:1 | AA |
Paste this into your globals.css to use Incentive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.025 283.128);
--muted: oklch(0.859 0.028 286.551);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.123 0.025 283.128);
--card: oklch(1 0 180);
--card-foreground: oklch(0.123 0.025 283.128);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.706 0.1 284.302);
--primary-foreground: oklch(0.199 0.064 279.637);
--secondary: oklch(0.861 0.018 286.784);
--secondary-foreground: oklch(0.332 0.034 285.129);
--accent: oklch(0.861 0.018 286.784);
--accent-foreground: oklch(0.332 0.034 285.129);
--destructive: oklch(0.493 0.185 30.067);
--destructive-foreground: oklch(0.98 0.008 23.666);
--ring: oklch(0.706 0.1 284.302);
--chart-1: oklch(0.706 0.1 284.302);
--chart-2: oklch(0.861 0.018 286.784);
--chart-3: oklch(0.861 0.018 286.784);
--chart-4: oklch(0.887 0.014 286.869);
--chart-5: oklch(0.702 0.106 284.084);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.018 284.178);
--foreground: oklch(0.974 0.003 287.105);
--muted: oklch(0.237 0.039 283.75);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.115 0.018 284.178);
--popover-foreground: oklch(0.974 0.003 287.105);
--card: oklch(0.115 0.018 284.178);
--card-foreground: oklch(0.974 0.003 287.105);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.706 0.1 284.302);
--primary-foreground: oklch(0.199 0.064 279.637);
--secondary: oklch(0.288 0.003 286.97);
--secondary-foreground: oklch(0.818 0.003 287.097);
--accent: oklch(0.288 0.003 286.97);
--accent-foreground: oklch(0.818 0.003 287.097);
--destructive: oklch(0.576 0.218 30.086);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.706 0.1 284.302);
--chart-1: oklch(0.706 0.1 284.302);
--chart-2: oklch(0.288 0.003 286.97);
--chart-3: oklch(0.288 0.003 286.97);
--chart-4: oklch(0.318 0.004 286.962);
--chart-5: oklch(0.702 0.106 284.084);
}