Enlightened is a shadcn/ui theme built around a muted blue primary color (#4e6673) with muted light blue accents (#c3d2da). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#4e6673) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020303black |
| Foreground | #02090dblack | #f5f8fawhitesmoke |
| Card | #fcfcfcsnow | #030607black |
| Card foreground | #010609black | #f8fafcghostwhite |
| Popover | #ffffffwhite | #020303black |
| Popover foreground | #02090dblack | #f5f8fawhitesmoke |
| Primary | #4e6673dimgray | #4e6673dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dfe4e7gainsboro | #151819black |
| Secondary foreground | #3f4d55darkslategray | #a8b2b8darkgray |
| Muted | #f1f2f3whitesmoke | #0c0d0eblack |
| Muted foreground | #565a5ddimgray | #a2a7a9darkgray |
| Accent | #c3d2dalightgrey | #232e34darkslategray |
| Accent foreground | #293942darkslategray | #b9c7cflightsteelblue |
| Destructive | #984210saddlebrown | #d45c16chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4e6673dimgray | #4e6673dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 6.81:1 | AA |
| Muted text | 6.23:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 8.29:1 | AAA |
| Muted text | 8.00:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 3.92: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.133 0.018 225.784);
--muted: oklch(0.962 0.001 232.598);
--muted-foreground: oklch(0.465 0.007 232.8);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.018 225.784);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.116 0.016 224.17);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.496 0.035 233.805);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.916 0.007 232.689);
--secondary-foreground: oklch(0.411 0.022 233.467);
--accent: oklch(0.854 0.02 232.922);
--accent-foreground: oklch(0.334 0.027 234.026);
--destructive: oklch(0.486 0.129 45.34);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.496 0.035 233.805);
--chart-1: oklch(0.496 0.035 233.805);
--chart-2: oklch(0.916 0.007 232.689);
--chart-3: oklch(0.854 0.02 232.922);
--chart-4: oklch(0.939 0.005 232.657);
--chart-5: oklch(0.497 0.041 234.045);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.092 0.006 228.09);
--foreground: oklch(0.977 0.004 232.644);
--muted: oklch(0.158 0.002 232.761);
--muted-foreground: oklch(0.725 0.006 232.705);
--popover: oklch(0.092 0.006 228.09);
--popover-foreground: oklch(0.977 0.004 232.644);
--card: oklch(0.116 0.008 228.09);
--card-foreground: oklch(0.985 0.003 232.622);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.496 0.035 233.805);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.205 0.006 232.986);
--secondary-foreground: oklch(0.758 0.014 232.847);
--accent: oklch(0.292 0.018 233.611);
--accent-foreground: oklch(0.822 0.019 232.923);
--destructive: oklch(0.618 0.169 44.745);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.496 0.035 233.805);
--chart-1: oklch(0.496 0.035 233.805);
--chart-2: oklch(0.205 0.006 232.986);
--chart-3: oklch(0.292 0.018 233.611);
--chart-4: oklch(0.238 0.007 233.032);
--chart-5: oklch(0.497 0.041 234.045);
}