Enlightened is a shadcn/ui theme built around a deep cyan primary color (#0f2229) with deep green accents (#22290f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#0f2229) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010304black | #f5f8f9whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #000000black | #f9fafbghostwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #010304black | #f5f8f9whitesmoke |
| Primary | #0f2229black | #0f2229black |
| Primary foreground | #94c3d6skyblue | #94c3d6skyblue |
| Secondary | #290f22black | #290f22black |
| Secondary foreground | #d694c3plum | #d694c3plum |
| Muted | #f4ebf2whitesmoke | #140b11black |
| Muted foreground | #544550darkslategray | #baabb6darkgray |
| Accent | #22290fblack | #22290fblack |
| Accent foreground | #9aba4ayellowgreen | #9aba4ayellowgreen |
| Destructive | #861b09darkred | #f13d1eorangered |
| Destructive foreground | #fbcec5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f2229black | #0f2229black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.64:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 7.69:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 8.64:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 8.84:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Enlightened in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.094 0.009 217.966);
--muted: oklch(0.949 0.013 335.441);
--muted-foreground: oklch(0.41 0.027 336.347);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.094 0.009 217.966);
--card: oklch(0.992 0 161.565);
--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.238 0.028 225.527);
--primary-foreground: oklch(0.791 0.057 224.209);
--secondary: oklch(0.217 0.051 339.129);
--secondary-foreground: oklch(0.746 0.101 337.489);
--accent: oklch(0.265 0.044 122.444);
--accent-foreground: oklch(0.743 0.144 123.262);
--destructive: oklch(0.406 0.145 32.142);
--destructive-foreground: oklch(0.887 0.053 29.801);
--ring: oklch(0.238 0.028 225.527);
--chart-1: oklch(0.238 0.028 225.527);
--chart-2: oklch(0.217 0.051 339.129);
--chart-3: oklch(0.265 0.044 122.444);
--chart-4: oklch(0.248 0.062 339.412);
--chart-5: oklch(0.239 0.029 225.771);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.004 223.166);
--muted: oklch(0.164 0.02 337.305);
--muted-foreground: oklch(0.757 0.023 335.738);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.004 223.166);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.002 223.154);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.238 0.028 225.527);
--primary-foreground: oklch(0.791 0.057 224.209);
--secondary: oklch(0.217 0.051 339.129);
--secondary-foreground: oklch(0.746 0.101 337.489);
--accent: oklch(0.265 0.044 122.444);
--accent-foreground: oklch(0.743 0.144 123.262);
--destructive: oklch(0.63 0.22 32.237);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.238 0.028 225.527);
--chart-1: oklch(0.238 0.028 225.527);
--chart-2: oklch(0.217 0.051 339.129);
--chart-3: oklch(0.265 0.044 122.444);
--chart-4: oklch(0.248 0.062 339.412);
--chart-5: oklch(0.239 0.029 225.771);
}