Modeling for shadcn/ui

Modeling is a shadcn/ui theme built around a violet primary color (#bda1de) with green accents (#a1debd). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#bda1de) on a violet-tinted background (#0a070d).

Color palette

TokenLightDark
Background
#faf8fcghostwhite
#0a070dblack
Foreground
#050109black
#ffffffwhite
Card
#faf8fcghostwhite
#0a070dblack
Card foreground
#050109black
#ffffffwhite
Popover
#faf8fcghostwhite
#0a070dblack
Popover foreground
#050109black
#ffffffwhite
Primary
#bda1deplum
#bda1deplum
Primary foreground
#251439midnightblue
#251439midnightblue
Secondary
#debda1tan
#debda1tan
Secondary foreground
#392514black
#392514black
Muted
#e8e5e3gainsboro
#1c1917black
Muted foreground
#6d665fdimgray
#a09992darkgray
Accent
#a1debdlightblue
#a1debdlightblue
Accent foreground
#143925darkslategray
#143925darkslategray
Destructive
#b93d13firebrick
#de4917chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bda1deplum
#bda1deplum

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button7.50:1AAA
Secondary button8.22:1AAA
Muted text4.51:1AA
Accent8.33:1AAA
Destructive5.63:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button7.50:1AAA
Secondary button8.22:1AAA
Muted text6.20:1AA
Accent8.33:1AAA
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 307.029);
  --foreground: oklch(0.096 0.03 309.19);
  --muted: oklch(0.924 0.003 64.042);
  --muted-foreground: oklch(0.514 0.014 63.731);
  --popover: oklch(0.981 0.007 307.029);
  --popover-foreground: oklch(0.096 0.03 309.19);
  --card: oklch(0.981 0.007 307.029);
  --card-foreground: oklch(0.096 0.03 309.19);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.754 0.091 305.615);
  --primary-foreground: oklch(0.235 0.07 302.969);
  --secondary: oklch(0.82 0.054 63.157);
  --secondary-foreground: oklch(0.284 0.041 61.203);
  --accent: oklch(0.85 0.077 160.884);
  --accent-foreground: oklch(0.31 0.055 157.455);
  --destructive: oklch(0.533 0.167 36.936);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.754 0.091 305.615);
  --chart-1: oklch(0.754 0.091 305.615);
  --chart-2: oklch(0.82 0.054 63.157);
  --chart-3: oklch(0.85 0.077 160.884);
  --chart-4: oklch(0.842 0.047 63.316);
  --chart-5: oklch(0.752 0.097 305.512);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.016 306.844);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.217 0.005 63.791);
  --muted-foreground: oklch(0.686 0.013 63.843);
  --popover: oklch(0.136 0.016 306.844);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.016 306.844);
  --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.754 0.091 305.615);
  --primary-foreground: oklch(0.235 0.07 302.969);
  --secondary: oklch(0.82 0.054 63.157);
  --secondary-foreground: oklch(0.284 0.041 61.203);
  --accent: oklch(0.85 0.077 160.884);
  --accent-foreground: oklch(0.31 0.055 157.455);
  --destructive: oklch(0.609 0.193 36.759);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.754 0.091 305.615);
  --chart-1: oklch(0.754 0.091 305.615);
  --chart-2: oklch(0.82 0.054 63.157);
  --chart-3: oklch(0.85 0.077 160.884);
  --chart-4: oklch(0.842 0.047 63.316);
  --chart-5: oklch(0.752 0.097 305.512);
}