Perp for shadcn/ui

Perp is a shadcn/ui theme built around a vivid light green primary color (#b3f4a9) with vivid light red accents (#f4a9b3). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid light green primary (#b3f4a9) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#020401black
Foreground
#061604black
#ffffffwhite
Card
#f4fbf3whitesmoke
#030802black
Card foreground
#051103black
#ffffffwhite
Popover
#f4fbf3whitesmoke
#030802black
Popover foreground
#051103black
#ffffffwhite
Primary
#b3f4a9palegreen
#b3f4a9palegreen
Primary foreground
#175f0cdarkgreen
#175f0cdarkgreen
Secondary
#a9b3f4lightsteelblue
#a9b3f4lightsteelblue
Secondary foreground
#0c175fmidnightblue
#0c175fmidnightblue
Muted
#eeeff7whitesmoke
#080911black
Muted foreground
#505368dimgray
#979aafdarkgray
Accent
#f4a9b3lightpink
#f4a9b3lightpink
Accent foreground
#5f0c17maroon
#5f0c17maroon
Destructive
#ba1108firebrick
#f62d23orangered
Destructive foreground
#fff6f5lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b3f4a9palegreen
#b3f4a9palegreen

Contrast

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

Light mode
Text on background18.07:1AAA
Text on card18.37:1AAA
Primary button6.12:1AA
Secondary button8.02:1AAA
Muted text6.58:1AA
Accent7.21:1AAA
Destructive6.23:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.20:1AAA
Primary button6.12:1AA
Secondary button8.02:1AAA
Muted text7.13:1AAA
Accent7.21:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 141.569);
  --foreground: oklch(0.178 0.042 140.109);
  --muted: oklch(0.953 0.011 279.165);
  --muted-foreground: oklch(0.448 0.034 278.076);
  --popover: oklch(0.982 0.012 141.557);
  --popover-foreground: oklch(0.161 0.037 139.808);
  --card: oklch(0.982 0.012 141.557);
  --card-foreground: oklch(0.161 0.037 139.808);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.905 0.119 141.234);
  --primary-foreground: oklch(0.425 0.132 141.376);
  --secondary: oklch(0.783 0.093 277.272);
  --secondary-foreground: oklch(0.258 0.126 268.164);
  --accent: oklch(0.81 0.089 10.441);
  --accent-foreground: oklch(0.316 0.114 20.476);
  --destructive: oklch(0.501 0.198 29.491);
  --destructive-foreground: oklch(0.979 0.01 21.014);
  --ring: oklch(0.905 0.119 141.234);
  --chart-1: oklch(0.905 0.119 141.234);
  --chart-2: oklch(0.783 0.093 277.272);
  --chart-3: oklch(0.81 0.089 10.441);
  --chart-4: oklch(0.818 0.077 277.735);
  --chart-5: oklch(0.907 0.123 141.223);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.018 139.892);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.144 0.018 276.578);
  --muted-foreground: oklch(0.692 0.03 278.64);
  --popover: oklch(0.123 0.022 139.892);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.123 0.022 139.892);
  --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.905 0.119 141.234);
  --primary-foreground: oklch(0.425 0.132 141.376);
  --secondary: oklch(0.783 0.093 277.272);
  --secondary-foreground: oklch(0.258 0.126 268.164);
  --accent: oklch(0.81 0.089 10.441);
  --accent-foreground: oklch(0.316 0.114 20.476);
  --destructive: oklch(0.628 0.234 29.017);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.905 0.119 141.234);
  --chart-1: oklch(0.905 0.119 141.234);
  --chart-2: oklch(0.783 0.093 277.272);
  --chart-3: oklch(0.81 0.089 10.441);
  --chart-4: oklch(0.818 0.077 277.735);
  --chart-5: oklch(0.907 0.123 141.223);
}