Break for shadcn/ui

Break is a shadcn/ui theme built around a near-white primary color (#fffafe) with near-white accents (#fafeff). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the near-white primary (#fffafe) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#000000black
Foreground
#0d020bblack
#ffffffwhite
Card
#fcf8fbsnow
#000000black
Card foreground
#0d020bblack
#ffffffwhite
Popover
#fcf8fbsnow
#000000black
Popover foreground
#0d020bblack
#ffffffwhite
Primary
#fffafesnow
#fffafesnow
Primary foreground
#590848indigo
#590848indigo
Secondary
#fefffawhite
#fefffawhite
Secondary foreground
#485908darkolivegreen
#485908darkolivegreen
Muted
#eeeeecwhitesmoke
#131311black
Muted foreground
#51524cdarkslategray
#b2b3addarkgray
Accent
#fafeffwhite
#fafeffwhite
Accent foreground
#084859darkslategray
#084859darkslategray
Destructive
#ac2b11firebrick
#e94220orangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fffafesnow
#fffafesnow

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button13.11:1AAA
Secondary button7.69:1AAA
Muted text6.80:1AA
Accent9.92:1AAA
Destructive6.23:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button13.11:1AAA
Secondary button7.69:1AAA
Muted text8.81:1AAA
Accent9.92:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 332.719);
  --foreground: oklch(0.121 0.035 334.345);
  --muted: oklch(0.949 0.003 116.395);
  --muted-foreground: oklch(0.436 0.01 116.76);
  --popover: oklch(0.983 0.006 332.719);
  --popover-foreground: oklch(0.121 0.035 334.345);
  --card: oklch(0.983 0.006 332.719);
  --card-foreground: oklch(0.121 0.035 334.345);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.99 0.006 332.715);
  --primary-foreground: oklch(0.32 0.13 339.378);
  --secondary: oklch(0.997 0.006 116.434);
  --secondary-foreground: oklch(0.434 0.102 122.269);
  --accent: oklch(0.994 0.004 216.027);
  --accent-foreground: oklch(0.372 0.066 222.493);
  --destructive: oklch(0.491 0.169 32.872);
  --destructive-foreground: oklch(0.972 0.012 31.067);
  --ring: oklch(0.99 0.006 332.715);
  --chart-1: oklch(0.99 0.006 332.715);
  --chart-2: oklch(0.997 0.006 116.434);
  --chart-3: oklch(0.994 0.004 216.027);
  --chart-4: oklch(1.006 0.011 296.124);
  --chart-5: oklch(0.99 0.007 332.719);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.005 116.824);
  --muted-foreground: oklch(0.764 0.009 116.544);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.99 0.006 332.715);
  --primary-foreground: oklch(0.32 0.13 339.378);
  --secondary: oklch(0.997 0.006 116.434);
  --secondary-foreground: oklch(0.434 0.102 122.269);
  --accent: oklch(0.994 0.004 216.027);
  --accent-foreground: oklch(0.372 0.066 222.493);
  --destructive: oklch(0.621 0.209 33.003);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.99 0.006 332.715);
  --chart-1: oklch(0.99 0.006 332.715);
  --chart-2: oklch(0.997 0.006 116.434);
  --chart-3: oklch(0.994 0.004 216.027);
  --chart-4: oklch(1.006 0.011 296.124);
  --chart-5: oklch(0.99 0.007 332.719);
}