Bratwurst for shadcn/ui

Bratwurst is a shadcn/ui theme built around a near-white primary color (#f7fdfd) with muted light teal accents (#cfd8d8). The light mode uses a neutral background (#fbfefe). Dark mode keeps the near-white primary (#f7fdfd) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefewhite
#000000black
Foreground
#020d0dblack
#fcfdfdwhite
Card
#f8fcfcmintcream
#030303black
Card foreground
#010909black
#ffffffwhite
Popover
#fbfefewhite
#000000black
Popover foreground
#020d0dblack
#fcfdfdwhite
Primary
#f7fdfdmintcream
#f7fdfdmintcream
Primary foreground
#114a48darkslategray
#114a48darkslategray
Secondary
#eaececlavender
#1d2625black
Secondary foreground
#4e5655darkslategray
#b1c4c3silver
Muted
#ecf3f3whitesmoke
#0c1312black
Muted foreground
#3a4a4adarkslategray
#b5c5c4silver
Accent
#cfd8d8lightgrey
#2b4040darkslategray
Accent foreground
#354140darkslategray
#c5d8d8lightgrey
Destructive
#6b2406maroon
#f35916orangered
Destructive foreground
#fac1a8lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f7fdfdmintcream
#f7fdfdmintcream

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.46:1AAA
Primary button9.73:1AAA
Secondary button6.33:1AA
Muted text8.27:1AAA
Accent7.30:1AAA
Destructive7.07:1AAA
Dark mode
Text on background20.60:1AAA
Text on card20.67:1AAA
Primary button9.73:1AAA
Secondary button8.54:1AAA
Muted text10.54:1AAA
Accent7.41:1AAA
Destructive3.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 194.744);
  --foreground: oklch(0.148 0.02 192.885);
  --muted: oklch(0.959 0.007 194.657);
  --muted-foreground: oklch(0.396 0.02 193.852);
  --popover: oklch(0.994 0.002 194.744);
  --popover-foreground: oklch(0.148 0.02 192.885);
  --card: oklch(0.988 0.005 194.698);
  --card-foreground: oklch(0.128 0.017 193.2);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.989 0.007 194.664);
  --primary-foreground: oklch(0.374 0.057 191.736);
  --secondary: oklch(0.94 0.002 194.746);
  --secondary-foreground: oklch(0.445 0.01 194.358);
  --accent: oklch(0.875 0.009 194.59);
  --accent-foreground: oklch(0.363 0.015 194.009);
  --destructive: oklch(0.364 0.108 40.093);
  --destructive-foreground: oklch(0.855 0.075 44.293);
  --ring: oklch(0.989 0.007 194.664);
  --chart-1: oklch(0.989 0.007 194.664);
  --chart-2: oklch(0.94 0.002 194.746);
  --chart-3: oklch(0.875 0.009 194.59);
  --chart-4: oklch(0.963 0.001 194.763);
  --chart-5: oklch(0.99 0.007 194.658);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 194.761);
  --muted: oklch(0.178 0.01 193.766);
  --muted-foreground: oklch(0.81 0.017 194.391);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 194.761);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.989 0.007 194.664);
  --primary-foreground: oklch(0.374 0.057 191.736);
  --secondary: oklch(0.259 0.013 193.858);
  --secondary-foreground: oklch(0.805 0.021 194.306);
  --accent: oklch(0.354 0.027 193.39);
  --accent-foreground: oklch(0.868 0.021 194.346);
  --destructive: oklch(0.661 0.201 39.387);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.989 0.007 194.664);
  --chart-1: oklch(0.989 0.007 194.664);
  --chart-2: oklch(0.259 0.013 193.858);
  --chart-3: oklch(0.354 0.027 193.39);
  --chart-4: oklch(0.293 0.016 193.81);
  --chart-5: oklch(0.99 0.007 194.658);
}