Brief Smalt for shadcn/ui

Brief Smalt is a shadcn/ui theme built around a blue primary color (#173396) with yellow accents (#967b17). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#173396) on a blue-tinted background (#06080f).

Color palette

TokenLightDark
Background
#fbfcfewhite
#06080fblack
Foreground
#050814black
#f9f9fbghostwhite
Card
#fbfcfewhite
#06080fblack
Card foreground
#050814black
#f9f9fbghostwhite
Popover
#fbfcfewhite
#06080fblack
Popover foreground
#050814black
#f9f9fbghostwhite
Primary
#173396midnightblue
#173396midnightblue
Primary foreground
#e5e9fblavender
#e5e9fblavender
Secondary
#967b17olive
#967b17olive
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ddddd9gainsboro
#262522darkslategray
Muted foreground
#6c6651dimgray
#aea893darkgray
Accent
#967b17olive
#967b17olive
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7d2b0csaddlebrown
#da4a16chocolate
Destructive foreground
#f9d1c3peachpuff
#ffffffwhite
Border
#e7e8e9lavender
#202122black
Input
#e7e8e9lavender
#202122black
Ring
#173396midnightblue
#173396midnightblue

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button8.92:1AAA
Secondary button4.10:1AA Large
Muted text4.20:1AA Large
Accent4.10:1AA Large
Destructive6.72:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button8.92:1AAA
Secondary button4.10:1AA Large
Muted text6.44:1AA
Accent4.10:1AA Large
Destructive4.22:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 273.832);
  --foreground: oklch(0.14 0.027 268.34);
  --muted: oklch(0.896 0.005 93.921);
  --muted-foreground: oklch(0.509 0.032 94.399);
  --popover: oklch(0.99 0.003 273.832);
  --popover-foreground: oklch(0.14 0.027 268.34);
  --card: oklch(0.99 0.003 273.832);
  --card-foreground: oklch(0.14 0.027 268.34);
  --border: oklch(0.93 0.001 273.847);
  --input: oklch(0.93 0.001 273.847);
  --primary: oklch(0.373 0.165 266.051);
  --primary-foreground: oklch(0.937 0.024 273.558);
  --secondary: oklch(0.591 0.114 91.895);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.591 0.114 91.895);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.407 0.122 38.302);
  --destructive-foreground: oklch(0.891 0.049 40.986);
  --ring: oklch(0.373 0.165 266.051);
  --chart-1: oklch(0.373 0.165 266.051);
  --chart-2: oklch(0.591 0.114 91.895);
  --chart-3: oklch(0.591 0.114 91.895);
  --chart-4: oklch(0.628 0.121 91.814);
  --chart-5: oklch(0.372 0.171 265.754);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.017 269.245);
  --foreground: oklch(0.984 0.002 273.846);
  --muted: oklch(0.264 0.006 94.107);
  --muted-foreground: oklch(0.731 0.03 94.251);
  --popover: oklch(0.133 0.017 269.245);
  --popover-foreground: oklch(0.984 0.002 273.846);
  --card: oklch(0.133 0.017 269.245);
  --card-foreground: oklch(0.984 0.002 273.846);
  --border: oklch(0.246 0.003 273.725);
  --input: oklch(0.246 0.003 273.725);
  --primary: oklch(0.373 0.165 266.051);
  --primary-foreground: oklch(0.937 0.024 273.558);
  --secondary: oklch(0.591 0.114 91.895);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.591 0.114 91.895);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.604 0.189 37.611);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.373 0.165 266.051);
  --chart-1: oklch(0.373 0.165 266.051);
  --chart-2: oklch(0.591 0.114 91.895);
  --chart-3: oklch(0.591 0.114 91.895);
  --chart-4: oklch(0.628 0.121 91.814);
  --chart-5: oklch(0.372 0.171 265.754);
}