Brake for shadcn/ui

Brake is a shadcn/ui theme built around a neutral gray primary color (#e0e0e1) with neutral gray accents (#e1e0e0). The light mode uses a neutral background (#f8fafb). Dark mode keeps the neutral gray primary (#e0e0e1) on a blue-tinted background (#070a0e).

Color palette

TokenLightDark
Background
#f8fafbghostwhite
#070a0eblack
Foreground
#050d14black
#fcfcfdwhite
Card
#f5f7fawhitesmoke
#080d11black
Card foreground
#040a10black
#ffffffwhite
Popover
#f5f7fawhitesmoke
#080d11black
Popover foreground
#040a10black
#ffffffwhite
Primary
#e0e0e1gainsboro
#e0e0e1gainsboro
Primary foreground
#464749darkslategray
#464749darkslategray
Secondary
#e1e0e0gainsboro
#e1e0e0gainsboro
Secondary foreground
#494746darkslategray
#494746darkslategray
Muted
#e8ded4gainsboro
#2b2117black
Muted foreground
#525251darkslategray
#aeadaddarkgray
Accent
#e1e0e0gainsboro
#e1e0e0gainsboro
Accent foreground
#494746darkslategray
#494746darkslategray
Destructive
#d64b0achocolate
#e04e0borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e0e0e1gainsboro
#e0e0e1gainsboro

Contrast

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

Light mode
Text on background18.67:1AAA
Text on card18.56:1AAA
Primary button7.06:1AAA
Secondary button7.03:1AAA
Muted text5.89:1AA
Accent7.03:1AAA
Destructive4.30:1AA Large
Dark mode
Text on background19.33:1AAA
Text on card19.53:1AAA
Primary button7.06:1AAA
Secondary button7.03:1AAA
Muted text7.02:1AAA
Accent7.03:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.003 247.85);
  --foreground: oklch(0.154 0.021 246.458);
  --muted: oklch(0.905 0.018 67.599);
  --muted-foreground: oklch(0.438 0.002 67.779);
  --popover: oklch(0.976 0.004 247.865);
  --popover-foreground: oklch(0.141 0.018 243.545);
  --card: oklch(0.976 0.004 247.865);
  --card-foreground: oklch(0.141 0.018 243.545);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.908 0.001 247.833);
  --primary-foreground: oklch(0.399 0.003 247.902);
  --secondary: oklch(0.908 0.001 67.808);
  --secondary-foreground: oklch(0.4 0.003 67.738);
  --accent: oklch(0.908 0.001 67.808);
  --accent-foreground: oklch(0.4 0.003 67.738);
  --destructive: oklch(0.598 0.186 39.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.908 0.001 247.833);
  --chart-1: oklch(0.908 0.001 247.833);
  --chart-2: oklch(0.908 0.001 67.808);
  --chart-3: oklch(0.908 0.001 67.808);
  --chart-4: oklch(0.931 0.001 67.812);
  --chart-5: oklch(0.907 0.003 247.852);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.01 245.655);
  --foreground: oklch(0.992 0.001 247.828);
  --muted: oklch(0.257 0.024 66.414);
  --muted-foreground: oklch(0.749 0.001 67.8);
  --popover: oklch(0.155 0.012 248.073);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.155 0.012 248.073);
  --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.908 0.001 247.833);
  --primary-foreground: oklch(0.399 0.003 247.902);
  --secondary: oklch(0.908 0.001 67.808);
  --secondary-foreground: oklch(0.4 0.003 67.738);
  --accent: oklch(0.908 0.001 67.808);
  --accent-foreground: oklch(0.4 0.003 67.738);
  --destructive: oklch(0.618 0.193 39.351);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.908 0.001 247.833);
  --chart-1: oklch(0.908 0.001 247.833);
  --chart-2: oklch(0.908 0.001 67.808);
  --chart-3: oklch(0.908 0.001 67.808);
  --chart-4: oklch(0.931 0.001 67.812);
  --chart-5: oklch(0.907 0.003 247.852);
}