Blue nuit Theme is a shadcn/ui theme built around a blue primary color (#2f428e) with green accents (#428e2f). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the blue primary (#2f428e) on a neutral background (#030408).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #030408black |
| Foreground | #03050cblack | #f8f9fcghostwhite |
| Card | #f7f8fdghostwhite | #04050bblack |
| Card foreground | #020308black | #fcfcfdwhite |
| Popover | #f7f8fdghostwhite | #04050bblack |
| Popover foreground | #020308black | #fcfcfdwhite |
| Primary | #2f428edarkslateblue | #2f428edarkslateblue |
| Primary foreground | #f4f5fbwhitesmoke | #f4f5fbwhitesmoke |
| Secondary | #8e2f42brown | #8e2f42brown |
| Secondary foreground | #fbf4f5lavenderblush | #fbf4f5lavenderblush |
| Muted | #f7eef0whitesmoke | #11080ablack |
| Muted foreground | #6d5f62dimgray | #a09295rosybrown |
| Accent | #428e2fforestgreen | #428e2fforestgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b12d0bfirebrick | #f25f3atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #efeff0whitesmoke | #202022black |
| Input | #efeff0whitesmoke | #202022black |
| Ring | #2f428edarkslateblue | #2f428edarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.42:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.31:1 | AA |
| Accent | 4.10:1 | AA Large |
| Destructive | 6.45:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.42:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 4.10:1 | AA Large |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Blue nuit Theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 274.991);
--foreground: oklch(0.116 0.021 267.34);
--muted: oklch(0.956 0.01 3.463);
--muted-foreground: oklch(0.5 0.019 4.19);
--popover: oklch(0.979 0.007 274.946);
--popover-foreground: oklch(0.101 0.018 267.159);
--card: oklch(0.979 0.007 274.946);
--card-foreground: oklch(0.101 0.018 267.159);
--border: oklch(0.953 0.001 275.017);
--input: oklch(0.953 0.001 275.017);
--primary: oklch(0.408 0.127 269.469);
--primary-foreground: oklch(0.971 0.008 274.929);
--secondary: oklch(0.45 0.128 11.936);
--secondary-foreground: oklch(0.972 0.008 3.418);
--accent: oklch(0.576 0.15 139.874);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.503 0.174 33.887);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.408 0.127 269.469);
--chart-1: oklch(0.408 0.127 269.469);
--chart-2: oklch(0.45 0.128 11.936);
--chart-3: oklch(0.576 0.15 139.874);
--chart-4: oklch(0.475 0.136 12.043);
--chart-5: oklch(0.405 0.134 269.038);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.104 0.014 269.332);
--foreground: oklch(0.982 0.004 274.985);
--muted: oklch(0.15 0.017 5.539);
--muted-foreground: oklch(0.673 0.017 3.877);
--popover: oklch(0.12 0.016 269.407);
--popover-foreground: oklch(0.991 0.002 275.01);
--card: oklch(0.12 0.016 269.407);
--card-foreground: oklch(0.991 0.002 275.01);
--border: oklch(0.245 0.004 274.827);
--input: oklch(0.245 0.004 274.827);
--primary: oklch(0.408 0.127 269.469);
--primary-foreground: oklch(0.971 0.008 274.929);
--secondary: oklch(0.45 0.128 11.936);
--secondary-foreground: oklch(0.972 0.008 3.418);
--accent: oklch(0.576 0.15 139.874);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.671 0.189 35.126);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.408 0.127 269.469);
--chart-1: oklch(0.408 0.127 269.469);
--chart-2: oklch(0.45 0.128 11.936);
--chart-3: oklch(0.576 0.15 139.874);
--chart-4: oklch(0.475 0.136 12.043);
--chart-5: oklch(0.405 0.134 269.038);
}