Girdle for shadcn/ui

Girdle is a shadcn/ui theme built around a yellow primary color (#cea94b) with violet accents (#a94bce). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#cea94b) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#fefdfbsnow
#070603black
Foreground
#040301black
#faf8f5whitesmoke
Card
#fefdfbsnow
#070603black
Card foreground
#040301black
#faf8f5whitesmoke
Popover
#fefdfbsnow
#070603black
Popover foreground
#040301black
#faf8f5whitesmoke
Primary
#cea94bperu
#cea94bperu
Primary foreground
#000000black
#000000black
Secondary
#4bcea9mediumaquamarine
#4bcea9mediumaquamarine
Secondary foreground
#103c30darkslategray
#103c30darkslategray
Muted
#f1f4f3whitesmoke
#0b0e0dblack
Muted foreground
#4f5956darkslategray
#a6b0addarkgray
Accent
#a94bcemediumorchid
#a94bcemediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b00707firebrick
#f62c2ccrimson
Destructive foreground
#feebeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cea94bperu
#cea94bperu

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button9.36:1AAA
Secondary button6.23:1AA
Muted text6.53:1AA
Accent4.59:1AA
Destructive6.33:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button9.36:1AAA
Secondary button6.23:1AA
Muted text8.70:1AAA
Accent4.59:1AA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 88.814);
  --foreground: oklch(0.101 0.016 95.565);
  --muted: oklch(0.964 0.003 177.628);
  --muted-foreground: oklch(0.455 0.013 176.83);
  --popover: oklch(0.995 0.003 88.814);
  --popover-foreground: oklch(0.101 0.016 95.565);
  --card: oklch(0.995 0.003 88.814);
  --card-foreground: oklch(0.101 0.016 95.565);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.749 0.12 87.51);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.769 0.127 170.73);
  --secondary-foreground: oklch(0.322 0.053 170.839);
  --accent: oklch(0.588 0.204 315.03);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.479 0.193 28.825);
  --destructive-foreground: oklch(0.956 0.02 17.516);
  --ring: oklch(0.749 0.12 87.51);
  --chart-1: oklch(0.749 0.12 87.51);
  --chart-2: oklch(0.769 0.127 170.73);
  --chart-3: oklch(0.588 0.204 315.03);
  --chart-4: oklch(0.782 0.121 171.477);
  --chart-5: oklch(0.755 0.124 87.279);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.012 93.364);
  --foreground: oklch(0.98 0.004 88.82);
  --muted: oklch(0.161 0.004 176.894);
  --muted-foreground: oklch(0.748 0.012 177.242);
  --popover: oklch(0.123 0.012 93.364);
  --popover-foreground: oklch(0.98 0.004 88.82);
  --card: oklch(0.123 0.012 93.364);
  --card-foreground: oklch(0.98 0.004 88.82);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.749 0.12 87.51);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.769 0.127 170.73);
  --secondary-foreground: oklch(0.322 0.053 170.839);
  --accent: oklch(0.588 0.204 315.03);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.629 0.234 27.281);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.749 0.12 87.51);
  --chart-1: oklch(0.749 0.12 87.51);
  --chart-2: oklch(0.769 0.127 170.73);
  --chart-3: oklch(0.588 0.204 315.03);
  --chart-4: oklch(0.782 0.121 171.477);
  --chart-5: oklch(0.755 0.124 87.279);
}