Code Blue is a shadcn/ui theme built around a muted blue primary color (#838995) with muted blue accents (#46537c). The light mode uses a blue-tinted background (#2a324b). Dark mode keeps the muted blue primary (#838995) on a blue-tinted background (#2a324b).
| Token | Light | Dark |
|---|---|---|
| Background | #2a324bdarkslategray | #2a324bdarkslategray |
| Foreground | #e2e6e9gainsboro | #e2e6e9gainsboro |
| Card | #272e45darkslategray | #272e45darkslategray |
| Card foreground | #f0f2f4whitesmoke | #f0f2f4whitesmoke |
| Popover | #252c41darkslategray | #252c41darkslategray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #838995lightslategray | #838995lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #3d414ddarkslategray | #3d414ddarkslategray |
| Muted foreground | #bdc1cbsilver | #bdc1cbsilver |
| Accent | #46537cdarkslateblue | #46537cdarkslateblue |
| Accent foreground | #f8f9fbghostwhite | #f8f9fbghostwhite |
| Destructive | #f02a14orangered | #f02a14orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3b4154darkslategray | #3b4154darkslategray |
| Input | #41485ddarkslategray | #41485ddarkslategray |
| Ring | #838995lightslategray | #838995lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.04:1 | AAA |
| Text on card | 11.98:1 | AAA |
| Primary button | 5.99:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 4.16:1 | AA Large |
| Text on background | 10.04:1 | AAA |
| Text on card | 11.98:1 | AAA |
| Primary button | 5.99:1 | AA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 7.12:1 | AAA |
| Destructive | 4.16:1 | AA Large |
Paste this into your globals.css to use Code Blue in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.323 0.046 269.617);
--foreground: oklch(0.923 0.006 240.374);
--muted: oklch(0.375 0.022 270.773);
--muted-foreground: oklch(0.811 0.015 271.226);
--popover: oklch(0.296 0.04 269.683);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.305 0.042 269.659);
--card-foreground: oklch(0.962 0.003 240.326);
--border: oklch(0.377 0.034 270.35);
--input: oklch(0.404 0.037 270.329);
--primary: oklch(0.63 0.02 264.424);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.45 0.069 269.419);
--accent-foreground: oklch(0.983 0.003 271.381);
--destructive: oklch(0.615 0.232 30.504);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.63 0.02 264.424);
--chart-1: oklch(0.63 0.02 264.424);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.45 0.069 269.419);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.626 0.027 264.357);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.323 0.046 269.617);
--foreground: oklch(0.923 0.006 240.374);
--muted: oklch(0.375 0.022 270.773);
--muted-foreground: oklch(0.811 0.015 271.226);
--popover: oklch(0.296 0.04 269.683);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.305 0.042 269.659);
--card-foreground: oklch(0.962 0.003 240.326);
--border: oklch(0.377 0.034 270.35);
--input: oklch(0.404 0.037 270.329);
--primary: oklch(0.63 0.02 264.424);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.45 0.069 269.419);
--accent-foreground: oklch(0.983 0.003 271.381);
--destructive: oklch(0.615 0.232 30.504);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.63 0.02 264.424);
--chart-1: oklch(0.63 0.02 264.424);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.45 0.069 269.419);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.626 0.027 264.357);
}