Bidet for shadcn/ui

Bidet is a shadcn/ui theme built around a yellow primary color (#cfc120) with muted light yellow accents (#d7d5c1). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#cfc120) on a yellow-tinted background (#0b0a05).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0b0a05black
Foreground
#000000black
#fbfbf8snow
Card
#fcfcf8snow
#0e0e06black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fcfcf8snow
#0e0e06black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#cfc120goldenrod
#cfc120goldenrod
Primary foreground
#1f1d05black
#1f1d05black
Secondary
#e7e6dfgainsboro
#2f2e23darkslategray
Secondary foreground
#545240darkolivegreen
#cbc9b9silver
Muted
#e7e4cbgainsboro
#343218darkslategray
Muted foreground
#444440darkslategray
#bfbebbsilver
Accent
#d7d5c1lightgrey
#46432bdarkolivegreen
Accent foreground
#3e3c28darkslategray
#dcdac6lightgrey
Destructive
#822203maroon
#eb3e05orangered
Destructive foreground
#fecab9peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cfc120goldenrod
#cfc120goldenrod

Contrast

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

Light mode
Text on background20.70:1AAA
Text on card20.41:1AAA
Primary button9.13:1AAA
Secondary button6.30:1AA
Muted text7.62:1AAA
Accent7.55:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.04:1AAA
Primary button9.13:1AAA
Secondary button8.21:1AAA
Muted text7.01:1AAA
Accent7.08:1AAA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 102.26);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.915 0.034 102.789);
  --muted-foreground: oklch(0.386 0.006 102.466);
  --popover: oklch(0.99 0.006 102.308);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.99 0.006 102.308);
  --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.798 0.161 103.706);
  --primary-foreground: oklch(0.226 0.04 104.349);
  --secondary: oklch(0.924 0.009 102.37);
  --secondary-foreground: oklch(0.435 0.028 103.177);
  --accent: oklch(0.87 0.028 102.717);
  --accent-foreground: oklch(0.353 0.033 103.563);
  --destructive: oklch(0.405 0.135 36.263);
  --destructive-foreground: oklch(0.88 0.063 39.243);
  --ring: oklch(0.798 0.161 103.706);
  --chart-1: oklch(0.798 0.161 103.706);
  --chart-2: oklch(0.924 0.009 102.37);
  --chart-3: oklch(0.87 0.028 102.717);
  --chart-4: oklch(0.945 0.006 102.324);
  --chart-5: oklch(0.807 0.165 103.622);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.014 104.438);
  --foreground: oklch(0.988 0.004 102.275);
  --muted: oklch(0.311 0.041 103.926);
  --muted-foreground: oklch(0.802 0.005 102.315);
  --popover: oklch(0.16 0.016 103.966);
  --popover-foreground: oklch(0.994 0.002 102.244);
  --card: oklch(0.16 0.016 103.966);
  --card-foreground: oklch(0.994 0.002 102.244);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.798 0.161 103.706);
  --primary-foreground: oklch(0.226 0.04 104.349);
  --secondary: oklch(0.298 0.019 103.193);
  --secondary-foreground: oklch(0.834 0.023 102.651);
  --accent: oklch(0.379 0.039 103.659);
  --accent-foreground: oklch(0.885 0.027 102.698);
  --destructive: oklch(0.62 0.216 34.995);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.161 103.706);
  --chart-1: oklch(0.798 0.161 103.706);
  --chart-2: oklch(0.298 0.019 103.193);
  --chart-3: oklch(0.379 0.039 103.659);
  --chart-4: oklch(0.332 0.022 103.226);
  --chart-5: oklch(0.807 0.165 103.622);
}