Breakable for shadcn/ui

Breakable is a shadcn/ui theme built around a muted deep violet primary color (#09070d) with muted deep green accents (#070d09). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted deep violet primary (#09070d) on a violet-tinted background (#09060f).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#09060fblack
Foreground
#080510black
#f9f9fbghostwhite
Card
#f9f8fcghostwhite
#0b0712black
Card foreground
#06030cblack
#fcfcfdwhite
Popover
#f9f8fcghostwhite
#0b0712black
Popover foreground
#06030cblack
#fcfcfdwhite
Primary
#09070dblack
#09070dblack
Primary foreground
#9a89bdmediumpurple
#9a89bdmediumpurple
Secondary
#0d0907black
#0d0907black
Secondary foreground
#bd9a89rosybrown
#bd9a89rosybrown
Muted
#eedfd8antiquewhite
#271811black
Muted foreground
#756057dimgray
#a8938arosybrown
Accent
#070d09black
#070d09black
Accent foreground
#89bd9adarkseagreen
#89bd9adarkseagreen
Destructive
#7d2d03saddlebrown
#fa6b1echocolate
Destructive foreground
#fdceb4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#09070dblack
#09070dblack

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.36:1AAA
Primary button6.37:1AA
Secondary button7.68:1AAA
Muted text4.53:1AA
Accent9.15:1AAA
Destructive6.50:1AA
Dark mode
Text on background19.16:1AAA
Text on card19.44:1AAA
Primary button6.37:1AA
Secondary button7.68:1AAA
Muted text5.88:1AA
Accent9.15:1AAA
Destructive7.21:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 300.725);
  --foreground: oklch(0.126 0.028 299.755);
  --muted: oklch(0.914 0.019 46.631);
  --muted-foreground: oklch(0.508 0.031 46.263);
  --popover: oklch(0.981 0.005 300.682);
  --popover-foreground: oklch(0.114 0.024 300.956);
  --card: oklch(0.981 0.005 300.682);
  --card-foreground: oklch(0.114 0.024 300.956);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.136 0.013 300.25);
  --primary-foreground: oklch(0.665 0.077 298.818);
  --secondary: oklch(0.145 0.008 48.978);
  --secondary-foreground: oklch(0.713 0.048 46.211);
  --accent: oklch(0.151 0.013 155.722);
  --accent-foreground: oklch(0.752 0.074 154.433);
  --destructive: oklch(0.41 0.12 42.534);
  --destructive-foreground: oklch(0.886 0.064 49.804);
  --ring: oklch(0.136 0.013 300.25);
  --chart-1: oklch(0.136 0.013 300.25);
  --chart-2: oklch(0.145 0.008 48.978);
  --chart-3: oklch(0.151 0.013 155.722);
  --chart-4: oklch(0.181 0.013 46.165);
  --chart-5: oklch(0.135 0.015 300.198);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.022 299.948);
  --foreground: oklch(0.983 0.003 300.714);
  --muted: oklch(0.227 0.028 45.746);
  --muted-foreground: oklch(0.68 0.029 46.427);
  --popover: oklch(0.141 0.026 298.455);
  --popover-foreground: oklch(0.991 0.002 300.741);
  --card: oklch(0.141 0.026 298.455);
  --card-foreground: oklch(0.991 0.002 300.741);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.136 0.013 300.25);
  --primary-foreground: oklch(0.665 0.077 298.818);
  --secondary: oklch(0.145 0.008 48.978);
  --secondary-foreground: oklch(0.713 0.048 46.211);
  --accent: oklch(0.151 0.013 155.722);
  --accent-foreground: oklch(0.752 0.074 154.433);
  --destructive: oklch(0.696 0.193 43.611);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.136 0.013 300.25);
  --chart-1: oklch(0.136 0.013 300.25);
  --chart-2: oklch(0.145 0.008 48.978);
  --chart-3: oklch(0.151 0.013 155.722);
  --chart-4: oklch(0.181 0.013 46.165);
  --chart-5: oklch(0.135 0.015 300.198);
}