Dude for shadcn/ui

Dude is a shadcn/ui theme built around a neutral gray primary color (#262726) with neutral gray accents (#272626). The light mode uses a neutral background (#fbfefb). Dark mode keeps the neutral gray primary (#262726) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030703black
Foreground
#040c04black
#f9fbf8mintcream
Card
#fbfefbwhite
#030703black
Card foreground
#040c04black
#f9fbf8mintcream
Popover
#fbfefbwhite
#030703black
Popover foreground
#040c04black
#f9fbf8mintcream
Primary
#262726darkslategray
#262726darkslategray
Primary foreground
#bfc0bfsilver
#bfc0bfsilver
Secondary
#262627darkslategray
#262627darkslategray
Secondary foreground
#bfbfc0silver
#bfbfc0silver
Muted
#e4e5eclavender
#13141bblack
Muted foreground
#4e4f5adarkslategray
#a5a6b1darkgray
Accent
#272626darkslategray
#272626darkslategray
Accent foreground
#c0bfbfsilver
#c0bfbfsilver
Destructive
#992400darkred
#ff470forangered
Destructive foreground
#ffd8ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#262726darkslategray
#262726darkslategray

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button8.24:1AAA
Secondary button8.24:1AAA
Muted text6.45:1AA
Accent8.24:1AAA
Destructive6.12:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button8.24:1AAA
Secondary button8.24:1AAA
Muted text7.60:1AAA
Accent8.24:1AAA
Destructive3.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 143.609);
  --foreground: oklch(0.14 0.026 142.007);
  --muted: oklch(0.923 0.009 282.935);
  --muted-foreground: oklch(0.431 0.018 282.367);
  --popover: oklch(0.994 0.005 143.609);
  --popover-foreground: oklch(0.14 0.026 142.007);
  --card: oklch(0.994 0.005 143.609);
  --card-foreground: oklch(0.14 0.026 142.007);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.27 0.002 143.602);
  --primary-foreground: oklch(0.806 0.002 143.621);
  --secondary: oklch(0.269 0.001 283.024);
  --secondary-foreground: oklch(0.804 0.002 283.071);
  --accent: oklch(0.269 0.001 12.515);
  --accent-foreground: oklch(0.804 0.001 12.464);
  --destructive: oklch(0.449 0.158 34.877);
  --destructive-foreground: oklch(0.912 0.047 37.597);
  --ring: oklch(0.27 0.002 143.602);
  --chart-1: oklch(0.27 0.002 143.602);
  --chart-2: oklch(0.269 0.001 283.024);
  --chart-3: oklch(0.269 0.001 12.515);
  --chart-4: oklch(0.299 0.002 283.02);
  --chart-5: oklch(0.272 0.007 143.501);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.019 142.272);
  --foreground: oklch(0.986 0.005 143.608);
  --muted: oklch(0.193 0.014 281.804);
  --muted-foreground: oklch(0.727 0.016 282.731);
  --popover: oklch(0.121 0.019 142.272);
  --popover-foreground: oklch(0.986 0.005 143.608);
  --card: oklch(0.121 0.019 142.272);
  --card-foreground: oklch(0.986 0.005 143.608);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.27 0.002 143.602);
  --primary-foreground: oklch(0.806 0.002 143.621);
  --secondary: oklch(0.269 0.001 283.024);
  --secondary-foreground: oklch(0.804 0.002 283.071);
  --accent: oklch(0.269 0.001 12.515);
  --accent-foreground: oklch(0.804 0.001 12.464);
  --destructive: oklch(0.663 0.227 34.952);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.27 0.002 143.602);
  --chart-1: oklch(0.27 0.002 143.602);
  --chart-2: oklch(0.269 0.001 283.024);
  --chart-3: oklch(0.269 0.001 12.515);
  --chart-4: oklch(0.299 0.002 283.02);
  --chart-5: oklch(0.272 0.007 143.501);
}