Abbey for shadcn/ui

Abbey is a shadcn/ui theme built around a light green primary color (#cdd8b6) with light purple accents (#d8b6cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#cdd8b6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0c1005black
#f8faf5whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#090c04black
#fafbf8snow
Popover
#ffffffwhite
#000000black
Popover foreground
#0c1005black
#f8faf5whitesmoke
Primary
#cdd8b6silver
#cdd8b6silver
Primary foreground
#333c20darkslategray
#333c20darkslategray
Secondary
#b6cdd8lightsteelblue
#b6cdd8lightsteelblue
Secondary foreground
#20333cdarkslategray
#20333cdarkslategray
Muted
#eff3f5whitesmoke
#0a0e10black
Muted foreground
#49555adarkslategray
#a5b0b6darkgray
Accent
#d8b6cdthistle
#d8b6cdthistle
Accent foreground
#3c2033darkslategray
#3c2033darkslategray
Destructive
#b8310ffirebrick
#ec3e13orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cdd8b6silver
#cdd8b6silver

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.27:1AAA
Primary button7.78:1AAA
Secondary button7.94:1AAA
Muted text6.90:1AA
Accent7.94:1AAA
Destructive6.03:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.91:1AAA
Primary button7.78:1AAA
Secondary button7.94:1AAA
Muted text8.76:1AAA
Accent7.94:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.024 122.162);
  --muted: oklch(0.963 0.005 226.917);
  --muted-foreground: oklch(0.44 0.016 227.379);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.024 122.162);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.147 0.021 120.812);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.864 0.047 121.669);
  --primary-foreground: oklch(0.339 0.046 123.2);
  --secondary: oklch(0.835 0.029 227.335);
  --secondary-foreground: oklch(0.309 0.029 228.63);
  --accent: oklch(0.813 0.049 337.699);
  --accent-foreground: oklch(0.288 0.052 339.794);
  --destructive: oklch(0.519 0.177 34.078);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.864 0.047 121.669);
  --chart-1: oklch(0.864 0.047 121.669);
  --chart-2: oklch(0.835 0.029 227.335);
  --chart-3: oklch(0.813 0.049 337.699);
  --chart-4: oklch(0.857 0.025 227.247);
  --chart-5: oklch(0.868 0.051 121.754);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.006 120.869);
  --muted: oklch(0.159 0.007 227.533);
  --muted-foreground: oklch(0.751 0.015 227.106);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.982 0.006 120.869);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.988 0.004 120.835);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.864 0.047 121.669);
  --primary-foreground: oklch(0.339 0.046 123.2);
  --secondary: oklch(0.835 0.029 227.335);
  --secondary-foreground: oklch(0.309 0.029 228.63);
  --accent: oklch(0.813 0.049 337.699);
  --accent-foreground: oklch(0.288 0.052 339.794);
  --destructive: oklch(0.622 0.215 33.89);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.864 0.047 121.669);
  --chart-1: oklch(0.864 0.047 121.669);
  --chart-2: oklch(0.835 0.029 227.335);
  --chart-3: oklch(0.813 0.049 337.699);
  --chart-4: oklch(0.857 0.025 227.247);
  --chart-5: oklch(0.868 0.051 121.754);
}