Firm for shadcn/ui

Firm is a shadcn/ui theme built around a vivid purple primary color (#af188e) with vivid cyan accents (#188eaf). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#af188e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfdsnow
#000000black
Foreground
#11030eblack
#fbf9fasnow
Card
#fefbfdsnow
#000000black
Card foreground
#11030eblack
#fbf9fasnow
Popover
#fefbfdsnow
#000000black
Popover foreground
#11030eblack
#fbf9fasnow
Primary
#af188emediumvioletred
#af188emediumvioletred
Primary foreground
#fefbfewhite
#fefbfewhite
Secondary
#8eaf18yellowgreen
#8eaf18yellowgreen
Secondary foreground
#000000black
#000000black
Muted
#e6e8degainsboro
#1f2117black
Muted foreground
#565851dimgray
#adaea7darkgray
Accent
#188eaflightseagreen
#188eaflightseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#742007maroon
#f25626tomato
Destructive foreground
#fbc3b2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#af188emediumvioletred
#af188emediumvioletred

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button6.11:1AA
Secondary button8.30:1AAA
Muted text5.82:1AA
Accent3.78:1AA Large
Destructive6.95:1AA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button6.11:1AA
Secondary button8.30:1AAA
Muted text7.28:1AAA
Accent3.78:1AA Large
Destructive3.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 332.691);
  --foreground: oklch(0.136 0.037 335.168);
  --muted: oklch(0.927 0.014 116.598);
  --muted-foreground: oklch(0.455 0.011 116.764);
  --popover: oklch(0.991 0.005 332.691);
  --popover-foreground: oklch(0.136 0.037 335.168);
  --card: oklch(0.991 0.005 332.691);
  --card-foreground: oklch(0.136 0.037 335.168);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.518 0.212 339.512);
  --primary-foreground: oklch(0.99 0.006 332.706);
  --secondary: oklch(0.705 0.166 122.384);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.602 0.107 222.757);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.376 0.121 35.984);
  --destructive-foreground: oklch(0.862 0.068 37.596);
  --ring: oklch(0.518 0.212 339.512);
  --chart-1: oklch(0.518 0.212 339.512);
  --chart-2: oklch(0.705 0.166 122.384);
  --chart-3: oklch(0.602 0.107 222.757);
  --chart-4: oklch(0.744 0.175 122.428);
  --chart-5: oklch(0.522 0.216 339.739);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.003 332.662);
  --muted: oklch(0.242 0.019 117.746);
  --muted-foreground: oklch(0.748 0.01 116.564);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.003 332.662);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.003 332.662);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.518 0.212 339.512);
  --primary-foreground: oklch(0.99 0.006 332.706);
  --secondary: oklch(0.705 0.166 122.384);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.602 0.107 222.757);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.201 36.507);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.518 0.212 339.512);
  --chart-1: oklch(0.518 0.212 339.512);
  --chart-2: oklch(0.705 0.166 122.384);
  --chart-3: oklch(0.602 0.107 222.757);
  --chart-4: oklch(0.744 0.175 122.428);
  --chart-5: oklch(0.522 0.216 339.739);
}