Bookend for shadcn/ui

Bookend is a shadcn/ui theme built around a teal primary color (#99ccb7) with pink accents (#cc99ae). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#99ccb7) on a teal-tinted background (#030c08).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c08black
Foreground
#030d09black
#ffffffwhite
Card
#ffffffwhite
#030c08black
Card foreground
#030d09black
#ffffffwhite
Popover
#ffffffwhite
#030c08black
Popover foreground
#030d09black
#ffffffwhite
Primary
#99ccb7darkgray
#99ccb7darkgray
Primary foreground
#11221bblack
#11221bblack
Secondary
#cc99aerosybrown
#cc99aerosybrown
Secondary foreground
#221118black
#221118black
Muted
#ddd4d8gainsboro
#2b2225darkslategray
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#cc99aerosybrown
#cc99aerosybrown
Accent foreground
#221118black
#221118black
Destructive
#ad1b0bfirebrick
#eb250forangered
Destructive foreground
#feeeecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#99ccb7darkgray
#99ccb7darkgray

Contrast

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

Light mode
Text on background19.71:1AAA
Text on card19.71:1AAA
Primary button9.18:1AAA
Secondary button7.53:1AAA
Muted text5.84:1AA
Accent7.53:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button9.18:1AAA
Secondary button7.53:1AAA
Muted text7.39:1AAA
Accent7.53:1AAA
Destructive4.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.021 169.266);
  --muted: oklch(0.879 0.011 350.029);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.021 169.266);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.144 0.021 169.266);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.803 0.061 167.318);
  --primary-foreground: oklch(0.234 0.027 165.858);
  --secondary: oklch(0.737 0.066 352.053);
  --secondary-foreground: oklch(0.205 0.03 353.577);
  --accent: oklch(0.737 0.066 352.053);
  --accent-foreground: oklch(0.205 0.03 353.577);
  --destructive: oklch(0.48 0.181 30.504);
  --destructive-foreground: oklch(0.96 0.018 25.149);
  --ring: oklch(0.803 0.061 167.318);
  --chart-1: oklch(0.803 0.061 167.318);
  --chart-2: oklch(0.737 0.066 352.053);
  --chart-3: oklch(0.737 0.066 352.053);
  --chart-4: oklch(0.764 0.059 351.729);
  --chart-5: oklch(0.807 0.066 167.104);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.019 169.458);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.263 0.015 351.26);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.143 0.019 169.458);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.019 169.458);
  --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.803 0.061 167.318);
  --primary-foreground: oklch(0.234 0.027 165.858);
  --secondary: oklch(0.737 0.066 352.053);
  --secondary-foreground: oklch(0.205 0.03 353.577);
  --accent: oklch(0.737 0.066 352.053);
  --accent-foreground: oklch(0.205 0.03 353.577);
  --destructive: oklch(0.602 0.231 30.462);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.803 0.061 167.318);
  --chart-1: oklch(0.803 0.061 167.318);
  --chart-2: oklch(0.737 0.066 352.053);
  --chart-3: oklch(0.737 0.066 352.053);
  --chart-4: oklch(0.764 0.059 351.729);
  --chart-5: oklch(0.807 0.066 167.104);
}