fst-2 for shadcn/ui

fst-2 is a shadcn/ui theme built around a neutral gray primary color (#c3c4c6) with neutral gray accents (#c6c5c3). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the neutral gray primary (#c3c4c6) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#020203black
Foreground
#000000black
#f9fafbghostwhite
Card
#f5f6fawhitesmoke
#030407black
Card foreground
#000000black
#fcfcfdwhite
Popover
#f5f6fawhitesmoke
#030407black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#c3c4c6silver
#c3c4c6silver
Primary foreground
#2a2b2cdarkslategray
#2a2b2cdarkslategray
Secondary
#c6c5c3silver
#c6c5c3silver
Secondary foreground
#2c2c2adarkslategray
#2c2c2adarkslategray
Muted
#efeeeblinen
#141310black
Muted foreground
#43413ddarkslategray
#c2c1bcsilver
Accent
#c6c5c3silver
#c6c5c3silver
Accent foreground
#2c2c2adarkslategray
#2c2c2adarkslategray
Destructive
#bb1d0cfirebrick
#f24431tomato
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e0e2e5gainsboro
#202227black
Input
#e0e2e5gainsboro
#202227black
Ring
#c3c4c6silver
#c3c4c6silver

Contrast

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

Light mode
Text on background19.95:1AAA
Text on card19.45:1AAA
Primary button8.11:1AAA
Secondary button8.09:1AAA
Muted text8.78:1AAA
Accent8.09:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.95:1AAA
Primary button8.11:1AAA
Secondary button8.09:1AAA
Muted text10.32:1AAA
Accent8.09:1AAA
Destructive3.72:1AA Large

CSS variables

Paste this into your globals.css to use fst-2 in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 268.765);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.004 88.818);
  --muted-foreground: oklch(0.376 0.008 88.915);
  --popover: oklch(0.974 0.006 268.751);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.006 268.751);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.912 0.005 268.751);
  --input: oklch(0.912 0.005 268.751);
  --primary: oklch(0.82 0.002 268.77);
  --primary-foreground: oklch(0.289 0.002 268.733);
  --secondary: oklch(0.823 0.002 88.81);
  --secondary-foreground: oklch(0.292 0.002 88.842);
  --accent: oklch(0.823 0.002 88.81);
  --accent-foreground: oklch(0.292 0.002 88.842);
  --destructive: oklch(0.509 0.193 30.495);
  --destructive-foreground: oklch(0.99 0.004 25.026);
  --ring: oklch(0.82 0.002 268.77);
  --chart-1: oklch(0.82 0.002 268.77);
  --chart-2: oklch(0.823 0.002 88.81);
  --chart-3: oklch(0.823 0.002 88.81);
  --chart-4: oklch(0.847 0.002 88.807);
  --chart-5: oklch(0.817 0.006 268.738);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.007 264.537);
  --foreground: oklch(0.984 0.002 268.78);
  --muted: oklch(0.186 0.006 88.959);
  --muted-foreground: oklch(0.81 0.007 88.843);
  --popover: oklch(0.11 0.009 264.537);
  --popover-foreground: oklch(0.992 0.001 268.785);
  --card: oklch(0.11 0.009 264.537);
  --card-foreground: oklch(0.992 0.001 268.785);
  --border: oklch(0.253 0.009 268.503);
  --input: oklch(0.253 0.009 268.503);
  --primary: oklch(0.82 0.002 268.77);
  --primary-foreground: oklch(0.289 0.002 268.733);
  --secondary: oklch(0.823 0.002 88.81);
  --secondary-foreground: oklch(0.292 0.002 88.842);
  --accent: oklch(0.823 0.002 88.81);
  --accent-foreground: oklch(0.292 0.002 88.842);
  --destructive: oklch(0.64 0.213 30.189);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.82 0.002 268.77);
  --chart-1: oklch(0.82 0.002 268.77);
  --chart-2: oklch(0.823 0.002 88.81);
  --chart-3: oklch(0.823 0.002 88.81);
  --chart-4: oklch(0.847 0.002 88.807);
  --chart-5: oklch(0.817 0.006 268.738);
}