Option 1 is a shadcn/ui theme built around a muted light blue primary color (#d3d9e4) with muted light blue accents (#e3e5e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light blue primary (#d3d9e4) on a blue-tinted background (#040910).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040910black |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #050b14black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #040910black |
| Popover foreground | #010204black | #fcfcfdwhite |
| Primary | #d3d9e4gainsboro | #d3d9e4gainsboro |
| Primary foreground | #333f52darkslategray | #333f52darkslategray |
| Secondary | #e3e5e8gainsboro | #19191ablack |
| Secondary foreground | #454b54darkslategray | #b1b2b4darkgray |
| Muted | #e6e9f0lavender | #0f131ablack |
| Muted foreground | #464d58darkslategray | #a7aeb9darkgray |
| Accent | #e3e5e8gainsboro | #19191ablack |
| Accent foreground | #454b54darkslategray | #b1b2b4darkgray |
| Destructive | #9a210efirebrick | #ed5740tomato |
| Destructive foreground | #fce2demistyrose | #000000black |
| Border | #eff0f0whitesmoke | #252628darkslategray |
| Input | #eff0f0whitesmoke | #252628darkslategray |
| Ring | #d3d9e4gainsboro | #d3d9e4gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 6.96:1 | AA |
| Muted text | 7.02:1 | AAA |
| Accent | 6.96:1 | AA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.52:1 | AAA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 8.31:1 | AAA |
| Accent | 8.25:1 | AAA |
| Destructive | 6.03:1 | AA |
Paste this into your globals.css to use Option 1 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.014 248.86);
--muted: oklch(0.934 0.009 259.943);
--muted-foreground: oklch(0.418 0.02 259.922);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.014 248.86);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.954 0.001 259.935);
--input: oklch(0.954 0.001 259.935);
--primary: oklch(0.885 0.015 259.946);
--primary-foreground: oklch(0.364 0.036 259.798);
--secondary: oklch(0.921 0.005 259.939);
--secondary-foreground: oklch(0.41 0.018 259.928);
--accent: oklch(0.921 0.005 259.939);
--accent-foreground: oklch(0.41 0.018 259.928);
--destructive: oklch(0.449 0.16 31.607);
--destructive-foreground: oklch(0.933 0.029 28.119);
--ring: oklch(0.885 0.015 259.946);
--chart-1: oklch(0.885 0.015 259.946);
--chart-2: oklch(0.921 0.005 259.939);
--chart-3: oklch(0.921 0.005 259.939);
--chart-4: oklch(0.945 0.003 259.938);
--chart-5: oklch(0.884 0.018 259.946);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.02 254.001);
--foreground: oklch(0.992 0.001 259.935);
--muted: oklch(0.187 0.014 259.861);
--muted-foreground: oklch(0.749 0.017 259.945);
--popover: oklch(0.137 0.02 254.001);
--popover-foreground: oklch(0.992 0.001 259.935);
--card: oklch(0.148 0.023 256.61);
--card-foreground: oklch(1 0 180);
--border: oklch(0.268 0.004 259.945);
--input: oklch(0.268 0.004 259.945);
--primary: oklch(0.885 0.015 259.946);
--primary-foreground: oklch(0.364 0.036 259.798);
--secondary: oklch(0.215 0.001 259.941);
--secondary-foreground: oklch(0.764 0.003 259.938);
--accent: oklch(0.215 0.001 259.941);
--accent-foreground: oklch(0.764 0.003 259.938);
--destructive: oklch(0.653 0.19 31.332);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.885 0.015 259.946);
--chart-1: oklch(0.885 0.015 259.946);
--chart-2: oklch(0.215 0.001 259.941);
--chart-3: oklch(0.215 0.001 259.941);
--chart-4: oklch(0.248 0.002 259.941);
--chart-5: oklch(0.884 0.018 259.946);
}