YellowBit for shadcn/ui

YellowBit is a shadcn/ui theme built around a vivid yellow primary color (#f5c400) with near-white accents (#ededed). The light mode uses a neutral background (#dedede). Dark mode keeps the vivid yellow primary (#e0e004) on an orange-tinted background (#0c0a09).

Color palette

TokenLightDark
Background
#dededegainsboro
#0c0a09black
Foreground
#212121black
#ecececwhitesmoke
Card
#ffffffwhite
#0c0a09black
Card foreground
#212121black
#ecececwhitesmoke
Popover
#ffffffwhite
#0c0a09black
Popover foreground
#212121black
#fafaf9snow
Primary
#f5c400gold
#e0e004gold
Primary foreground
#422006maroon
#3d1c03black
Secondary
#a56838sienna
#34231edarkslategray
Secondary foreground
#ecececwhitesmoke
#ecececwhitesmoke
Muted
#f5f5f4whitesmoke
#292524darkslategray
Muted foreground
#422006maroon
#a8a29edarkgray
Accent
#edededwhitesmoke
#484240darkslategray
Accent foreground
#1c1917black
#ecececwhitesmoke
Destructive
#ef4444tomato
#ab1717firebrick
Destructive foreground
#fafaf9snow
#ecececwhitesmoke
Border
#858585gray
#302b2adarkslategray
Input
#806253dimgray
#292524darkslategray
Ring
#0c0a09black
#facc15gold

Contrast

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

Light mode
Text on background12.00:1AAA
Text on card16.10:1AAA
Primary button8.85:1AAA
Secondary button3.83:1AA Large
Muted text13.36:1AAA
Accent14.98:1AAA
Destructive3.60:1AA Large
Dark mode
Text on background16.72:1AAA
Text on card16.72:1AAA
Primary button10.81:1AAA
Secondary button12.67:1AAA
Muted text6.01:1AA
Accent8.37:1AAA
Destructive6.21:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.902 0 180);
  --foreground: oklch(0.248 0 180);
  --muted: oklch(0.97 0.001 106.424);
  --muted-foreground: oklch(0.286 0.064 53.813);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.248 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.248 0 180);
  --border: oklch(0.618 0 175.601);
  --input: oklch(0.523 0.046 47.828);
  --primary: oklch(0.839 0.172 90.233);
  --primary-foreground: oklch(0.285 0.064 53.823);
  --secondary: oklch(0.574 0.101 56.355);
  --secondary-foreground: oklch(0.943 0 180);
  --accent: oklch(0.947 0 158.199);
  --accent-foreground: oklch(0.216 0.006 56.043);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(0.985 0.001 106.424);
  --ring: oklch(0.147 0.004 49.314);
  --chart-1: oklch(0.839 0.172 90.233);
  --chart-2: oklch(0.574 0.101 56.355);
  --chart-3: oklch(0.947 0 158.199);
  --chart-4: oklch(0.602 0.107 56.308);
  --chart-5: oklch(0.847 0.174 89.917);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.004 49.314);
  --foreground: oklch(0.943 0 180);
  --muted: oklch(0.269 0.006 34.297);
  --muted-foreground: oklch(0.716 0.009 56.26);
  --popover: oklch(0.147 0.004 49.314);
  --popover-foreground: oklch(0.985 0.001 106.424);
  --card: oklch(0.147 0.004 49.314);
  --card-foreground: oklch(0.943 0 180);
  --border: oklch(0.295 0.007 34.297);
  --input: oklch(0.269 0.006 34.297);
  --primary: oklch(0.877 0.191 109.762);
  --primary-foreground: oklch(0.269 0.062 54.139);
  --secondary: oklch(0.275 0.029 34.545);
  --secondary-foreground: oklch(0.943 0 180);
  --accent: oklch(0.384 0.009 34.297);
  --accent-foreground: oklch(0.943 0 180);
  --destructive: oklch(0.475 0.181 27.683);
  --destructive-foreground: oklch(0.943 0 180);
  --ring: oklch(0.861 0.173 91.941);
  --chart-1: oklch(0.877 0.191 109.762);
  --chart-2: oklch(0.275 0.029 34.545);
  --chart-3: oklch(0.384 0.009 34.297);
  --chart-4: oklch(0.305 0.033 34.568);
  --chart-5: oklch(0.887 0.193 109.768);
}