Firm for shadcn/ui

Firm is a shadcn/ui theme built around a muted cyan primary color (#698e9b) with muted blue accents (#69759b). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted cyan primary (#698e9b) on a cyan-tinted background (#050d10).

Color palette

TokenLightDark
Background
#ffffffwhite
#050d10black
Foreground
#030d11black
#f6f8f9whitesmoke
Card
#ffffffwhite
#050d10black
Card foreground
#030d11black
#f6f8f9whitesmoke
Popover
#ffffffwhite
#050d10black
Popover foreground
#030d11black
#f6f8f9whitesmoke
Primary
#698e9blightslategray
#698e9blightslategray
Primary foreground
#000000black
#000000black
Secondary
#699b8fcadetblue
#699b8fcadetblue
Secondary foreground
#000000black
#000000black
Muted
#e3f2eelavender
#0d1c18black
Muted foreground
#41534fdarkslategray
#acbebasilver
Accent
#69759bslategray
#69759bslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#861503darkred
#e02306orangered
Destructive foreground
#fdc7bepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#698e9blightslategray
#698e9blightslategray

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button5.92:1AA
Secondary button6.69:1AA
Muted text7.06:1AAA
Accent4.55:1AA
Destructive6.62:1AA
Dark mode
Text on background18.43:1AAA
Text on card18.43:1AAA
Primary button5.92:1AA
Secondary button6.69:1AA
Muted text9.07:1AAA
Accent4.55:1AA
Destructive4.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.152 0.019 219.828);
  --muted: oklch(0.949 0.016 180.488);
  --muted-foreground: oklch(0.425 0.023 179.332);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.152 0.019 219.828);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.152 0.019 219.828);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.623 0.045 222.326);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.651 0.056 178.205);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.567 0.061 271.252);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.401 0.15 31.62);
  --destructive-foreground: oklch(0.875 0.064 28.483);
  --ring: oklch(0.623 0.045 222.326);
  --chart-1: oklch(0.623 0.045 222.326);
  --chart-2: oklch(0.651 0.056 178.205);
  --chart-3: oklch(0.567 0.061 271.252);
  --chart-4: oklch(0.673 0.053 178.495);
  --chart-5: oklch(0.626 0.052 222.546);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.15 0.015 220.134);
  --foreground: oklch(0.978 0.003 221.331);
  --muted: oklch(0.21 0.021 177.687);
  --muted-foreground: oklch(0.786 0.02 180.216);
  --popover: oklch(0.15 0.015 220.134);
  --popover-foreground: oklch(0.978 0.003 221.331);
  --card: oklch(0.15 0.015 220.134);
  --card-foreground: oklch(0.978 0.003 221.331);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.623 0.045 222.326);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.651 0.056 178.205);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.567 0.061 271.252);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.58 0.223 31.083);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.623 0.045 222.326);
  --chart-1: oklch(0.623 0.045 222.326);
  --chart-2: oklch(0.651 0.056 178.205);
  --chart-3: oklch(0.567 0.061 271.252);
  --chart-4: oklch(0.673 0.053 178.495);
  --chart-5: oklch(0.626 0.052 222.546);
}