Guestbook for shadcn/ui

Guestbook is a shadcn/ui theme built around a light green primary color (#d8ecb1) with light violet accents (#c5b1ec). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#d8ecb1) on a neutral background (#030402).

Color palette

TokenLightDark
Background
#ffffffwhite
#030402black
Foreground
#0c1104black
#ffffffwhite
Card
#ffffffwhite
#030402black
Card foreground
#0c1104black
#ffffffwhite
Popover
#ffffffwhite
#030402black
Popover foreground
#0c1104black
#ffffffwhite
Primary
#d8ecb1palegoldenrod
#d8ecb1palegoldenrod
Primary foreground
#405615darkolivegreen
#405615darkolivegreen
Secondary
#c5b1ecthistle
#c5b1ecthistle
Secondary foreground
#2b1556midnightblue
#2b1556midnightblue
Muted
#ecebeflavender
#111014black
Muted foreground
#49484bdarkslategray
#b5b4b7silver
Accent
#c5b1ecthistle
#c5b1ecthistle
Accent foreground
#2b1556midnightblue
#2b1556midnightblue
Destructive
#660f0bmaroon
#ea4139tomato
Destructive foreground
#f6b0aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d8ecb1palegoldenrod
#d8ecb1palegoldenrod

Contrast

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

Light mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button6.47:1AA
Secondary button8.08:1AAA
Muted text7.66:1AAA
Accent8.08:1AAA
Destructive7.17:1AAA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button6.47:1AA
Secondary button8.08:1AAA
Muted text9.19:1AAA
Accent8.08:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.167 0.028 122.97);
  --muted: oklch(0.942 0.006 301.392);
  --muted-foreground: oklch(0.405 0.005 301.293);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.167 0.028 122.97);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.167 0.028 122.97);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.914 0.08 122.951);
  --primary-foreground: oklch(0.422 0.094 126.237);
  --secondary: oklch(0.797 0.085 299.751);
  --secondary-foreground: oklch(0.27 0.111 292.714);
  --accent: oklch(0.797 0.085 299.751);
  --accent-foreground: oklch(0.27 0.111 292.714);
  --destructive: oklch(0.331 0.12 28.755);
  --destructive-foreground: oklch(0.822 0.083 22.42);
  --ring: oklch(0.914 0.08 122.951);
  --chart-1: oklch(0.914 0.08 122.951);
  --chart-2: oklch(0.797 0.085 299.751);
  --chart-3: oklch(0.797 0.085 299.751);
  --chart-4: oklch(0.83 0.071 300.104);
  --chart-5: oklch(0.917 0.084 123.018);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.01 121.253);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.175 0.009 300.664);
  --muted-foreground: oklch(0.77 0.004 301.403);
  --popover: oklch(0.099 0.01 121.253);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.099 0.01 121.253);
  --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.914 0.08 122.951);
  --primary-foreground: oklch(0.422 0.094 126.237);
  --secondary: oklch(0.797 0.085 299.751);
  --secondary-foreground: oklch(0.27 0.111 292.714);
  --accent: oklch(0.797 0.085 299.751);
  --accent-foreground: oklch(0.27 0.111 292.714);
  --destructive: oklch(0.625 0.207 27.851);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.914 0.08 122.951);
  --chart-1: oklch(0.914 0.08 122.951);
  --chart-2: oklch(0.797 0.085 299.751);
  --chart-3: oklch(0.797 0.085 299.751);
  --chart-4: oklch(0.83 0.071 300.104);
  --chart-5: oklch(0.917 0.084 123.018);
}