Decisive is a shadcn/ui theme built around a near-white primary color (#fcfdfc) with near-white accents (#fcfdfc). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fcfdfc) on a green-tinted background (#091004).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #091004black |
| Foreground | #0b1405black | #f7f9f6whitesmoke |
| Card | #fcfcfcsnow | #0c1406black |
| Card foreground | #091004black | #fafbf9snow |
| Popover | #ffffffwhite | #091004black |
| Popover foreground | #0b1405black | #f7f9f6whitesmoke |
| Primary | #fcfdfcwhite | #fcfdfcwhite |
| Primary foreground | #2d421fdarkslategray | #2d421fdarkslategray |
| Secondary | #fdfdfcwhite | #fdfdfcwhite |
| Secondary foreground | #3f421fdarkolivegreen | #3f421fdarkolivegreen |
| Muted | #f1f2e3beige | #1b1c0dblack |
| Muted foreground | #606156dimgray | #a8a99edarkgray |
| Accent | #fcfdfcwhite | #fcfdfcwhite |
| Accent foreground | #1f4222darkslategray | #1f4222darkslategray |
| Destructive | #d20b04red | #fa0d05red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcfdfcwhite | #fcfdfcwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 10.80:1 | AAA |
| Secondary button | 10.28:1 | AAA |
| Muted text | 5.55:1 | AA |
| Accent | 11.08:1 | AAA |
| Destructive | 5.54:1 | AA |
| Text on background | 18.23:1 | AAA |
| Text on card | 18.11:1 | AAA |
| Primary button | 10.80:1 | AAA |
| Secondary button | 10.28:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 11.08:1 | AAA |
| Destructive | 4.09:1 | AA Large |
Paste this into your globals.css to use Decisive in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.179 0.034 132.588);
--muted: oklch(0.957 0.02 110.635);
--muted-foreground: oklch(0.489 0.017 110.895);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.179 0.034 132.588);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.162 0.029 131.478);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.994 0.003 131.747);
--primary-foreground: oklch(0.353 0.064 133.55);
--secondary: oklch(0.995 0.002 110.293);
--secondary-foreground: oklch(0.368 0.055 112.998);
--accent: oklch(0.993 0.003 148.032);
--accent-foreground: oklch(0.344 0.07 145.584);
--destructive: oklch(0.545 0.22 29.396);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.994 0.003 131.747);
--chart-1: oklch(0.994 0.003 131.747);
--chart-2: oklch(0.995 0.002 110.293);
--chart-3: oklch(0.993 0.003 148.032);
--chart-4: oklch(1.011 0.005 290.154);
--chart-5: oklch(0.994 0.003 131.749);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.027 131.5);
--foreground: oklch(0.979 0.004 131.758);
--muted: oklch(0.22 0.027 112.502);
--muted-foreground: oklch(0.73 0.016 110.644);
--popover: oklch(0.161 0.027 131.5);
--popover-foreground: oklch(0.979 0.004 131.758);
--card: oklch(0.177 0.031 132.596);
--card-foreground: oklch(0.986 0.003 131.746);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.994 0.003 131.747);
--primary-foreground: oklch(0.353 0.064 133.55);
--secondary: oklch(0.995 0.002 110.293);
--secondary-foreground: oklch(0.368 0.055 112.998);
--accent: oklch(0.993 0.003 148.032);
--accent-foreground: oklch(0.344 0.07 145.584);
--destructive: oklch(0.621 0.251 29.372);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.994 0.003 131.747);
--chart-1: oklch(0.994 0.003 131.747);
--chart-2: oklch(0.995 0.002 110.293);
--chart-3: oklch(0.993 0.003 148.032);
--chart-4: oklch(1.011 0.005 290.154);
--chart-5: oklch(0.994 0.003 131.749);
}