Perky for shadcn/ui

Perky is a shadcn/ui theme built around a light purple primary color (#e5cee9) with light green accents (#d2e9ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#e5cee9) on a purple-tinted background (#0e050f).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e050fblack
Foreground
#0f0411black
#f9f5faghostwhite
Card
#fcfcfcsnow
#110713black
Card foreground
#0b030dblack
#fbf8fbsnow
Popover
#ffffffwhite
#0e050fblack
Popover foreground
#0f0411black
#f9f5faghostwhite
Primary
#e5cee9gainsboro
#e5cee9gainsboro
Primary foreground
#532a5bdarkslateblue
#532a5bdarkslateblue
Secondary
#d2e9cegainsboro
#d2e9cegainsboro
Secondary foreground
#315b2adarkslategray
#315b2adarkslategray
Muted
#d4e6d0gainsboro
#1c2f19black
Muted foreground
#40463fdarkslategray
#bac0b9silver
Accent
#d2e9cegainsboro
#d2e9cegainsboro
Accent foreground
#315b2adarkslategray
#315b2adarkslategray
Destructive
#661e0bmaroon
#e9582fchocolate
Destructive foreground
#f6bcaclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5cee9gainsboro
#e5cee9gainsboro

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card19.89:1AAA
Primary button7.74:1AAA
Secondary button6.10:1AA
Muted text7.41:1AAA
Accent6.10:1AA
Destructive7.24:1AAA
Dark mode
Text on background18.57:1AAA
Text on card18.75:1AAA
Primary button7.74:1AAA
Secondary button6.10:1AA
Muted text7.72:1AAA
Accent6.10:1AA
Destructive3.56:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.134 0.037 322.226);
  --muted: oklch(0.906 0.036 140.979);
  --muted-foreground: oklch(0.385 0.013 140.99);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.134 0.037 322.226);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.121 0.032 322.794);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.878 0.043 321.17);
  --primary-foreground: oklch(0.361 0.095 321.444);
  --secondary: oklch(0.909 0.043 140.963);
  --secondary-foreground: oklch(0.427 0.09 140.73);
  --accent: oklch(0.909 0.043 140.963);
  --accent-foreground: oklch(0.427 0.09 140.73);
  --destructive: oklch(0.347 0.107 35.676);
  --destructive-foreground: oklch(0.844 0.071 36.008);
  --ring: oklch(0.878 0.043 321.17);
  --chart-1: oklch(0.878 0.043 321.17);
  --chart-2: oklch(0.909 0.043 140.963);
  --chart-3: oklch(0.909 0.043 140.963);
  --chart-4: oklch(0.928 0.033 140.987);
  --chart-5: oklch(0.877 0.047 321.178);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.027 321.871);
  --foreground: oklch(0.975 0.008 321.082);
  --muted: oklch(0.281 0.046 140.753);
  --muted-foreground: oklch(0.801 0.011 141.035);
  --popover: oklch(0.137 0.027 321.871);
  --popover-foreground: oklch(0.975 0.008 321.082);
  --card: oklch(0.15 0.031 321.595);
  --card-foreground: oklch(0.983 0.005 321.076);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.878 0.043 321.17);
  --primary-foreground: oklch(0.361 0.095 321.444);
  --secondary: oklch(0.909 0.043 140.963);
  --secondary-foreground: oklch(0.427 0.09 140.73);
  --accent: oklch(0.909 0.043 140.963);
  --accent-foreground: oklch(0.427 0.09 140.73);
  --destructive: oklch(0.646 0.188 35.959);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.878 0.043 321.17);
  --chart-1: oklch(0.878 0.043 321.17);
  --chart-2: oklch(0.909 0.043 140.963);
  --chart-3: oklch(0.909 0.043 140.963);
  --chart-4: oklch(0.928 0.033 140.987);
  --chart-5: oklch(0.877 0.047 321.178);
}