Perky for shadcn/ui

Perky is a shadcn/ui theme built around a muted deep orange primary color (#4b3d2f) with muted deep blue accents (#2f3e4b). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the muted deep orange primary (#4b3d2f) on an orange-tinted background (#100a04).

Color palette

TokenLightDark
Background
#fcfaf8snow
#100a04black
Foreground
#040201black
#fdfcfcsnow
Card
#fcfaf8snow
#100a04black
Card foreground
#040201black
#fdfcfcsnow
Popover
#fcfaf8snow
#100a04black
Popover foreground
#040201black
#fdfcfcsnow
Primary
#4b3d2fdarkslategray
#4b3d2fdarkslategray
Primary foreground
#e0d6cdlightgrey
#e0d6cdlightgrey
Secondary
#2f3e4bdarkslategray
#2f3e4bdarkslategray
Secondary foreground
#cdd7e0lightgrey
#cdd7e0lightgrey
Muted
#f0f2f5whitesmoke
#0a0d0fblack
Muted foreground
#4c5761darkslategray
#9ea9b3darkgray
Accent
#2f3e4bdarkslategray
#2f3e4bdarkslategray
Accent foreground
#cdd7e0lightgrey
#cdd7e0lightgrey
Destructive
#e15205orangered
#fa5b05orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b3d2fdarkslategray
#4b3d2fdarkslategray

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button7.31:1AAA
Secondary button7.55:1AAA
Muted text6.59:1AA
Accent7.55:1AAA
Destructive3.88:1AA Large
Dark mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button7.31:1AAA
Secondary button7.55:1AAA
Muted text8.15:1AAA
Accent7.55:1AAA
Destructive6.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.003 65.929);
  --foreground: oklch(0.095 0.013 76.149);
  --muted: oklch(0.961 0.004 246.016);
  --muted-foreground: oklch(0.451 0.021 246.504);
  --popover: oklch(0.986 0.003 65.929);
  --popover-foreground: oklch(0.095 0.013 76.149);
  --card: oklch(0.986 0.003 65.929);
  --card-foreground: oklch(0.095 0.013 76.149);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.37 0.03 64.774);
  --primary-foreground: oklch(0.881 0.016 65.742);
  --secondary: oklch(0.356 0.03 246.969);
  --secondary-foreground: oklch(0.873 0.016 246.181);
  --accent: oklch(0.356 0.03 246.969);
  --accent-foreground: oklch(0.873 0.016 246.181);
  --destructive: oklch(0.624 0.191 40.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.37 0.03 64.774);
  --chart-1: oklch(0.37 0.03 64.774);
  --chart-2: oklch(0.356 0.03 246.969);
  --chart-3: oklch(0.356 0.03 246.969);
  --chart-4: oklch(0.384 0.034 246.992);
  --chart-5: oklch(0.372 0.034 64.571);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.151 0.017 70.136);
  --foreground: oklch(0.993 0 65.961);
  --muted: oklch(0.157 0.006 246.437);
  --muted-foreground: oklch(0.728 0.019 246.264);
  --popover: oklch(0.151 0.017 70.136);
  --popover-foreground: oklch(0.993 0 65.961);
  --card: oklch(0.151 0.017 70.136);
  --card-foreground: oklch(0.993 0 65.961);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.37 0.03 64.774);
  --primary-foreground: oklch(0.881 0.016 65.742);
  --secondary: oklch(0.356 0.03 246.969);
  --secondary-foreground: oklch(0.873 0.016 246.181);
  --accent: oklch(0.356 0.03 246.969);
  --accent-foreground: oklch(0.873 0.016 246.181);
  --destructive: oklch(0.674 0.208 40.529);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.37 0.03 64.774);
  --chart-1: oklch(0.37 0.03 64.774);
  --chart-2: oklch(0.356 0.03 246.969);
  --chart-3: oklch(0.356 0.03 246.969);
  --chart-4: oklch(0.384 0.034 246.992);
  --chart-5: oklch(0.372 0.034 64.571);
}