Rigid for shadcn/ui

Rigid is a shadcn/ui theme built around a muted deep cyan primary color (#111b1d) with muted deep blue accents (#11141d). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the muted deep cyan primary (#111b1d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#000000black
Foreground
#041215black
#f4f9famintcream
Card
#f4f9fbghostwhite
#030303black
Card foreground
#030e11black
#f8fbfcghostwhite
Popover
#f8fbfcghostwhite
#000000black
Popover foreground
#041215black
#f4f9famintcream
Primary
#111b1dblack
#111b1dblack
Primary foreground
#9abcc6lightsteelblue
#9abcc6lightsteelblue
Secondary
#111d1ablack
#111d1ablack
Secondary foreground
#9ac6badarkgray
#9ac6badarkgray
Muted
#eff5f4whitesmoke
#0a100eblack
Muted foreground
#546d66dimgray
#92aba4darkgray
Accent
#11141dblack
#11141dblack
Accent foreground
#9aa6c6darkgray
#9aa6c6darkgray
Destructive
#7e1707maroon
#f44125orangered
Destructive foreground
#fbc4bblightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#111b1dblack
#111b1dblack

Contrast

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

Light mode
Text on background18.32:1AAA
Text on card18.43:1AAA
Primary button8.69:1AAA
Secondary button9.16:1AAA
Muted text5.07:1AA
Accent7.56:1AAA
Destructive6.82:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.88:1AAA
Primary button8.69:1AAA
Secondary button9.16:1AAA
Muted text7.86:1AAA
Accent7.56:1AAA
Destructive3.74:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 216.027);
  --foreground: oklch(0.169 0.022 216.314);
  --muted: oklch(0.966 0.007 177.507);
  --muted-foreground: oklch(0.514 0.032 175.781);
  --popover: oklch(0.986 0.004 216.027);
  --popover-foreground: oklch(0.169 0.022 216.314);
  --card: oklch(0.979 0.006 216.036);
  --card-foreground: oklch(0.154 0.019 214.769);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.212 0.016 216.719);
  --primary-foreground: oklch(0.774 0.04 216.395);
  --secondary: oklch(0.219 0.02 174.779);
  --secondary-foreground: oklch(0.792 0.05 175.731);
  --accent: oklch(0.193 0.02 267.798);
  --accent-foreground: oklch(0.727 0.048 268.199);
  --destructive: oklch(0.386 0.14 31.609);
  --destructive-foreground: oklch(0.867 0.065 28.507);
  --ring: oklch(0.212 0.016 216.719);
  --chart-1: oklch(0.212 0.016 216.719);
  --chart-2: oklch(0.219 0.02 174.779);
  --chart-3: oklch(0.193 0.02 267.798);
  --chart-4: oklch(0.257 0.025 174.479);
  --chart-5: oklch(0.213 0.017 216.844);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.005 216.034);
  --muted: oklch(0.165 0.01 175.771);
  --muted-foreground: oklch(0.719 0.03 176.46);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.005 216.034);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.986 0.004 216.026);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.212 0.016 216.719);
  --primary-foreground: oklch(0.774 0.04 216.395);
  --secondary: oklch(0.219 0.02 174.779);
  --secondary-foreground: oklch(0.792 0.05 175.731);
  --accent: oklch(0.193 0.02 267.798);
  --accent-foreground: oklch(0.727 0.048 268.199);
  --destructive: oklch(0.638 0.219 31.659);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.212 0.016 216.719);
  --chart-1: oklch(0.212 0.016 216.719);
  --chart-2: oklch(0.219 0.02 174.779);
  --chart-3: oklch(0.193 0.02 267.798);
  --chart-4: oklch(0.257 0.025 174.479);
  --chart-5: oklch(0.213 0.017 216.844);
}