Apse for shadcn/ui

Apse is a shadcn/ui theme built around a deep yellow primary color (#36311c) with deep blue accents (#1c2136). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the deep yellow primary (#36311c) on a neutral background (#030302).

Color palette

TokenLightDark
Background
#fcfbf8snow
#030302black
Foreground
#040401black
#f9f8f6whitesmoke
Card
#faf9f5whitesmoke
#070603black
Card foreground
#000000black
#fbfbf9snow
Popover
#faf9f5whitesmoke
#070603black
Popover foreground
#000000black
#fbfbf9snow
Primary
#36311cdarkslategray
#36311cdarkslategray
Primary foreground
#d5ceaesilver
#d5ceaesilver
Secondary
#1c2136darkslategray
#1c2136darkslategray
Secondary foreground
#aeb5d5lightsteelblue
#aeb5d5lightsteelblue
Muted
#e9eaeclavender
#131316black
Muted foreground
#434447darkslategray
#b8b9bcsilver
Accent
#1c2136darkslategray
#1c2136darkslategray
Accent foreground
#aeb5d5lightsteelblue
#aeb5d5lightsteelblue
Destructive
#941305darkred
#e41d07red
Destructive foreground
#fdd2cepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#36311cdarkslategray
#36311cdarkslategray

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.92:1AAA
Primary button8.22:1AAA
Secondary button7.89:1AAA
Muted text8.07:1AAA
Accent7.89:1AAA
Destructive6.47:1AA
Dark mode
Text on background19.42:1AAA
Text on card19.53:1AAA
Primary button8.22:1AAA
Secondary button7.89:1AAA
Muted text9.42:1AAA
Accent7.89:1AAA
Destructive4.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 96.212);
  --foreground: oklch(0.102 0.014 100.769);
  --muted: oklch(0.936 0.003 276.121);
  --muted-foreground: oklch(0.385 0.006 275.967);
  --popover: oklch(0.982 0.006 96.236);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.006 96.236);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.312 0.035 97.056);
  --primary-foreground: oklch(0.849 0.044 96.731);
  --secondary: oklch(0.252 0.041 273.477);
  --secondary-foreground: oklch(0.779 0.046 275.312);
  --accent: oklch(0.252 0.041 273.477);
  --accent-foreground: oklch(0.779 0.046 275.312);
  --destructive: oklch(0.428 0.164 30.606);
  --destructive-foreground: oklch(0.9 0.049 25.529);
  --ring: oklch(0.312 0.035 97.056);
  --chart-1: oklch(0.312 0.035 97.056);
  --chart-2: oklch(0.252 0.041 273.477);
  --chart-3: oklch(0.252 0.041 273.477);
  --chart-4: oklch(0.279 0.048 273.327);
  --chart-5: oklch(0.316 0.038 97.051);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.008 98.966);
  --foreground: oklch(0.98 0.004 96.215);
  --muted: oklch(0.189 0.005 275.825);
  --muted-foreground: oklch(0.786 0.005 276.086);
  --popover: oklch(0.123 0.01 98.966);
  --popover-foreground: oklch(0.987 0.003 96.198);
  --card: oklch(0.123 0.01 98.966);
  --card-foreground: oklch(0.987 0.003 96.198);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.312 0.035 97.056);
  --primary-foreground: oklch(0.849 0.044 96.731);
  --secondary: oklch(0.252 0.041 273.477);
  --secondary-foreground: oklch(0.779 0.046 275.312);
  --accent: oklch(0.252 0.041 273.477);
  --accent-foreground: oklch(0.779 0.046 275.312);
  --destructive: oklch(0.585 0.228 30.35);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.312 0.035 97.056);
  --chart-1: oklch(0.312 0.035 97.056);
  --chart-2: oklch(0.252 0.041 273.477);
  --chart-3: oklch(0.252 0.041 273.477);
  --chart-4: oklch(0.279 0.048 273.327);
  --chart-5: oklch(0.316 0.038 97.051);
}