Diligent is a shadcn/ui theme built around a vivid deep indigo primary color (#090236) with vivid deep green accents (#023609). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep indigo primary (#090236) on an indigo-tinted background (#060410).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060410black |
| Foreground | #05030cblack | #ffffffwhite |
| Card | #fcfcfcsnow | #080614black |
| Card foreground | #030208black | #ffffffwhite |
| Popover | #ffffffwhite | #060410black |
| Popover foreground | #05030cblack | #ffffffwhite |
| Primary | #090236black | #090236black |
| Primary foreground | #d8d2felavender | #d8d2felavender |
| Secondary | #360902black | #360902black |
| Secondary foreground | #fb8270salmon | #fb8270salmon |
| Muted | #ded5d4gainsboro | #2b2321darkslategray |
| Muted foreground | #5f5e5ddimgray | #a2a0a0darkgray |
| Accent | #023609darkgreen | #023609darkgreen |
| Accent foreground | #0df82clime | #0df82clime |
| Destructive | #981710darkred | #eb463dtomato |
| Destructive foreground | #fce0dfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #090236black | #090236black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.49:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 13.58:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 4.49:1 | AA Large |
| Accent | 9.39:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 20.29:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 13.58:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 9.39:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Diligent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.111 0.024 290.407);
--muted: oklch(0.88 0.01 27.99);
--muted-foreground: oklch(0.482 0.002 27.955);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.111 0.024 290.407);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.097 0.021 290.519);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.165 0.097 276.413);
--primary-foreground: oklch(0.884 0.059 291.25);
--secondary: oklch(0.223 0.074 34.214);
--secondary-foreground: oklch(0.738 0.151 30.15);
--accent: oklch(0.291 0.09 144.731);
--accent-foreground: oklch(0.849 0.279 143.36);
--destructive: oklch(0.439 0.165 29.079);
--destructive-foreground: oklch(0.929 0.03 21.326);
--ring: oklch(0.165 0.097 276.413);
--chart-1: oklch(0.165 0.097 276.413);
--chart-2: oklch(0.223 0.074 34.214);
--chart-3: oklch(0.291 0.09 144.731);
--chart-4: oklch(0.258 0.09 33.147);
--chart-5: oklch(0.164 0.099 275.648);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.028 289.615);
--foreground: oklch(1 0 180);
--muted: oklch(0.264 0.013 28.278);
--muted-foreground: oklch(0.707 0.002 27.947);
--popover: oklch(0.122 0.028 289.615);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.032 288.648);
--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.165 0.097 276.413);
--primary-foreground: oklch(0.884 0.059 291.25);
--secondary: oklch(0.223 0.074 34.214);
--secondary-foreground: oklch(0.738 0.151 30.15);
--accent: oklch(0.291 0.09 144.731);
--accent-foreground: oklch(0.849 0.279 143.36);
--destructive: oklch(0.63 0.203 27.589);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.165 0.097 276.413);
--chart-1: oklch(0.165 0.097 276.413);
--chart-2: oklch(0.223 0.074 34.214);
--chart-3: oklch(0.291 0.09 144.731);
--chart-4: oklch(0.258 0.09 33.147);
--chart-5: oklch(0.164 0.099 275.648);
}