Snoopy for shadcn/ui

Snoopy is a shadcn/ui theme built around a light green primary color (#d8f8e0) with muted light green accents (#d6e0d9). The light mode uses a neutral background (#f6fdf8). Dark mode keeps the light green primary (#d8f8e0) on a neutral background (#020804).

Color palette

TokenLightDark
Background
#f6fdf8mintcream
#020804black
Foreground
#000000black
#f9fbf9mintcream
Card
#f2fdf5honeydew
#040c05black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f6fdf8mintcream
#020804black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#d8f8e0gainsboro
#d8f8e0gainsboro
Primary foreground
#092f12black
#092f12black
Secondary
#d6e0d9gainsboro
#2d3930darkslategray
Secondary foreground
#394c3ddarkslategray
#c6d2c9lightgrey
Muted
#d8eeddgainsboro
#112716black
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#d6e0d9gainsboro
#2d3930darkslategray
Accent foreground
#394c3ddarkslategray
#c6d2c9lightgrey
Destructive
#a22b11firebrick
#d03816firebrick
Destructive foreground
#fdece8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d8f8e0gainsboro
#d8f8e0gainsboro

Contrast

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

Light mode
Text on background20.39:1AAA
Text on card20.09:1AAA
Primary button12.88:1AAA
Secondary button6.83:1AA
Muted text6.71:1AA
Accent6.83:1AA
Destructive6.35:1AA
Dark mode
Text on background19.44:1AAA
Text on card19.46:1AAA
Primary button12.88:1AAA
Secondary button7.73:1AAA
Muted text7.28:1AAA
Accent7.73:1AAA
Destructive4.94:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.01 153.071);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.928 0.033 152.647);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.989 0.01 153.071);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.983 0.015 152.983);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.949 0.046 152.431);
  --primary-foreground: oklch(0.271 0.067 147.746);
  --secondary: oklch(0.898 0.015 152.968);
  --secondary-foreground: oklch(0.395 0.033 151.762);
  --accent: oklch(0.898 0.015 152.968);
  --accent-foreground: oklch(0.395 0.033 151.762);
  --destructive: oklch(0.473 0.159 33.664);
  --destructive-foreground: oklch(0.955 0.019 32.674);
  --ring: oklch(0.949 0.046 152.431);
  --chart-1: oklch(0.949 0.046 152.431);
  --chart-2: oklch(0.898 0.015 152.968);
  --chart-3: oklch(0.898 0.015 152.968);
  --chart-4: oklch(0.92 0.012 153.033);
  --chart-5: oklch(0.95 0.048 152.395);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.019 152.55);
  --foreground: oklch(0.986 0.003 153.191);
  --muted: oklch(0.25 0.043 149.865);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.122 0.019 152.55);
  --popover-foreground: oklch(0.986 0.003 153.191);
  --card: oklch(0.14 0.022 152.451);
  --card-foreground: oklch(0.993 0.001 153.216);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.949 0.046 152.431);
  --primary-foreground: oklch(0.271 0.067 147.746);
  --secondary: oklch(0.331 0.023 152.037);
  --secondary-foreground: oklch(0.852 0.018 152.883);
  --accent: oklch(0.331 0.023 152.037);
  --accent-foreground: oklch(0.852 0.018 152.883);
  --destructive: oklch(0.568 0.194 33.527);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.949 0.046 152.431);
  --chart-1: oklch(0.949 0.046 152.431);
  --chart-2: oklch(0.331 0.023 152.037);
  --chart-3: oklch(0.331 0.023 152.037);
  --chart-4: oklch(0.362 0.026 152.002);
  --chart-5: oklch(0.95 0.048 152.395);
}