Abbey for shadcn/ui

Abbey is a shadcn/ui theme built around a green primary color (#c7e024) with purple accents (#e024c7). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#c7e024) on a green-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#fdfefbwhite
#0a0a05black
Foreground
#131504black
#fbfbf9snow
Card
#fcfdf7snow
#0d0e06black
Card foreground
#0f1103black
#fdfdfcwhite
Popover
#fcfdf7snow
#0d0e06black
Popover foreground
#0f1103black
#fdfdfcwhite
Primary
#c7e024greenyellow
#c7e024greenyellow
Primary foreground
#2b3107black
#2b3107black
Secondary
#24c7e0darkturquoise
#24c7e0darkturquoise
Secondary foreground
#072b31darkslategray
#072b31darkslategray
Muted
#dceceflavender
#102023black
Muted foreground
#53676adimgray
#95a9acdarkgray
Accent
#e024c7deeppink
#e024c7deeppink
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cb1815firebrick
#d01916firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7e024greenyellow
#c7e024greenyellow

Contrast

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

Light mode
Text on background18.24:1AAA
Text on card18.58:1AAA
Primary button9.11:1AAA
Secondary button7.36:1AAA
Muted text4.93:1AA
Accent4.00:1AA Large
Destructive5.69:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.05:1AAA
Primary button9.11:1AAA
Secondary button7.36:1AAA
Muted text6.79:1AA
Accent4.00:1AA Large
Destructive5.49:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 112.611);
  --foreground: oklch(0.19 0.033 115.462);
  --muted: oklch(0.933 0.018 207.864);
  --muted-foreground: oklch(0.498 0.024 207.841);
  --popover: oklch(0.991 0.007 112.679);
  --popover-foreground: oklch(0.171 0.029 114.989);
  --card: oklch(0.991 0.007 112.679);
  --card-foreground: oklch(0.171 0.029 114.989);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.858 0.192 117.77);
  --primary-foreground: oklch(0.298 0.061 116.884);
  --secondary: oklch(0.763 0.127 211.352);
  --secondary-foreground: oklch(0.269 0.041 209.821);
  --accent: oklch(0.632 0.263 334.836);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.537 0.209 28.541);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.858 0.192 117.77);
  --chart-1: oklch(0.858 0.192 117.77);
  --chart-2: oklch(0.763 0.127 211.352);
  --chart-3: oklch(0.632 0.263 334.836);
  --chart-4: oklch(0.774 0.124 210.636);
  --chart-5: oklch(0.868 0.196 117.912);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.014 113.331);
  --foreground: oklch(0.988 0.004 112.613);
  --muted: oklch(0.232 0.023 208.153);
  --muted-foreground: oklch(0.72 0.022 207.841);
  --popover: oklch(0.16 0.016 114.059);
  --popover-foreground: oklch(0.994 0.002 112.578);
  --card: oklch(0.16 0.016 114.059);
  --card-foreground: oklch(0.994 0.002 112.578);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.858 0.192 117.77);
  --primary-foreground: oklch(0.298 0.061 116.884);
  --secondary: oklch(0.763 0.127 211.352);
  --secondary-foreground: oklch(0.269 0.041 209.821);
  --accent: oklch(0.632 0.263 334.836);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.546 0.212 28.555);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.858 0.192 117.77);
  --chart-1: oklch(0.858 0.192 117.77);
  --chart-2: oklch(0.763 0.127 211.352);
  --chart-3: oklch(0.632 0.263 334.836);
  --chart-4: oklch(0.774 0.124 210.636);
  --chart-5: oklch(0.868 0.196 117.912);
}