Detailed is a shadcn/ui theme built around a blue primary color (#2f4693) with muted light blue accents (#cbcfdc). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#2f4693) on a blue-tinted background (#05080f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #05080fblack |
| Foreground | #030612black | #f9f9fbghostwhite |
| Card | #fbfcfewhite | #05080fblack |
| Card foreground | #030612black | #f9f9fbghostwhite |
| Popover | #fbfcfewhite | #05080fblack |
| Popover foreground | #030612black | #f9f9fbghostwhite |
| Primary | #2f4693darkslateblue | #2f4693darkslateblue |
| Primary foreground | #f7f8fdghostwhite | #f7f8fdghostwhite |
| Secondary | #cbcfdclightgrey | #262831darkslategray |
| Secondary foreground | #2f3446darkslategray | #bdc0ccsilver |
| Muted | #dfe3f1lavender | #0e1220black |
| Muted foreground | #484c5bdarkslategray | #a4a8b7darkgray |
| Accent | #cbcfdclightgrey | #262831darkslategray |
| Accent foreground | #2f3446darkslategray | #bdc0ccsilver |
| Destructive | #be4c0echocolate | #ed5f12chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2f4693darkslateblue | #2f4693darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 4.98:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 8.18:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 7.86:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Detailed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 272.633);
--foreground: oklch(0.126 0.028 263.798);
--muted: oklch(0.918 0.019 272.432);
--muted-foreground: oklch(0.42 0.026 271.926);
--popover: oklch(0.991 0.002 272.633);
--popover-foreground: oklch(0.126 0.028 263.798);
--card: oklch(0.991 0.002 272.633);
--card-foreground: oklch(0.126 0.028 263.798);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.42 0.13 267.73);
--primary-foreground: oklch(0.981 0.006 272.598);
--secondary: oklch(0.855 0.019 272.418);
--secondary-foreground: oklch(0.329 0.033 271.375);
--accent: oklch(0.855 0.019 272.418);
--accent-foreground: oklch(0.329 0.033 271.375);
--destructive: oklch(0.56 0.16 42.777);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.42 0.13 267.73);
--chart-1: oklch(0.42 0.13 267.73);
--chart-2: oklch(0.855 0.019 272.418);
--chart-3: oklch(0.855 0.019 272.418);
--chart-4: oklch(0.881 0.015 272.47);
--chart-5: oklch(0.418 0.137 267.381);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.018 267.748);
--foreground: oklch(0.983 0.002 272.636);
--muted: oklch(0.186 0.029 270.491);
--muted-foreground: oklch(0.733 0.022 272.321);
--popover: oklch(0.133 0.018 267.748);
--popover-foreground: oklch(0.983 0.002 272.636);
--card: oklch(0.133 0.018 267.748);
--card-foreground: oklch(0.983 0.002 272.636);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.42 0.13 267.73);
--primary-foreground: oklch(0.981 0.006 272.598);
--secondary: oklch(0.279 0.016 271.961);
--secondary-foreground: oklch(0.809 0.017 272.432);
--accent: oklch(0.279 0.016 271.961);
--accent-foreground: oklch(0.809 0.017 272.432);
--destructive: oklch(0.659 0.191 42.394);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.42 0.13 267.73);
--chart-1: oklch(0.42 0.13 267.73);
--chart-2: oklch(0.279 0.016 271.961);
--chart-3: oklch(0.279 0.016 271.961);
--chart-4: oklch(0.308 0.019 271.93);
--chart-5: oklch(0.418 0.137 267.381);
}