Nickel for shadcn/ui

Nickel is a shadcn/ui theme built around a muted deep cyan primary color (#19272a) with muted deep green accents (#272a19). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the muted deep cyan primary (#19272a) on a neutral background (#020708).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#020708black
Foreground
#030f11black
#f9fafbghostwhite
Card
#f5f9faghostwhite
#030b0cblack
Card foreground
#020b0dblack
#fcfdfdwhite
Popover
#f5f9faghostwhite
#030b0cblack
Popover foreground
#020b0dblack
#fcfdfdwhite
Primary
#19272adarkslategray
#19272adarkslategray
Primary foreground
#a8c5cclightsteelblue
#a8c5cclightsteelblue
Secondary
#2a1927black
#2a1927black
Secondary foreground
#cca8c5silver
#cca8c5silver
Muted
#eeeceewhitesmoke
#131113black
Muted foreground
#524c51darkslategray
#b3adb2darkgray
Accent
#272a19black
#272a19black
Accent foreground
#c5cca8silver
#c5cca8silver
Destructive
#5c240amaroon
#e86021chocolate
Destructive foreground
#f5bda3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#19272adarkslategray
#19272adarkslategray

Contrast

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

Light mode
Text on background18.69:1AAA
Text on card18.75:1AAA
Primary button8.48:1AAA
Secondary button7.90:1AAA
Muted text7.12:1AAA
Accent8.81:1AAA
Destructive7.40:1AAA
Dark mode
Text on background19.38:1AAA
Text on card19.53:1AAA
Primary button8.48:1AAA
Secondary button7.90:1AAA
Muted text8.55:1AAA
Accent8.81:1AAA
Destructive6.12:1AA

CSS variables

Paste this into your globals.css to use Nickel in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 212.664);
  --foreground: oklch(0.156 0.02 211.472);
  --muted: oklch(0.945 0.003 331.456);
  --muted-foreground: oklch(0.424 0.012 331.796);
  --popover: oklch(0.979 0.005 212.665);
  --popover-foreground: oklch(0.14 0.017 209.496);
  --card: oklch(0.979 0.005 212.665);
  --card-foreground: oklch(0.14 0.017 209.496);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.26 0.02 213.155);
  --primary-foreground: oklch(0.805 0.033 212.788);
  --secondary: oklch(0.24 0.037 333.427);
  --secondary-foreground: oklch(0.773 0.057 332.42);
  --accent: oklch(0.275 0.03 116.881);
  --accent-foreground: oklch(0.831 0.049 115.911);
  --destructive: oklch(0.338 0.09 42.398);
  --destructive-foreground: oklch(0.842 0.075 46.037);
  --ring: oklch(0.26 0.02 213.155);
  --chart-1: oklch(0.26 0.02 213.155);
  --chart-2: oklch(0.24 0.037 333.427);
  --chart-3: oklch(0.275 0.03 116.881);
  --chart-4: oklch(0.271 0.044 333.54);
  --chart-5: oklch(0.261 0.022 213.271);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.013 208.703);
  --foreground: oklch(0.985 0.002 212.662);
  --muted: oklch(0.18 0.005 331.792);
  --muted-foreground: oklch(0.754 0.01 331.598);
  --popover: oklch(0.139 0.015 209.631);
  --popover-foreground: oklch(0.993 0.001 212.662);
  --card: oklch(0.139 0.015 209.631);
  --card-foreground: oklch(0.993 0.001 212.662);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.26 0.02 213.155);
  --primary-foreground: oklch(0.805 0.033 212.788);
  --secondary: oklch(0.24 0.037 333.427);
  --secondary-foreground: oklch(0.773 0.057 332.42);
  --accent: oklch(0.275 0.03 116.881);
  --accent-foreground: oklch(0.831 0.049 115.911);
  --destructive: oklch(0.654 0.182 41.767);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.26 0.02 213.155);
  --chart-1: oklch(0.26 0.02 213.155);
  --chart-2: oklch(0.24 0.037 333.427);
  --chart-3: oklch(0.275 0.03 116.881);
  --chart-4: oklch(0.271 0.044 333.54);
  --chart-5: oklch(0.261 0.022 213.271);
}