Evidence is a shadcn/ui theme built around a blue primary color (#648ce3) with indigo accents (#7b64e3). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the blue primary (#648ce3) on a blue-tinted background (#04060c).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #04060cblack |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #f8f9fbghostwhite | #050810black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8f9fbghostwhite | #050810black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #648ce3cornflowerblue | #648ce3cornflowerblue |
| Primary foreground | #030811black | #030811black |
| Secondary | #64cbe3skyblue | #64cbe3skyblue |
| Secondary foreground | #030f11black | #030f11black |
| Muted | #d8e2e4gainsboro | #1b2527black |
| Muted foreground | #475052darkslategray | #adb6b8darkgray |
| Accent | #7b64e3mediumslateblue | #7b64e3mediumslateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #881301darkred | #fd472btomato |
| Destructive foreground | #fec6bdpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #648ce3cornflowerblue | #648ce3cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 10.38:1 | AAA |
| Muted text | 6.26:1 | AA |
| Accent | 4.40:1 | AA Large |
| Destructive | 6.52:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 10.38:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 4.40:1 | AA Large |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Evidence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 266);
--foreground: oklch(0.082 0.015 254.805);
--muted: oklch(0.905 0.012 212.677);
--muted-foreground: oklch(0.424 0.012 212.721);
--popover: oklch(0.983 0.003 265.993);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.003 265.993);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.65 0.137 264.15);
--primary-foreground: oklch(0.132 0.024 258.155);
--secondary: oklch(0.79 0.101 214.459);
--secondary-foreground: oklch(0.156 0.02 211.472);
--accent: oklch(0.59 0.185 287.788);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.404 0.153 31.679);
--destructive-foreground: oklch(0.874 0.066 28.507);
--ring: oklch(0.65 0.137 264.15);
--chart-1: oklch(0.65 0.137 264.15);
--chart-2: oklch(0.79 0.101 214.459);
--chart-3: oklch(0.59 0.185 287.788);
--chart-4: oklch(0.806 0.095 214.066);
--chart-5: oklch(0.648 0.143 264.049);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.015 258.865);
--foreground: oklch(0.992 0.001 266.004);
--muted: oklch(0.256 0.015 212.931);
--muted-foreground: oklch(0.77 0.01 212.678);
--popover: oklch(0.135 0.018 260.545);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.018 260.545);
--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.65 0.137 264.15);
--primary-foreground: oklch(0.132 0.024 258.155);
--secondary: oklch(0.79 0.101 214.459);
--secondary-foreground: oklch(0.156 0.02 211.472);
--accent: oklch(0.59 0.185 287.788);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.66 0.222 31.659);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.65 0.137 264.15);
--chart-1: oklch(0.65 0.137 264.15);
--chart-2: oklch(0.79 0.101 214.459);
--chart-3: oklch(0.59 0.185 287.788);
--chart-4: oklch(0.806 0.095 214.066);
--chart-5: oklch(0.648 0.143 264.049);
}