Crucial Nordic Noir for shadcn/ui

Crucial Nordic Noir is a shadcn/ui theme built around a deep cyan primary color (#103341) with deep blue accents (#101a41). The light mode uses a neutral background (#f6fbfd). Dark mode keeps the deep cyan primary (#103341) on a cyan-tinted background (#05090a).

Color palette

TokenLightDark
Background
#f6fbfdghostwhite
#05090ablack
Foreground
#041015black
#ffffffwhite
Card
#f2f9fdaliceblue
#070b0dblack
Card foreground
#040d11black
#ffffffwhite
Popover
#f2f9fdaliceblue
#070b0dblack
Popover foreground
#040d11black
#ffffffwhite
Primary
#103341darkslategray
#103341darkslategray
Primary foreground
#9dd0e7lightblue
#9dd0e7lightblue
Secondary
#104137darkslategray
#104137darkslategray
Secondary foreground
#4bd2b7mediumturquoise
#4bd2b7mediumturquoise
Muted
#dce5e3gainsboro
#1a2322black
Muted foreground
#424d4bdarkslategray
#b2bdbbsilver
Accent
#101a41midnightblue
#101a41midnightblue
Accent foreground
#9dace7lightsteelblue
#9dace7lightsteelblue
Destructive
#ba1d08firebrick
#dc2209firebrick
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#dee1e3gainsboro
#232729darkslategray
Input
#dee1e3gainsboro
#232729darkslategray
Ring
#103341darkslategray
#103341darkslategray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.52:1AAA
Text on card18.48:1AAA
Primary button8.05:1AAA
Secondary button6.08:1AA
Muted text6.84:1AA
Accent7.60:1AAA
Destructive6.05:1AA
Dark mode
Text on background20.02:1AAA
Text on card19.71:1AAA
Primary button8.05:1AAA
Secondary button6.08:1AA
Muted text8.29:1AAA
Accent7.60:1AAA
Destructive4.90:1AA

CSS variables

Paste this into your globals.css to use Crucial Nordic Noir in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.006 225.05);
  --foreground: oklch(0.164 0.021 225.413);
  --muted: oklch(0.915 0.011 182.86);
  --muted-foreground: oklch(0.41 0.015 182.146);
  --popover: oklch(0.979 0.009 225.085);
  --popover-foreground: oklch(0.15 0.018 223.287);
  --card: oklch(0.979 0.009 225.085);
  --card-foreground: oklch(0.15 0.018 223.287);
  --border: oklch(0.909 0.004 225.034);
  --input: oklch(0.909 0.004 225.034);
  --primary: oklch(0.302 0.047 229.536);
  --primary-foreground: oklch(0.831 0.062 226.182);
  --secondary: oklch(0.341 0.054 176.832);
  --secondary-foreground: oklch(0.784 0.123 177.06);
  --accent: oklch(0.236 0.075 269.284);
  --accent-foreground: oklch(0.754 0.086 273.331);
  --destructive: oklch(0.507 0.193 30.851);
  --destructive-foreground: oklch(0.98 0.009 26.502);
  --ring: oklch(0.302 0.047 229.536);
  --chart-1: oklch(0.302 0.047 229.536);
  --chart-2: oklch(0.341 0.054 176.832);
  --chart-3: oklch(0.236 0.075 269.284);
  --chart-4: oklch(0.382 0.062 176.584);
  --chart-5: oklch(0.303 0.049 229.893);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.008 221.681);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.248 0.014 181.505);
  --muted-foreground: oklch(0.79 0.013 182.729);
  --popover: oklch(0.148 0.009 224.263);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.009 224.263);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.271 0.007 225.302);
  --input: oklch(0.271 0.007 225.302);
  --primary: oklch(0.302 0.047 229.536);
  --primary-foreground: oklch(0.831 0.062 226.182);
  --secondary: oklch(0.341 0.054 176.832);
  --secondary-foreground: oklch(0.784 0.123 177.06);
  --accent: oklch(0.236 0.075 269.284);
  --accent-foreground: oklch(0.754 0.086 273.331);
  --destructive: oklch(0.574 0.22 30.774);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.302 0.047 229.536);
  --chart-1: oklch(0.302 0.047 229.536);
  --chart-2: oklch(0.341 0.054 176.832);
  --chart-3: oklch(0.236 0.075 269.284);
  --chart-4: oklch(0.382 0.062 176.584);
  --chart-5: oklch(0.303 0.049 229.893);
}