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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.71:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 9.18:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 9.18:1 | AAA |
| Secondary button | 7.53:1 | AAA |
| Muted text | 7.39:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 4.37:1 | AA Large |
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);
}