Bidet for shadcn/ui

Bidet is a shadcn/ui theme built around a deep purple primary color (#210623) with deep teal accents (#062321). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the deep purple primary (#210623) on a neutral background (#040104).

Color palette

TokenLightDark
Background
#fdf7fdsnow
#040104black
Foreground
#000000black
#fdfcfdwhite
Card
#fdf7fdsnow
#040104black
Card foreground
#000000black
#fdfcfdwhite
Popover
#fdf7fdsnow
#040104black
Popover foreground
#000000black
#fdfcfdwhite
Primary
#210623black
#210623black
Primary foreground
#e172e9orchid
#e172e9orchid
Secondary
#232106black
#232106black
Secondary foreground
#d4c821goldenrod
#d4c821goldenrod
Muted
#eae9e1beige
#1e1d15black
Muted foreground
#4b4a3adarkslategray
#c5c4b4silver
Accent
#062321black
#062321black
Accent foreground
#21d4c8turquoise
#21d4c8turquoise
Destructive
#ca4802chocolate
#fd6412orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#210623black
#210623black

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button6.98:1AA
Secondary button9.32:1AAA
Muted text7.37:1AAA
Accent8.88:1AAA
Destructive4.73:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button6.98:1AA
Secondary button9.32:1AAA
Muted text9.58:1AAA
Accent8.88:1AAA
Destructive6.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.011 323.694);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.933 0.011 103.299);
  --muted-foreground: oklch(0.404 0.026 104.104);
  --popover: oklch(0.981 0.011 323.694);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.011 323.694);
  --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.188 0.068 325.119);
  --primary-foreground: oklch(0.722 0.199 324.837);
  --secondary: oklch(0.244 0.044 105.347);
  --secondary-foreground: oklch(0.817 0.167 104.989);
  --accent: oklch(0.235 0.035 188.825);
  --accent-foreground: oklch(0.785 0.132 187.48);
  --destructive: oklch(0.575 0.177 40.72);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.188 0.068 325.119);
  --chart-1: oklch(0.188 0.068 325.119);
  --chart-2: oklch(0.244 0.044 105.347);
  --chart-3: oklch(0.235 0.035 188.825);
  --chart-4: oklch(0.295 0.055 105.244);
  --chart-5: oklch(0.188 0.07 325.16);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.016 324.991);
  --foreground: oklch(0.992 0.002 323.646);
  --muted: oklch(0.23 0.015 104.122);
  --muted-foreground: oklch(0.817 0.022 103.549);
  --popover: oklch(0.087 0.016 324.991);
  --popover-foreground: oklch(0.992 0.002 323.646);
  --card: oklch(0.087 0.016 324.991);
  --card-foreground: oklch(0.992 0.002 323.646);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.188 0.068 325.119);
  --primary-foreground: oklch(0.722 0.199 324.837);
  --secondary: oklch(0.244 0.044 105.347);
  --secondary-foreground: oklch(0.817 0.167 104.989);
  --accent: oklch(0.235 0.035 188.825);
  --accent-foreground: oklch(0.785 0.132 187.48);
  --destructive: oklch(0.69 0.202 42.133);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.188 0.068 325.119);
  --chart-1: oklch(0.188 0.068 325.119);
  --chart-2: oklch(0.244 0.044 105.347);
  --chart-3: oklch(0.235 0.035 188.825);
  --chart-4: oklch(0.295 0.055 105.244);
  --chart-5: oklch(0.188 0.07 325.16);
}