Bookend for shadcn/ui

Bookend is a shadcn/ui theme built around a vivid light cyan primary color (#c6effb) with vivid light green accents (#effbc6). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid light cyan primary (#c6effb) on a neutral background (#020708).

Color palette

TokenLightDark
Background
#fbfdfewhite
#020708black
Foreground
#031217black
#ffffffwhite
Card
#f8fbfcghostwhite
#030a0cblack
Card foreground
#020e12black
#ffffffwhite
Popover
#f8fbfcghostwhite
#030a0cblack
Popover foreground
#020e12black
#ffffffwhite
Primary
#c6effbpaleturquoise
#c6effbpaleturquoise
Primary foreground
#031e26black
#031e26black
Secondary
#fbc6efmistyrose
#fbc6efmistyrose
Secondary foreground
#860969purple
#860969purple
Muted
#eee7edlavender
#181116black
Muted foreground
#6b5766dimgray
#a894a3darkgray
Accent
#effbc6lightgoldenrodyellow
#effbc6lightgoldenrodyellow
Accent foreground
#1e2603black
#1e2603black
Destructive
#d30e03red
#fb2318orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6effbpaleturquoise
#c6effbpaleturquoise

Contrast

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

Light mode
Text on background18.67:1AAA
Text on card18.79:1AAA
Primary button14.03:1AAA
Secondary button6.38:1AA
Muted text5.43:1AA
Accent14.44:1AAA
Destructive5.48:1AA
Dark mode
Text on background20.28:1AAA
Text on card19.93:1AAA
Primary button14.03:1AAA
Secondary button6.38:1AA
Muted text6.57:1AA
Accent14.44:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 217.753);
  --foreground: oklch(0.17 0.025 218.069);
  --muted: oklch(0.935 0.011 333.428);
  --muted-foreground: oklch(0.482 0.034 334.335);
  --popover: oklch(0.986 0.004 217.764);
  --popover-foreground: oklch(0.155 0.022 216.3);
  --card: oklch(0.986 0.004 217.764);
  --card-foreground: oklch(0.155 0.022 216.3);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.926 0.045 218.179);
  --primary-foreground: oklch(0.218 0.037 221.301);
  --secondary: oklch(0.885 0.08 334.633);
  --secondary-foreground: oklch(0.42 0.175 341.038);
  --accent: oklch(0.966 0.07 118.397);
  --accent-foreground: oklch(0.252 0.057 121.713);
  --destructive: oklch(0.548 0.22 29.617);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.926 0.045 218.179);
  --chart-1: oklch(0.926 0.045 218.179);
  --chart-2: oklch(0.885 0.08 334.633);
  --chart-3: oklch(0.966 0.07 118.397);
  --chart-4: oklch(0.913 0.06 334.258);
  --chart-5: oklch(0.927 0.047 218.2);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.013 212.929);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.188 0.016 334.572);
  --muted-foreground: oklch(0.69 0.031 333.95);
  --popover: oklch(0.137 0.015 213.947);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.015 213.947);
  --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.926 0.045 218.179);
  --primary-foreground: oklch(0.218 0.037 221.301);
  --secondary: oklch(0.885 0.08 334.633);
  --secondary-foreground: oklch(0.42 0.175 341.038);
  --accent: oklch(0.966 0.07 118.397);
  --accent-foreground: oklch(0.252 0.057 121.713);
  --destructive: oklch(0.632 0.245 29.342);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.926 0.045 218.179);
  --chart-1: oklch(0.926 0.045 218.179);
  --chart-2: oklch(0.885 0.08 334.633);
  --chart-3: oklch(0.966 0.07 118.397);
  --chart-4: oklch(0.913 0.06 334.258);
  --chart-5: oklch(0.927 0.047 218.2);
}