Proximal for shadcn/ui

Proximal is a shadcn/ui theme built around a light yellow primary color (#f8f7f1) with light green accents (#f7f8f1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#f8f7f1) on a yellow-tinted background (#100d04).

Color palette

TokenLightDark
Background
#ffffffwhite
#100d04black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#141005black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#141005black
Popover foreground
#000000black
#ffffffwhite
Primary
#f8f7f1whitesmoke
#f8f7f1whitesmoke
Primary foreground
#37301adarkslategray
#37301adarkslategray
Secondary
#f8f3f1whitesmoke
#f8f3f1whitesmoke
Secondary foreground
#7d4a3bsienna
#7d4a3bsienna
Muted
#f7f0eelinen
#110a08black
Muted foreground
#64504adimgray
#b5a19bdarkgray
Accent
#f7f8f1whitesmoke
#f7f8f1whitesmoke
Accent foreground
#31371adarkslategray
#31371adarkslategray
Destructive
#ab1303firebrick
#fc3c27orangered
Destructive foreground
#ffe4e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8f7f1whitesmoke
#f8f7f1whitesmoke

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button12.20:1AAA
Secondary button6.54:1AA
Muted text6.67:1AA
Accent11.64:1AAA
Destructive6.17:1AA
Dark mode
Text on background19.42:1AAA
Text on card18.96:1AAA
Primary button12.20:1AAA
Secondary button6.54:1AA
Muted text7.95:1AAA
Accent11.64:1AAA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.008 37.702);
  --muted-foreground: oklch(0.449 0.029 37.592);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.975 0.007 90.178);
  --primary-foreground: oklch(0.31 0.037 90.171);
  --secondary: oklch(0.968 0.006 37.71);
  --secondary-foreground: oklch(0.465 0.074 37.701);
  --accent: oklch(0.977 0.01 117.26);
  --accent-foreground: oklch(0.324 0.048 119.945);
  --destructive: oklch(0.472 0.184 30.553);
  --destructive-foreground: oklch(0.939 0.03 25.278);
  --ring: oklch(0.975 0.007 90.178);
  --chart-1: oklch(0.975 0.007 90.178);
  --chart-2: oklch(0.968 0.006 37.71);
  --chart-3: oklch(0.977 0.01 117.26);
  --chart-4: oklch(0.992 0.002 37.734);
  --chart-5: oklch(0.975 0.008 90.183);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.019 92.579);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.155 0.013 38.48);
  --muted-foreground: oklch(0.726 0.025 37.62);
  --popover: oklch(0.175 0.022 91.307);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.175 0.022 91.307);
  --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.975 0.007 90.178);
  --primary-foreground: oklch(0.31 0.037 90.171);
  --secondary: oklch(0.968 0.006 37.71);
  --secondary-foreground: oklch(0.465 0.074 37.701);
  --accent: oklch(0.977 0.01 117.26);
  --accent-foreground: oklch(0.324 0.048 119.945);
  --destructive: oklch(0.649 0.229 30.433);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.975 0.007 90.178);
  --chart-1: oklch(0.975 0.007 90.178);
  --chart-2: oklch(0.968 0.006 37.71);
  --chart-3: oklch(0.977 0.01 117.26);
  --chart-4: oklch(0.992 0.002 37.734);
  --chart-5: oklch(0.975 0.008 90.183);
}