Snazzy Operator for shadcn/ui

Snazzy Operator is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#484b61). The light mode uses a blue-tinted background (#272935). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#272935).

Color palette

TokenLightDark
Background
#272935darkslategray
#272935darkslategray
Foreground
#eff0eblinen
#eff0eblinen
Card
#23252fdarkslategray
#23252fdarkslategray
Card foreground
#fafbf9snow
#fafbf9snow
Popover
#21222cdarkslategray
#21222cdarkslategray
Popover foreground
#ffffffwhite
#ffffffwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#31333fdarkslategray
#31333fdarkslategray
Muted foreground
#afb2c0silver
#afb2c0silver
Accent
#484b61darkslategray
#484b61darkslategray
Accent foreground
#eaebf0lavender
#eaebf0lavender
Destructive
#e22012crimson
#e22012crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#38393edarkslategray
#38393edarkslategray
Input
#3f4046darkslategray
#3f4046darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background12.59:1AAA
Text on card14.76:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.90:1AA
Accent7.17:1AAA
Destructive4.70:1AA
Dark mode
Text on background12.59:1AAA
Text on card14.76:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text5.90:1AA
Accent7.17:1AAA
Destructive4.70:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.284 0.022 277.093);
  --foreground: oklch(0.952 0.007 115.708);
  --muted: oklch(0.325 0.02 277.326);
  --muted-foreground: oklch(0.765 0.021 277.909);
  --popover: oklch(0.256 0.019 277.158);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.265 0.02 277.135);
  --card-foreground: oklch(0.986 0.002 115.614);
  --border: oklch(0.344 0.009 277.939);
  --input: oklch(0.373 0.01 277.93);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.419 0.036 276.917);
  --accent-foreground: oklch(0.942 0.006 278.223);
  --destructive: oklch(0.584 0.225 29.718);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.419 0.036 276.917);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.284 0.022 277.093);
  --foreground: oklch(0.952 0.007 115.708);
  --muted: oklch(0.325 0.02 277.326);
  --muted-foreground: oklch(0.765 0.021 277.909);
  --popover: oklch(0.256 0.019 277.158);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.265 0.02 277.135);
  --card-foreground: oklch(0.986 0.002 115.614);
  --border: oklch(0.344 0.009 277.939);
  --input: oklch(0.373 0.01 277.93);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.419 0.036 276.917);
  --accent-foreground: oklch(0.942 0.006 278.223);
  --destructive: oklch(0.584 0.225 29.718);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.419 0.036 276.917);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}