Definite is a shadcn/ui theme built around a vivid green primary color (#3dfa8f) with vivid pink accents (#fa3da8). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the vivid green primary (#3dfa8f) on a green-tinted background (#050f0a).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfamintcream | #050f0ablack |
| Foreground | #031109black | #ffffffwhite |
| Card | #f7fdfamintcream | #050f0ablack |
| Card foreground | #031109black | #ffffffwhite |
| Popover | #f7fdfamintcream | #050f0ablack |
| Popover foreground | #031109black | #ffffffwhite |
| Primary | #3dfa8fmediumspringgreen | #3dfa8fmediumspringgreen |
| Primary foreground | #000502black | #000502black |
| Secondary | #fa3da8hotpink | #fa3da8hotpink |
| Secondary foreground | #050003black | #050003black |
| Muted | #ede8eblinen | #171215black |
| Muted foreground | #6c5662dimgray | #a993a0darkgray |
| Accent | #fa3da8hotpink | #fa3da8hotpink |
| Accent foreground | #050003black | #050003black |
| Destructive | #d22c0ffirebrick | #ef3a1aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3dfa8fmediumspringgreen | #3dfa8fmediumspringgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 14.93:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 5.52:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 5.12:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 14.93:1 | AAA |
| Secondary button | 6.25:1 | AA |
| Muted text | 6.49:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Definite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.007 161.631);
--foreground: oklch(0.161 0.027 159.636);
--muted: oklch(0.936 0.006 341.958);
--muted-foreground: oklch(0.48 0.033 343.398);
--popover: oklch(0.988 0.007 161.631);
--popover-foreground: oklch(0.161 0.027 159.636);
--card: oklch(0.988 0.007 161.631);
--card-foreground: oklch(0.161 0.027 159.636);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.87 0.208 152.843);
--primary-foreground: oklch(0.102 0.022 161.778);
--secondary: oklch(0.674 0.24 351.063);
--secondary-foreground: oklch(0.079 0.031 341.852);
--accent: oklch(0.674 0.24 351.063);
--accent-foreground: oklch(0.079 0.031 341.852);
--destructive: oklch(0.561 0.205 31.945);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.87 0.208 152.843);
--chart-1: oklch(0.87 0.208 152.843);
--chart-2: oklch(0.674 0.24 351.063);
--chart-3: oklch(0.674 0.24 351.063);
--chart-4: oklch(0.689 0.228 349.934);
--chart-5: oklch(0.877 0.213 152.594);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.02 160.217);
--foreground: oklch(1 0 180);
--muted: oklch(0.19 0.009 342.889);
--muted-foreground: oklch(0.687 0.03 342.835);
--popover: oklch(0.156 0.02 160.217);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.02 160.217);
--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.87 0.208 152.843);
--primary-foreground: oklch(0.102 0.022 161.778);
--secondary: oklch(0.674 0.24 351.063);
--secondary-foreground: oklch(0.079 0.031 341.852);
--accent: oklch(0.674 0.24 351.063);
--accent-foreground: oklch(0.079 0.031 341.852);
--destructive: oklch(0.624 0.221 32.168);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.87 0.208 152.843);
--chart-1: oklch(0.87 0.208 152.843);
--chart-2: oklch(0.674 0.24 351.063);
--chart-3: oklch(0.674 0.24 351.063);
--chart-4: oklch(0.689 0.228 349.934);
--chart-5: oklch(0.877 0.213 152.594);
}