CVE - final is a shadcn/ui theme built around a deep indigo primary color (#29235c) with vivid light blue accents (#a7b1fa). The light mode uses a neutral background (#f7f9fd). Dark mode switches to a blue primary (#4c74c2) on a blue-tinted background (#03060c).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fdghostwhite | #03060cblack |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #ffffffwhite | #040810black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #040810black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #29235cmidnightblue | #4c74c2steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #14c0efdeepskyblue | #4caec2mediumturquoise |
| Secondary foreground | #ffffffwhite | #000000black |
| Muted | #ced4dalightgrey | #0b1619black |
| Muted foreground | #494f50darkslategray | #afb5b6darkgray |
| Accent | #a7b1falightsteelblue | #604cc2slateblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c00000firebrick | #ed322ccrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e9eaeclavender | #202327darkslategray |
| Input | #d0d0d0lightgrey | #202327darkslategray |
| Ring | #29235cmidnightblue | #4c74c2steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 14.10:1 | AAA |
| Secondary button | 2.13:1 | Fail |
| Muted text | 5.58:1 | AA |
| Accent | 2.03:1 | Fail |
| Destructive | 6.47:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 4.59:1 | AA |
| Secondary button | 8.16:1 | AAA |
| Muted text | 8.82:1 | AAA |
| Accent | 6.32:1 | AA |
| Destructive | 4.12:1 | AA Large |
Paste this into your globals.css to use CVE - final in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 264.531);
--foreground: oklch(0 0 0);
--muted: oklch(0.867 0.011 247.949);
--muted-foreground: oklch(0.422 0.009 211.043);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.937 0.003 264.542);
--input: oklch(0.857 0 169.695);
--primary: oklch(0.299 0.098 283.472);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.751 0.139 224.119);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.78 0.105 277.673);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.507 0.208 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.299 0.098 283.472);
--chart-1: oklch(0.299 0.098 283.472);
--chart-2: oklch(0.751 0.139 224.119);
--chart-3: oklch(0.78 0.105 277.673);
--chart-4: oklch(0.762 0.136 222.724);
--chart-5: oklch(0.295 0.104 282.702);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.016 256.899);
--foreground: oklch(0.992 0.001 264.547);
--muted: oklch(0.192 0.017 211.534);
--muted-foreground: oklch(0.769 0.007 211.038);
--popover: oklch(0.135 0.019 258.759);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.135 0.019 258.759);
--card-foreground: oklch(1 0 180);
--border: oklch(0.254 0.009 264.41);
--input: oklch(0.254 0.009 264.41);
--primary: oklch(0.566 0.129 262.877);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.701 0.095 212.867);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.504 0.176 285.856);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.616 0.222 28.059);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.566 0.129 262.877);
--chart-1: oklch(0.566 0.129 262.877);
--chart-2: oklch(0.701 0.095 212.867);
--chart-3: oklch(0.504 0.176 285.856);
--chart-4: oklch(0.719 0.091 212.482);
--chart-5: oklch(0.564 0.137 262.762);
}