Flaky for shadcn/ui

Flaky is a shadcn/ui theme built around a neutral gray primary color (#b6b8b9) with neutral gray accents (#b8b9b6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#b6b8b9) on a blue-tinted background (#03090c).

Color palette

TokenLightDark
Background
#ffffffwhite
#03090cblack
Foreground
#010304black
#f8fafcghostwhite
Card
#ffffffwhite
#03090cblack
Card foreground
#010304black
#f8fafcghostwhite
Popover
#ffffffwhite
#03090cblack
Popover foreground
#010304black
#f8fafcghostwhite
Primary
#b6b8b9silver
#b6b8b9silver
Primary foreground
#1e1f1fblack
#1e1f1fblack
Secondary
#b9b6b8silver
#b9b6b8silver
Secondary foreground
#1f1e1fblack
#1f1e1fblack
Muted
#e3dee1gainsboro
#211c1fblack
Muted foreground
#604d5adimgray
#b29fabdarkgray
Accent
#b8b9b6silver
#b8b9b6silver
Accent foreground
#1f1f1eblack
#1f1f1eblack
Destructive
#d03506firebrick
#f85725tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6b8b9silver
#b6b8b9silver

Contrast

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

Light mode
Text on background20.66:1AAA
Text on card20.66:1AAA
Primary button8.30:1AAA
Secondary button8.27:1AAA
Muted text5.84:1AA
Accent8.37:1AAA
Destructive5.00:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button8.30:1AAA
Secondary button8.27:1AAA
Muted text6.72:1AA
Accent8.37:1AAA
Destructive6.37:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.093 0.012 222.578);
  --muted: oklch(0.906 0.006 338.121);
  --muted-foreground: oklch(0.445 0.032 339.411);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.093 0.012 222.578);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.093 0.012 222.578);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.782 0.003 230.704);
  --primary-foreground: oklch(0.238 0.001 230.743);
  --secondary: oklch(0.78 0.004 338.095);
  --secondary-foreground: oklch(0.237 0.002 338.193);
  --accent: oklch(0.784 0.004 122.296);
  --accent-foreground: oklch(0.239 0.002 122.37);
  --destructive: oklch(0.565 0.197 34.624);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.782 0.003 230.704);
  --chart-1: oklch(0.782 0.003 230.704);
  --chart-2: oklch(0.78 0.004 338.095);
  --chart-3: oklch(0.784 0.004 122.296);
  --chart-4: oklch(0.804 0.004 338.079);
  --chart-5: oklch(0.782 0.006 230.77);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.013 225.146);
  --foreground: oklch(0.985 0.003 230.703);
  --muted: oklch(0.234 0.008 338.712);
  --muted-foreground: oklch(0.722 0.028 338.777);
  --popover: oklch(0.133 0.013 225.146);
  --popover-foreground: oklch(0.985 0.003 230.703);
  --card: oklch(0.133 0.013 225.146);
  --card-foreground: oklch(0.985 0.003 230.703);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.782 0.003 230.704);
  --primary-foreground: oklch(0.238 0.001 230.743);
  --secondary: oklch(0.78 0.004 338.095);
  --secondary-foreground: oklch(0.237 0.002 338.193);
  --accent: oklch(0.784 0.004 122.296);
  --accent-foreground: oklch(0.239 0.002 122.37);
  --destructive: oklch(0.668 0.206 36.411);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.782 0.003 230.704);
  --chart-1: oklch(0.782 0.003 230.704);
  --chart-2: oklch(0.78 0.004 338.095);
  --chart-3: oklch(0.784 0.004 122.296);
  --chart-4: oklch(0.804 0.004 338.079);
  --chart-5: oklch(0.782 0.006 230.77);
}