Guestbook is a shadcn/ui theme built around a near-white primary color (#fefefb) with near-white accents (#fcfefb). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the near-white primary (#fefefb) on a yellow-tinted background (#0a0b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #0a0b05black |
| Foreground | #0c0d03black | #fdfdfcwhite |
| Card | #fafbf4floralwhite | #0e0e06black |
| Card foreground | #080802black | #ffffffwhite |
| Popover | #fcfcf8snow | #0a0b05black |
| Popover foreground | #0c0d03black | #fdfdfcwhite |
| Primary | #fefefbwhite | #fefefbwhite |
| Primary foreground | #4f540ddarkolivegreen | #4f540ddarkolivegreen |
| Secondary | #fefdfbsnow | #fefdfbsnow |
| Secondary foreground | #54350dsaddlebrown | #54350dsaddlebrown |
| Muted | #ebe2d6gainsboro | #292014black |
| Muted foreground | #58524bdarkolivegreen | #b4aea7darkgray |
| Accent | #fcfefbwhite | #fcfefbwhite |
| Accent foreground | #2c540ddarkgreen | #2c540ddarkgreen |
| Destructive | #d34912chocolate | #ee6d3atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefefbwhite | #fefefbwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 10.90:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 8.71:1 | AAA |
| Destructive | 4.43:1 | AA Large |
| Text on background | 19.43:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 7.98:1 | AAA |
| Secondary button | 10.90:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 8.71:1 | AAA |
| Destructive | 6.87:1 | AA |
Paste this into your globals.css to use Guestbook in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 109.595);
--foreground: oklch(0.152 0.024 111.562);
--muted: oklch(0.916 0.019 74.82);
--muted-foreground: oklch(0.443 0.014 74.729);
--popover: oklch(0.99 0.006 109.595);
--popover-foreground: oklch(0.152 0.024 111.562);
--card: oklch(0.985 0.009 109.653);
--card-foreground: oklch(0.132 0.02 111.287);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.997 0.005 109.57);
--primary-foreground: oklch(0.427 0.089 113.539);
--secondary: oklch(0.994 0.003 74.934);
--secondary-foreground: oklch(0.358 0.069 68.842);
--accent: oklch(0.995 0.005 131.132);
--accent-foreground: oklch(0.401 0.107 135.133);
--destructive: oklch(0.591 0.184 38.392);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.997 0.005 109.57);
--chart-1: oklch(0.997 0.005 109.57);
--chart-2: oklch(0.994 0.003 74.934);
--chart-3: oklch(0.995 0.005 131.132);
--chart-4: oklch(1.012 0.007 254.989);
--chart-5: oklch(0.997 0.005 109.574);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.015 110.754);
--foreground: oklch(0.994 0.002 109.521);
--muted: oklch(0.25 0.025 73.735);
--muted-foreground: oklch(0.754 0.012 74.849);
--popover: oklch(0.145 0.015 110.754);
--popover-foreground: oklch(0.994 0.002 109.521);
--card: oklch(0.161 0.017 111.157);
--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.997 0.005 109.57);
--primary-foreground: oklch(0.427 0.089 113.539);
--secondary: oklch(0.994 0.003 74.934);
--secondary-foreground: oklch(0.358 0.069 68.842);
--accent: oklch(0.995 0.005 131.132);
--accent-foreground: oklch(0.401 0.107 135.133);
--destructive: oklch(0.682 0.172 40.832);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.997 0.005 109.57);
--chart-1: oklch(0.997 0.005 109.57);
--chart-2: oklch(0.994 0.003 74.934);
--chart-3: oklch(0.995 0.005 131.132);
--chart-4: oklch(1.012 0.007 254.989);
--chart-5: oklch(0.997 0.005 109.574);
}