Submissive for shadcn/ui

Submissive is a shadcn/ui theme built around a muted indigo primary color (#9796a6) with muted yellow accents (#a5a696). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted indigo primary (#9796a6) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#020104black
Foreground
#020208black
#fcfcfdwhite
Card
#f8f8fcghostwhite
#030307black
Card foreground
#010104black
#ffffffwhite
Popover
#fcfcfdwhite
#020104black
Popover foreground
#020208black
#fcfcfdwhite
Primary
#9796a6darkgray
#9796a6darkgray
Primary foreground
#050506black
#050506black
Secondary
#a5a696darkgray
#a5a696darkgray
Secondary foreground
#050605black
#050605black
Muted
#ebecdabeige
#242513black
Muted foreground
#565747darkolivegreen
#b7b8a8darkgray
Accent
#a5a696darkgray
#a5a696darkgray
Accent foreground
#050605black
#050605black
Destructive
#8b0d09darkred
#e1150ered
Destructive foreground
#fccccapink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9796a6darkgray
#9796a6darkgray

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card19.70:1AAA
Primary button7.04:1AAA
Secondary button8.19:1AAA
Muted text6.14:1AA
Accent8.19:1AAA
Destructive6.77:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.58:1AAA
Primary button7.04:1AAA
Secondary button8.19:1AAA
Muted text7.73:1AAA
Accent8.19:1AAA
Destructive4.85:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 289.435);
  --foreground: oklch(0.094 0.023 285.706);
  --muted: oklch(0.937 0.024 109.948);
  --muted-foreground: oklch(0.451 0.025 110.486);
  --popover: oklch(0.99 0.002 289.435);
  --popover-foreground: oklch(0.094 0.023 285.706);
  --card: oklch(0.981 0.005 289.391);
  --card-foreground: oklch(0.074 0.018 285.706);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.68 0.023 288.846);
  --primary-foreground: oklch(0.113 0.003 289.156);
  --secondary: oklch(0.719 0.022 110.04);
  --secondary-foreground: oklch(0.118 0.003 109.771);
  --accent: oklch(0.719 0.022 110.04);
  --accent-foreground: oklch(0.118 0.003 109.771);
  --destructive: oklch(0.406 0.158 28.983);
  --destructive-foreground: oklch(0.886 0.054 20.541);
  --ring: oklch(0.68 0.023 288.846);
  --chart-1: oklch(0.68 0.023 288.846);
  --chart-2: oklch(0.719 0.022 110.04);
  --chart-3: oklch(0.719 0.022 110.04);
  --chart-4: oklch(0.742 0.02 109.977);
  --chart-5: oklch(0.673 0.031 288.589);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.08 0.012 287.284);
  --foreground: oklch(0.991 0.002 289.439);
  --muted: oklch(0.258 0.031 111.648);
  --muted-foreground: oklch(0.777 0.022 110);
  --popover: oklch(0.08 0.012 287.284);
  --popover-foreground: oklch(0.991 0.002 289.439);
  --card: oklch(0.101 0.015 287.284);
  --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.68 0.023 288.846);
  --primary-foreground: oklch(0.113 0.003 289.156);
  --secondary: oklch(0.719 0.022 110.04);
  --secondary-foreground: oklch(0.118 0.003 109.771);
  --accent: oklch(0.719 0.022 110.04);
  --accent-foreground: oklch(0.118 0.003 109.771);
  --destructive: oklch(0.578 0.229 29.183);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.68 0.023 288.846);
  --chart-1: oklch(0.68 0.023 288.846);
  --chart-2: oklch(0.719 0.022 110.04);
  --chart-3: oklch(0.719 0.022 110.04);
  --chart-4: oklch(0.742 0.02 109.977);
  --chart-5: oklch(0.673 0.031 288.589);
}