Definite is a shadcn/ui theme built around a near-black primary color (#020908) with muted light teal accents (#d9e2e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#020908) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040c0bblack | #fcfdfdwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #020807black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #020807black | #ffffffwhite |
| Primary | #020908black | #020908black |
| Primary foreground | #21b5ablightseagreen | #21b5ablightseagreen |
| Secondary | #d9e2e2gainsboro | #192424black |
| Secondary foreground | #3b4e4ddarkslategray | #aac5c3silver |
| Muted | #e2e4e4gainsboro | #1b1d1dblack |
| Muted foreground | #4b6361dimgray | #9cb4b3darkgray |
| Accent | #d9e2e2gainsboro | #192424black |
| Accent foreground | #3b4e4ddarkslategray | #aac5c3silver |
| Destructive | #99220fbrown | #ec5841tomato |
| Destructive foreground | #fce2dfmistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #020908black | #020908black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.76:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 5.05:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 8.67:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 8.67:1 | AAA |
| Destructive | 6.03:1 | AA |
Paste this into your globals.css to use Definite in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.015 191.174);
--muted: oklch(0.918 0.003 192.358);
--muted-foreground: oklch(0.479 0.029 191.143);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.125 0.013 191.467);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.013 191.467);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.127 0.017 191.242);
--primary-foreground: oklch(0.699 0.116 187.724);
--secondary: oklch(0.907 0.01 192.197);
--secondary-foreground: oklch(0.409 0.024 191.183);
--accent: oklch(0.907 0.01 192.197);
--accent-foreground: oklch(0.409 0.024 191.183);
--destructive: oklch(0.448 0.158 31.623);
--destructive-foreground: oklch(0.934 0.029 28.116);
--ring: oklch(0.127 0.017 191.242);
--chart-1: oklch(0.127 0.017 191.242);
--chart-2: oklch(0.907 0.01 192.197);
--chart-3: oklch(0.907 0.01 192.197);
--chart-4: oklch(0.929 0.008 192.255);
--chart-5: oklch(0.128 0.017 191.206);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.002 192.395);
--muted: oklch(0.23 0.004 192.042);
--muted-foreground: oklch(0.752 0.027 191.682);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.127 0.017 191.242);
--primary-foreground: oklch(0.699 0.116 187.724);
--secondary: oklch(0.251 0.016 191.051);
--secondary-foreground: oklch(0.803 0.029 191.66);
--accent: oklch(0.251 0.016 191.051);
--accent-foreground: oklch(0.803 0.029 191.66);
--destructive: oklch(0.653 0.188 31.301);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.127 0.017 191.242);
--chart-1: oklch(0.127 0.017 191.242);
--chart-2: oklch(0.251 0.016 191.051);
--chart-3: oklch(0.251 0.016 191.051);
--chart-4: oklch(0.286 0.02 190.97);
--chart-5: oklch(0.128 0.017 191.206);
}