Keen for shadcn/ui

Keen is a shadcn/ui theme built around a muted light green primary color (#ceded2) with muted light teal accents (#ceded9). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#ceded2) on a neutral background (#030704).

Color palette

TokenLightDark
Background
#ffffffwhite
#030704black
Foreground
#061409black
#f8fcf9mintcream
Card
#ffffffwhite
#030704black
Card foreground
#061409black
#f8fcf9mintcream
Popover
#ffffffwhite
#030704black
Popover foreground
#061409black
#f8fcf9mintcream
Primary
#ceded2lightgrey
#ceded2lightgrey
Primary foreground
#324936darkslategray
#324936darkslategray
Secondary
#d3decelightgrey
#d3decelightgrey
Secondary foreground
#394932darkslategray
#394932darkslategray
Muted
#f1f6eewhitesmoke
#0b1109black
Muted foreground
#465341darkslategray
#b2beacdarkgray
Accent
#ceded9lightgrey
#ceded9lightgrey
Accent foreground
#324942darkslategray
#324942darkslategray
Destructive
#6d1108maroon
#da2110firebrick
Destructive foreground
#f9b5aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ceded2lightgrey
#ceded2lightgrey

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card18.88:1AAA
Primary button7.00:1AAA
Secondary button6.95:1AA
Muted text7.44:1AAA
Accent6.96:1AA
Destructive7.06:1AAA
Dark mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button7.00:1AAA
Secondary button6.95:1AA
Muted text9.90:1AAA
Accent6.96:1AA
Destructive4.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.173 0.031 149.753);
  --muted: oklch(0.967 0.012 136.065);
  --muted-foreground: oklch(0.425 0.033 136.323);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.173 0.031 149.753);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.173 0.031 149.753);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.885 0.024 151.6);
  --primary-foreground: oklch(0.38 0.043 150.155);
  --secondary: oklch(0.888 0.024 136.121);
  --secondary-foreground: oklch(0.384 0.044 136.496);
  --accent: oklch(0.887 0.018 176.065);
  --accent-foreground: oklch(0.383 0.031 174.002);
  --destructive: oklch(0.347 0.127 30.01);
  --destructive-foreground: oklch(0.834 0.081 24.789);
  --ring: oklch(0.885 0.024 151.6);
  --chart-1: oklch(0.885 0.024 151.6);
  --chart-2: oklch(0.888 0.024 136.121);
  --chart-3: oklch(0.887 0.018 176.065);
  --chart-4: oklch(0.909 0.019 136.1);
  --chart-5: oklch(0.887 0.027 151.535);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.016 151.311);
  --foreground: oklch(0.987 0.005 151.925);
  --muted: oklch(0.167 0.018 136.361);
  --muted-foreground: oklch(0.787 0.028 136.155);
  --popover: oklch(0.121 0.016 151.311);
  --popover-foreground: oklch(0.987 0.005 151.925);
  --card: oklch(0.121 0.016 151.311);
  --card-foreground: oklch(0.987 0.005 151.925);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.885 0.024 151.6);
  --primary-foreground: oklch(0.38 0.043 150.155);
  --secondary: oklch(0.888 0.024 136.121);
  --secondary-foreground: oklch(0.384 0.044 136.496);
  --accent: oklch(0.887 0.018 176.065);
  --accent-foreground: oklch(0.383 0.031 174.002);
  --destructive: oklch(0.57 0.218 30.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.885 0.024 151.6);
  --chart-1: oklch(0.885 0.024 151.6);
  --chart-2: oklch(0.888 0.024 136.121);
  --chart-3: oklch(0.887 0.018 176.065);
  --chart-4: oklch(0.909 0.019 136.1);
  --chart-5: oklch(0.887 0.027 151.535);
}