Biscuit for shadcn/ui

Biscuit is a shadcn/ui theme built around a near-black primary color (#20201d) with near-black accents (#1f201d). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the near-black primary (#20201d) on a yellow-tinted background (#0a0a05).

Color palette

TokenLightDark
Background
#fcfbf8snow
#0a0a05black
Foreground
#040401black
#fdfdfcwhite
Card
#fcfbf8snow
#0a0a05black
Card foreground
#040401black
#fdfdfcwhite
Popover
#fcfbf8snow
#0a0a05black
Popover foreground
#040401black
#fdfdfcwhite
Primary
#20201dblack
#20201dblack
Primary foreground
#babab5silver
#babab5silver
Secondary
#201e1dblack
#201e1dblack
Secondary foreground
#bab7b5silver
#bab7b5silver
Muted
#e0dbd7gainsboro
#28231fblack
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#1f201dblack
#1f201dblack
Accent foreground
#b8bab5silver
#b8bab5silver
Destructive
#87170ddarkred
#e52715crimson
Destructive foreground
#fad0ccpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#20201dblack
#20201dblack

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button8.40:1AAA
Secondary button8.29:1AAA
Muted text6.43:1AA
Accent8.38:1AAA
Destructive6.91:1AA
Dark mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button8.40:1AAA
Secondary button8.29:1AAA
Muted text7.56:1AAA
Accent8.38:1AAA
Destructive4.54:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.004 104.042);
  --foreground: oklch(0.104 0.014 106.715);
  --muted: oklch(0.894 0.007 62.084);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.988 0.004 104.042);
  --popover-foreground: oklch(0.104 0.014 106.715);
  --card: oklch(0.988 0.004 104.042);
  --card-foreground: oklch(0.104 0.014 106.715);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.242 0.004 104.276);
  --primary-foreground: oklch(0.788 0.008 104.135);
  --secondary: oklch(0.238 0.003 62.03);
  --secondary-foreground: oklch(0.782 0.005 62.108);
  --accent: oklch(0.241 0.005 126.689);
  --accent-foreground: oklch(0.787 0.008 126.566);
  --destructive: oklch(0.405 0.149 29.989);
  --destructive-foreground: oklch(0.892 0.049 24.196);
  --ring: oklch(0.242 0.004 104.276);
  --chart-1: oklch(0.242 0.004 104.276);
  --chart-2: oklch(0.238 0.003 62.03);
  --chart-3: oklch(0.241 0.005 126.689);
  --chart-4: oklch(0.27 0.004 62.019);
  --chart-5: oklch(0.244 0.008 104.486);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.011 105.573);
  --foreground: oklch(0.994 0.002 104.002);
  --muted: oklch(0.261 0.01 61.668);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.142 0.011 105.573);
  --popover-foreground: oklch(0.994 0.002 104.002);
  --card: oklch(0.142 0.011 105.573);
  --card-foreground: oklch(0.994 0.002 104.002);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.242 0.004 104.276);
  --primary-foreground: oklch(0.788 0.008 104.135);
  --secondary: oklch(0.238 0.003 62.03);
  --secondary-foreground: oklch(0.782 0.005 62.108);
  --accent: oklch(0.241 0.005 126.689);
  --accent-foreground: oklch(0.787 0.008 126.566);
  --destructive: oklch(0.592 0.224 30.081);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.242 0.004 104.276);
  --chart-1: oklch(0.242 0.004 104.276);
  --chart-2: oklch(0.238 0.003 62.03);
  --chart-3: oklch(0.241 0.005 126.689);
  --chart-4: oklch(0.27 0.004 62.019);
  --chart-5: oklch(0.244 0.008 104.486);
}