Keen for shadcn/ui

Keen is a shadcn/ui theme built around a near-black primary color (#080209) with near-black accents (#020908). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the near-black primary (#080209) on a purple-tinted background (#0e060e).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#0e060eblack
Foreground
#000000black
#f9f6f9whitesmoke
Card
#fdf7fdsnow
#0e060eblack
Card foreground
#000000black
#f9f6f9whitesmoke
Popover
#fdf7fdsnow
#0e060eblack
Popover foreground
#000000black
#f9f6f9whitesmoke
Primary
#080209black
#080209black
Primary foreground
#dd5ddforchid
#dd5ddforchid
Secondary
#090802black
#090802black
Secondary foreground
#b3b023goldenrod
#b3b023goldenrod
Muted
#f6f6eewhitesmoke
#111109black
Muted foreground
#545340darkolivegreen
#bfbeabsilver
Accent
#020908black
#020908black
Accent foreground
#23b3b0lightseagreen
#23b3b0lightseagreen
Destructive
#a81600darkred
#f02000red
Destructive foreground
#ffe0dbmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#080209black
#080209black

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button6.56:1AA
Secondary button8.73:1AAA
Muted text7.19:1AAA
Accent7.81:1AAA
Destructive6.07:1AA
Dark mode
Text on background18.60:1AAA
Text on card18.60:1AAA
Primary button6.56:1AA
Secondary button8.73:1AAA
Muted text10.11:1AAA
Accent7.81:1AAA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.011 325.176);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.971 0.01 105.804);
  --muted-foreground: oklch(0.438 0.03 106.76);
  --popover: oklch(0.982 0.011 325.176);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.011 325.176);
  --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.107 0.03 327.009);
  --primary-foreground: oklch(0.686 0.219 326.98);
  --secondary: oklch(0.133 0.021 108.33);
  --secondary-foreground: oklch(0.737 0.15 108.542);
  --accent: oklch(0.127 0.016 194.32);
  --accent-foreground: oklch(0.696 0.113 193.096);
  --destructive: oklch(0.469 0.181 31.365);
  --destructive-foreground: oklch(0.931 0.035 28.169);
  --ring: oklch(0.107 0.03 327.009);
  --chart-1: oklch(0.107 0.03 327.009);
  --chart-2: oklch(0.133 0.021 108.33);
  --chart-3: oklch(0.127 0.016 194.32);
  --chart-4: oklch(0.191 0.031 108.219);
  --chart-5: oklch(0.106 0.032 327.095);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.022 326.15);
  --foreground: oklch(0.976 0.006 325.142);
  --muted: oklch(0.173 0.015 107.082);
  --muted-foreground: oklch(0.798 0.026 106.183);
  --popover: oklch(0.141 0.022 326.15);
  --popover-foreground: oklch(0.976 0.006 325.142);
  --card: oklch(0.141 0.022 326.15);
  --card-foreground: oklch(0.976 0.006 325.142);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.107 0.03 327.009);
  --primary-foreground: oklch(0.686 0.219 326.98);
  --secondary: oklch(0.133 0.021 108.33);
  --secondary-foreground: oklch(0.737 0.15 108.542);
  --accent: oklch(0.127 0.016 194.32);
  --accent-foreground: oklch(0.696 0.113 193.096);
  --destructive: oklch(0.608 0.238 30.912);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.107 0.03 327.009);
  --chart-1: oklch(0.107 0.03 327.009);
  --chart-2: oklch(0.133 0.021 108.33);
  --chart-3: oklch(0.127 0.016 194.32);
  --chart-4: oklch(0.191 0.031 108.219);
  --chart-5: oklch(0.106 0.032 327.095);
}