Detailed is a shadcn/ui theme built around a green primary color (#35734f) with teal accents (#35736e). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the green primary (#35734f) on a green-tinted background (#030c07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #030c07black |
| Foreground | #04160bblack | #fcfdfcwhite |
| Card | #f8fcfamintcream | #041009black |
| Card foreground | #031109black | #ffffffwhite |
| Popover | #fbfdfcwhite | #030c07black |
| Popover foreground | #04160bblack | #fcfdfcwhite |
| Primary | #35734fseagreen | #35734fseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3a7335darkolivegreen | #3a7335darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d7dbd6gainsboro | #242924darkslategray |
| Muted foreground | #474d47darkslategray | #b3b8b2darkgray |
| Accent | #35736eseagreen | #35736eseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6d1e08maroon | #f06038tomato |
| Destructive foreground | #f9bfaelightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #35734fseagreen | #35734fseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.34:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 5.63:1 | AA |
| Secondary button | 5.67:1 | AA |
| Muted text | 6.20:1 | AA |
| Accent | 5.46:1 | AA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 5.63:1 | AA |
| Secondary button | 5.67:1 | AA |
| Muted text | 7.35:1 | AAA |
| Accent | 5.46:1 | AA |
| Destructive | 6.42:1 | AA |
Paste this into your globals.css to use Detailed in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 160.952);
--foreground: oklch(0.179 0.034 157.069);
--muted: oklch(0.887 0.009 143.087);
--muted-foreground: oklch(0.413 0.012 142.999);
--popover: oklch(0.994 0.003 160.952);
--popover-foreground: oklch(0.179 0.034 157.069);
--card: oklch(0.987 0.005 160.889);
--card-foreground: oklch(0.162 0.029 158.774);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.505 0.087 155.813);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.502 0.112 142.1);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.514 0.065 188.106);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.361 0.116 35.348);
--destructive-foreground: oklch(0.852 0.071 36.006);
--ring: oklch(0.505 0.087 155.813);
--chart-1: oklch(0.505 0.087 155.813);
--chart-2: oklch(0.502 0.112 142.1);
--chart-3: oklch(0.514 0.065 188.106);
--chart-4: oklch(0.534 0.12 142.093);
--chart-5: oklch(0.51 0.093 155.404);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.02 160.674);
--foreground: oklch(0.993 0.001 160.988);
--muted: oklch(0.274 0.012 142.928);
--muted-foreground: oklch(0.777 0.01 143.073);
--popover: oklch(0.142 0.02 160.674);
--popover-foreground: oklch(0.993 0.001 160.988);
--card: oklch(0.158 0.024 159.191);
--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.505 0.087 155.813);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.502 0.112 142.1);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.514 0.065 188.106);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.668 0.186 36.121);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.505 0.087 155.813);
--chart-1: oklch(0.505 0.087 155.813);
--chart-2: oklch(0.502 0.112 142.1);
--chart-3: oklch(0.514 0.065 188.106);
--chart-4: oklch(0.534 0.12 142.093);
--chart-5: oklch(0.51 0.093 155.404);
}