Frigid for shadcn/ui

Frigid is a shadcn/ui theme built around a near-black primary color (#000000) with muted red accents (#c6b9b9). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#000000) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#ffffffwhite
#070303black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#0b0404black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#0b0404black
Popover foreground
#000000black
#ffffffwhite
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#d0cecelightgrey
#363030darkslategray
Secondary foreground
#373434darkslategray
#cfc9c9lightgrey
Muted
#f1dfdfmistyrose
#200e0eblack
Muted foreground
#564848darkslategray
#b7a9a9darkgray
Accent
#c6b9b9silver
#544040darkslategray
Accent foreground
#2a2222darkslategray
#e7dfdfgainsboro
Destructive
#861c0edarkred
#de2e17crimson
Destructive foreground
#fad2ccpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.37:1AAA
Secondary button7.83:1AAA
Muted text6.77:1AA
Accent8.16:1AAA
Destructive6.93:1AA
Dark mode
Text on background20.52:1AAA
Text on card20.30:1AAA
Primary button7.37:1AAA
Secondary button7.92:1AAA
Muted text8.19:1AAA
Accent7.35:1AAA
Destructive4.66:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.918 0.02 17.517);
  --muted-foreground: oklch(0.416 0.019 17.958);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.852 0.002 17.2);
  --secondary-foreground: oklch(0.329 0.003 17.31);
  --accent: oklch(0.796 0.015 17.462);
  --accent-foreground: oklch(0.262 0.012 17.92);
  --destructive: oklch(0.406 0.143 31.036);
  --destructive-foreground: oklch(0.895 0.046 26.866);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.852 0.002 17.2);
  --chart-3: oklch(0.796 0.015 17.462);
  --chart-4: oklch(0.875 0.002 17.192);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.014 19.629);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.19 0.031 20.322);
  --muted-foreground: oklch(0.746 0.016 17.528);
  --popover: oklch(0.122 0.016 19.638);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.016 19.638);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.315 0.009 17.63);
  --secondary-foreground: oklch(0.841 0.007 17.292);
  --accent: oklch(0.392 0.029 18.465);
  --accent-foreground: oklch(0.91 0.009 17.314);
  --destructive: oklch(0.584 0.213 31.024);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.315 0.009 17.63);
  --chart-3: oklch(0.392 0.029 18.465);
  --chart-4: oklch(0.345 0.01 17.644);
  --chart-5: oklch(0 0 0);
}