Nord Light is a shadcn/ui theme built around a muted deep blue primary color (#2f363d) with muted light blue accents (#bbc6d8). The light mode uses a blue-tinted background (#eceff4). Dark mode keeps the muted deep blue primary (#2f363d) on a blue-tinted background (#eceff4).
| Token | Light | Dark |
|---|---|---|
| Background | #eceff4whitesmoke | #eceff4whitesmoke |
| Foreground | #24292edarkslategray | #24292edarkslategray |
| Card | #e5e9f0lavender | #e5e9f0lavender |
| Card foreground | #191c1fblack | #191c1fblack |
| Popover | #e2e7eelavender | #e2e7eelavender |
| Popover foreground | #0d0f11black | #0d0f11black |
| Primary | #2f363ddarkslategray | #2f363ddarkslategray |
| Primary foreground | #c8cfd5lightgrey | #c8cfd5lightgrey |
| Secondary | #bdbfc1silver | #bdbfc1silver |
| Secondary foreground | #252627darkslategray | #252627darkslategray |
| Muted | #e2e5e9gainsboro | #e2e5e9gainsboro |
| Muted foreground | #434a56darkslategray | #434a56darkslategray |
| Accent | #bbc6d8lightsteelblue | #bbc6d8lightsteelblue |
| Accent foreground | #232d3edarkslategray | #232d3edarkslategray |
| Destructive | #8d0707darkred | #8d0707darkred |
| Destructive foreground | #fccacapink | #fccacapink |
| Border | #dee2e8gainsboro | #dee2e8gainsboro |
| Input | #d5dae1gainsboro | #d5dae1gainsboro |
| Ring | #2f363ddarkslategray | #2f363ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.68:1 | AAA |
| Text on card | 14.08:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 7.05:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 12.68:1 | AAA |
| Text on card | 14.08:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 7.05:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.68:1 | AA |
Paste this into your globals.css to use Nord Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.95 0.008 261.511);
--foreground: oklch(0.277 0.011 248.24);
--muted: oklch(0.92 0.006 261.512);
--muted-foreground: oklch(0.408 0.021 261.415);
--popover: oklch(0.925 0.012 259.945);
--popover-foreground: oklch(0.169 0.005 248.117);
--card: oklch(0.934 0.01 259.944);
--card-foreground: oklch(0.225 0.008 248.197);
--border: oklch(0.911 0.009 259.943);
--input: oklch(0.886 0.012 261.506);
--primary: oklch(0.327 0.016 248.303);
--primary-foreground: oklch(0.85 0.011 247.958);
--secondary: oklch(0.804 0.003 247.866);
--secondary-foreground: oklch(0.269 0.003 247.927);
--accent: oklch(0.823 0.028 261.468);
--accent-foreground: oklch(0.296 0.033 261.161);
--destructive: oklch(0.407 0.162 28.569);
--destructive-foreground: oklch(0.882 0.058 18.301);
--ring: oklch(0.327 0.016 248.303);
--chart-1: oklch(0.327 0.016 248.303);
--chart-2: oklch(0.804 0.003 247.866);
--chart-3: oklch(0.823 0.028 261.468);
--chart-4: oklch(0.829 0.003 247.859);
--chart-5: oklch(0.327 0.019 248.414);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.95 0.008 261.511);
--foreground: oklch(0.277 0.011 248.24);
--muted: oklch(0.92 0.006 261.512);
--muted-foreground: oklch(0.408 0.021 261.415);
--popover: oklch(0.925 0.012 259.945);
--popover-foreground: oklch(0.169 0.005 248.117);
--card: oklch(0.934 0.01 259.944);
--card-foreground: oklch(0.225 0.008 248.197);
--border: oklch(0.911 0.009 259.943);
--input: oklch(0.886 0.012 261.506);
--primary: oklch(0.327 0.016 248.303);
--primary-foreground: oklch(0.85 0.011 247.958);
--secondary: oklch(0.804 0.003 247.866);
--secondary-foreground: oklch(0.269 0.003 247.927);
--accent: oklch(0.823 0.028 261.468);
--accent-foreground: oklch(0.296 0.033 261.161);
--destructive: oklch(0.407 0.162 28.569);
--destructive-foreground: oklch(0.882 0.058 18.301);
--ring: oklch(0.327 0.016 248.303);
--chart-1: oklch(0.327 0.016 248.303);
--chart-2: oklch(0.804 0.003 247.866);
--chart-3: oklch(0.823 0.028 261.468);
--chart-4: oklch(0.829 0.003 247.859);
--chart-5: oklch(0.327 0.019 248.414);
}