Modeling for shadcn/ui

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

Color palette

TokenLightDark
Background
#ffffffwhite
#040101black
Foreground
#000000black
#fdfcfcsnow
Card
#ffffffwhite
#040101black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#040101black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#d2cbcblightgrey
#363030darkslategray
Secondary foreground
#3a3131darkslategray
#cfc9c9lightgrey
Muted
#e0d7d7gainsboro
#281f1fblack
Muted foreground
#5c5151dimgray
#aea3a3darkgray
Accent
#d2cbcblightgrey
#363030darkslategray
Accent foreground
#3a3131darkslategray
#cfc9c9lightgrey
Destructive
#9e1210darkred
#ea312ecrimson
Destructive foreground
#fce4e3mistyrose
#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 card21.00:1AAA
Primary button7.37:1AAA
Secondary button7.88:1AAA
Muted text5.39:1AA
Accent7.88:1AAA
Destructive6.82:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button7.37:1AAA
Secondary button7.89:1AAA
Muted text6.54:1AA
Accent7.89:1AAA
Destructive4.20:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.886 0.01 17.35);
  --muted-foreground: oklch(0.447 0.014 17.679);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.847 0.009 17.327);
  --secondary-foreground: oklch(0.323 0.012 17.809);
  --accent: oklch(0.847 0.009 17.327);
  --accent-foreground: oklch(0.323 0.012 17.809);
  --destructive: oklch(0.446 0.172 28.428);
  --destructive-foreground: oklch(0.937 0.027 18.817);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.847 0.009 17.327);
  --chart-3: oklch(0.847 0.009 17.327);
  --chart-4: oklch(0.872 0.007 17.295);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.014 20.398);
  --foreground: oklch(0.992 0.001 17.171);
  --muted: oklch(0.251 0.014 18.159);
  --muted-foreground: oklch(0.725 0.012 17.436);
  --popover: oklch(0.083 0.014 20.398);
  --popover-foreground: oklch(0.992 0.001 17.171);
  --card: oklch(0.083 0.014 20.398);
  --card-foreground: oklch(0.992 0.001 17.171);
  --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.316 0.007 17.547);
  --secondary-foreground: oklch(0.841 0.006 17.269);
  --accent: oklch(0.316 0.007 17.547);
  --accent-foreground: oklch(0.841 0.006 17.269);
  --destructive: oklch(0.611 0.22 27.411);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.316 0.007 17.547);
  --chart-3: oklch(0.316 0.007 17.547);
  --chart-4: oklch(0.346 0.008 17.559);
  --chart-5: oklch(0 0 0);
}