Key for shadcn/ui

Key is a shadcn/ui theme built around a deep cyan primary color (#09181b) with deep green accents (#181b09). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the deep cyan primary (#09181b) on a cyan-tinted background (#040e10).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#040e10black
Foreground
#000000black
#fcfdfdwhite
Card
#f5f9faghostwhite
#051214black
Card foreground
#000000black
#ffffffwhite
Popover
#f5f9faghostwhite
#051214black
Popover foreground
#000000black
#ffffffwhite
Primary
#09181bblack
#09181bblack
Primary foreground
#3ba3b5lightseagreen
#3ba3b5lightseagreen
Secondary
#1b0918black
#1b0918black
Secondary foreground
#d680c9orchid
#d680c9orchid
Muted
#f6eaf4lavenderblush
#150913black
Muted foreground
#484147darkslategray
#beb7bdsilver
Accent
#181b09black
#181b09black
Accent foreground
#a3b53byellowgreen
#a3b53byellowgreen
Destructive
#ac3306firebrick
#f7622btomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#09181bblack
#09181bblack

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card19.83:1AAA
Primary button6.11:1AA
Secondary button7.09:1AAA
Muted text8.45:1AAA
Accent7.69:1AAA
Destructive6.50:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.04:1AAA
Primary button6.11:1AA
Secondary button7.09:1AAA
Muted text9.88:1AAA
Accent7.69:1AAA
Destructive6.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 209.459);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.019 330.497);
  --muted-foreground: oklch(0.386 0.013 330.687);
  --popover: oklch(0.98 0.005 209.454);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.005 209.454);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.198 0.022 210.119);
  --primary-foreground: oklch(0.663 0.097 211.494);
  --secondary: oklch(0.175 0.042 333.05);
  --secondary-foreground: oklch(0.715 0.14 332.58);
  --accent: oklch(0.214 0.032 116.227);
  --accent-foreground: oklch(0.736 0.146 117.488);
  --destructive: oklch(0.499 0.165 36.65);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.198 0.022 210.119);
  --chart-1: oklch(0.198 0.022 210.119);
  --chart-2: oklch(0.175 0.042 333.05);
  --chart-3: oklch(0.214 0.032 116.227);
  --chart-4: oklch(0.209 0.056 333.428);
  --chart-5: oklch(0.199 0.023 210.187);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.017 208.412);
  --foreground: oklch(0.993 0.001 209.466);
  --muted: oklch(0.164 0.028 332.309);
  --muted-foreground: oklch(0.786 0.011 330.43);
  --popover: oklch(0.171 0.019 209.337);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.171 0.019 209.337);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.198 0.022 210.119);
  --primary-foreground: oklch(0.663 0.097 211.494);
  --secondary: oklch(0.175 0.042 333.05);
  --secondary-foreground: oklch(0.715 0.14 332.58);
  --accent: oklch(0.214 0.032 116.227);
  --accent-foreground: oklch(0.736 0.146 117.488);
  --destructive: oklch(0.68 0.195 38.785);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.198 0.022 210.119);
  --chart-1: oklch(0.198 0.022 210.119);
  --chart-2: oklch(0.175 0.042 333.05);
  --chart-3: oklch(0.214 0.032 116.227);
  --chart-4: oklch(0.209 0.056 333.428);
  --chart-5: oklch(0.199 0.023 210.187);
}