Ape for shadcn/ui

Ape is a shadcn/ui theme built around a light orange primary color (#e8d8cf) with muted light orange accents (#e7e2df). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#e8d8cf) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040201black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#040201black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#040201black
#fdfcfcsnow
Primary
#e8d8cfgainsboro
#e8d8cfgainsboro
Primary foreground
#5a3c2bdarkolivegreen
#5a3c2bdarkolivegreen
Secondary
#e7e2dfgainsboro
#302a27darkslategray
Secondary foreground
#544740darkolivegreen
#cbc3besilver
Muted
#f2ece9linen
#16110dblack
Muted foreground
#51453edarkslategray
#c1b5aesilver
Accent
#e7e2dfgainsboro
#302a27darkslategray
Accent foreground
#544740darkolivegreen
#cbc3besilver
Destructive
#881606darkred
#f42f15orangered
Destructive foreground
#fccbc5pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e8d8cfgainsboro
#e8d8cfgainsboro

Contrast

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

Light mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button7.15:1AAA
Secondary button6.94:1AA
Muted text7.89:1AAA
Accent6.94:1AA
Destructive6.68:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button7.15:1AAA
Secondary button8.12:1AAA
Muted text9.37:1AAA
Accent8.12:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.092 0.01 60.941);
  --muted: oklch(0.946 0.008 52.472);
  --muted-foreground: oklch(0.4 0.02 51.95);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.092 0.01 60.941);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.092 0.01 60.941);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.892 0.022 52.262);
  --primary-foreground: oklch(0.386 0.05 50.824);
  --secondary: oklch(0.916 0.007 52.481);
  --secondary-foreground: oklch(0.41 0.022 51.9);
  --accent: oklch(0.916 0.007 52.481);
  --accent-foreground: oklch(0.41 0.022 51.9);
  --destructive: oklch(0.406 0.151 31.044);
  --destructive-foreground: oklch(0.883 0.057 27.003);
  --ring: oklch(0.892 0.022 52.262);
  --chart-1: oklch(0.892 0.022 52.262);
  --chart-2: oklch(0.916 0.007 52.481);
  --chart-3: oklch(0.916 0.007 52.481);
  --chart-4: oklch(0.939 0.005 52.51);
  --chart-5: oklch(0.892 0.023 52.236);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 52.564);
  --muted: oklch(0.182 0.012 51.774);
  --muted-foreground: oklch(0.781 0.017 52.3);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 52.564);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 52.564);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.892 0.022 52.262);
  --primary-foreground: oklch(0.386 0.05 50.824);
  --secondary: oklch(0.291 0.011 52.094);
  --secondary-foreground: oklch(0.821 0.011 52.395);
  --accent: oklch(0.291 0.011 52.094);
  --accent-foreground: oklch(0.821 0.011 52.395);
  --destructive: oklch(0.625 0.232 30.967);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.892 0.022 52.262);
  --chart-1: oklch(0.892 0.022 52.262);
  --chart-2: oklch(0.291 0.011 52.094);
  --chart-3: oklch(0.291 0.011 52.094);
  --chart-4: oklch(0.321 0.013 52.076);
  --chart-5: oklch(0.892 0.023 52.236);
}