Perky for shadcn/ui

Perky is a shadcn/ui theme built around a light blue primary color (#c7d6e6) with muted light blue accents (#c9d1d9). The light mode uses a neutral background (#f8fafc). Dark mode keeps the light blue primary (#c7d6e6) on a blue-tinted background (#03070c).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#03070cblack
Foreground
#030c16black
#fcfcfdwhite
Card
#f5f7fawhitesmoke
#040a10black
Card foreground
#030a12black
#ffffffwhite
Popover
#f5f7fawhitesmoke
#040a10black
Popover foreground
#030a12black
#ffffffwhite
Primary
#c7d6e6lightgrey
#c7d6e6lightgrey
Primary foreground
#263c54darkslategray
#263c54darkslategray
Secondary
#e0e3e6gainsboro
#2f3337darkslategray
Secondary foreground
#434a51darkslategray
#c8ccd0lightgrey
Muted
#dce3eagainsboro
#151c23black
Muted foreground
#39424cdarkslategray
#b3bcc6silver
Accent
#c9d1d9lightgrey
#3a4450darkslategray
Accent foreground
#2e3842darkslategray
#d9dee3gainsboro
Destructive
#da5107chocolate
#f25a07orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c7d6e6lightgrey
#c7d6e6lightgrey

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.54:1AAA
Primary button7.61:1AAA
Secondary button6.96:1AA
Muted text7.86:1AAA
Accent7.71:1AAA
Destructive4.08:1AA Large
Dark mode
Text on background19.65:1AAA
Text on card19.87:1AAA
Primary button7.61:1AAA
Secondary button7.88:1AAA
Muted text8.95:1AAA
Accent7.27:1AAA
Destructive3.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 249.68);
  --foreground: oklch(0.152 0.027 246.748);
  --muted: oklch(0.912 0.013 249.78);
  --muted-foreground: oklch(0.375 0.02 250.122);
  --popover: oklch(0.976 0.005 249.695);
  --popover-foreground: oklch(0.14 0.023 243.686);
  --card: oklch(0.976 0.005 249.695);
  --card-foreground: oklch(0.14 0.023 243.686);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.869 0.028 249.933);
  --primary-foreground: oklch(0.351 0.051 251.004);
  --secondary: oklch(0.914 0.005 249.701);
  --secondary-foreground: oklch(0.404 0.016 249.998);
  --accent: oklch(0.857 0.015 249.808);
  --accent-foreground: oklch(0.335 0.023 250.235);
  --destructive: oklch(0.611 0.185 41.14);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.869 0.028 249.933);
  --chart-1: oklch(0.869 0.028 249.933);
  --chart-2: oklch(0.914 0.005 249.701);
  --chart-3: oklch(0.857 0.015 249.808);
  --chart-4: oklch(0.938 0.004 249.686);
  --chart-5: oklch(0.868 0.03 249.955);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.015 241.862);
  --foreground: oklch(0.992 0.001 249.663);
  --muted: oklch(0.222 0.018 250.355);
  --muted-foreground: oklch(0.792 0.017 249.844);
  --popover: oklch(0.141 0.018 245.179);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.018 245.179);
  --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.869 0.028 249.933);
  --primary-foreground: oklch(0.351 0.051 251.004);
  --secondary: oklch(0.319 0.008 249.881);
  --secondary-foreground: oklch(0.843 0.006 249.721);
  --accent: oklch(0.383 0.024 250.191);
  --accent-foreground: oklch(0.897 0.009 249.747);
  --destructive: oklch(0.661 0.201 40.923);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.869 0.028 249.933);
  --chart-1: oklch(0.869 0.028 249.933);
  --chart-2: oklch(0.319 0.008 249.881);
  --chart-3: oklch(0.383 0.024 250.191);
  --chart-4: oklch(0.348 0.009 249.887);
  --chart-5: oklch(0.868 0.03 249.955);
}