Pate for shadcn/ui

Pate is a shadcn/ui theme built around a light red primary color (#dcafad) with light orange accents (#dcc7ad). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the light red primary (#dcafad) on a red-tinted background (#100505).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#100505black
Foreground
#040101black
#fdfcfcsnow
Card
#fdfcfcsnow
#100505black
Card foreground
#040101black
#fdfcfcsnow
Popover
#fdfcfcsnow
#100505black
Popover foreground
#040101black
#fdfcfcsnow
Primary
#dcafadtan
#dcafadtan
Primary foreground
#3d1c1ablack
#3d1c1ablack
Secondary
#dcadc2thistle
#dcadc2thistle
Secondary foreground
#3d1a2adarkslategray
#3d1a2adarkslategray
Muted
#e9d8e0gainsboro
#27161eblack
Muted foreground
#523d46darkslategray
#c2adb7silver
Accent
#dcc7adwheat
#dcc7adwheat
Accent foreground
#3d2d1adarkslategray
#3d2d1adarkslategray
Destructive
#d93802orangered
#e83c02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dcafadtan
#dcafadtan

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button7.82:1AAA
Secondary button7.81:1AAA
Muted text7.25:1AAA
Accent8.04:1AAA
Destructive4.64:1AA
Dark mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button7.82:1AAA
Secondary button7.81:1AAA
Muted text8.15:1AAA
Accent8.04:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 20.911);
  --foreground: oklch(0.081 0.019 27.831);
  --muted: oklch(0.898 0.021 348.455);
  --muted-foreground: oklch(0.386 0.033 350.062);
  --popover: oklch(0.991 0.002 20.911);
  --popover-foreground: oklch(0.081 0.019 27.831);
  --card: oklch(0.991 0.002 20.911);
  --card-foreground: oklch(0.081 0.019 27.831);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.794 0.052 21.824);
  --primary-foreground: oklch(0.272 0.052 24.214);
  --secondary: oklch(0.796 0.061 349.812);
  --secondary-foreground: oklch(0.274 0.058 353.334);
  --accent: oklch(0.84 0.042 72.745);
  --accent-foreground: oklch(0.31 0.038 71.212);
  --destructive: oklch(0.584 0.204 34.939);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.052 21.824);
  --chart-1: oklch(0.794 0.052 21.824);
  --chart-2: oklch(0.796 0.061 349.812);
  --chart-3: oklch(0.84 0.042 72.745);
  --chart-4: oklch(0.823 0.053 349.488);
  --chart-5: oklch(0.792 0.056 21.909);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.021 24.638);
  --foreground: oklch(0.992 0.001 20.903);
  --muted: oklch(0.227 0.031 351.273);
  --muted-foreground: oklch(0.768 0.028 348.782);
  --popover: oklch(0.135 0.021 24.638);
  --popover-foreground: oklch(0.992 0.001 20.903);
  --card: oklch(0.135 0.021 24.638);
  --card-foreground: oklch(0.992 0.001 20.903);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.794 0.052 21.824);
  --primary-foreground: oklch(0.272 0.052 24.214);
  --secondary: oklch(0.796 0.061 349.812);
  --secondary-foreground: oklch(0.274 0.058 353.334);
  --accent: oklch(0.84 0.042 72.745);
  --accent-foreground: oklch(0.31 0.038 71.212);
  --destructive: oklch(0.613 0.215 34.82);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.052 21.824);
  --chart-1: oklch(0.794 0.052 21.824);
  --chart-2: oklch(0.796 0.061 349.812);
  --chart-3: oklch(0.84 0.042 72.745);
  --chart-4: oklch(0.823 0.053 349.488);
  --chart-5: oklch(0.792 0.056 21.909);
}