Submissive for shadcn/ui

Submissive is a shadcn/ui theme built around an orange primary color (#db9129) with green accents (#ccdb29). The light mode uses a neutral background (#ffffff). Dark mode keeps the orange primary (#db9129) on an orange-tinted background (#0b0804).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0804black
Foreground
#080602black
#fdfdfcwhite
Card
#ffffffwhite
#0b0804black
Card foreground
#080602black
#fdfdfcwhite
Popover
#ffffffwhite
#0b0804black
Popover foreground
#080602black
#fdfdfcwhite
Primary
#db9129goldenrod
#db9129goldenrod
Primary foreground
#301f08black
#301f08black
Secondary
#db3829crimson
#db3829crimson
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eee8e7linen
#181111black
Muted foreground
#4d4747darkslategray
#b8b3b2darkgray
Accent
#ccdb29greenyellow
#ccdb29greenyellow
Accent foreground
#2d3008black
#2d3008black
Destructive
#a43c04saddlebrown
#f96210orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#db9129goldenrod
#db9129goldenrod

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.09:1AA
Secondary button4.56:1AA
Muted text7.49:1AAA
Accent8.91:1AAA
Destructive6.49:1AA
Dark mode
Text on background19.60:1AAA
Text on card19.60:1AAA
Primary button6.09:1AA
Secondary button4.56:1AA
Muted text8.96:1AAA
Accent8.91:1AAA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.014 84.206);
  --muted: oklch(0.935 0.007 23.658);
  --muted-foreground: oklch(0.405 0.007 23.765);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.014 84.206);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.014 84.206);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.715 0.142 69.696);
  --primary-foreground: oklch(0.256 0.044 72.629);
  --secondary: oklch(0.589 0.201 29.612);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.851 0.183 114.709);
  --accent-foreground: oklch(0.297 0.058 114.069);
  --destructive: oklch(0.497 0.148 41.701);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.142 69.696);
  --chart-1: oklch(0.715 0.142 69.696);
  --chart-2: oklch(0.589 0.201 29.612);
  --chart-3: oklch(0.851 0.183 114.709);
  --chart-4: oklch(0.605 0.192 29.101);
  --chart-5: oklch(0.72 0.146 69.102);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.013 82.441);
  --foreground: oklch(0.993 0.001 76.646);
  --muted: oklch(0.188 0.011 24.275);
  --muted-foreground: oklch(0.77 0.006 23.66);
  --popover: oklch(0.138 0.013 82.441);
  --popover-foreground: oklch(0.993 0.001 76.646);
  --card: oklch(0.138 0.013 82.441);
  --card-foreground: oklch(0.993 0.001 76.646);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.715 0.142 69.696);
  --primary-foreground: oklch(0.256 0.044 72.629);
  --secondary: oklch(0.589 0.201 29.612);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.851 0.183 114.709);
  --accent-foreground: oklch(0.297 0.058 114.069);
  --destructive: oklch(0.681 0.2 42.014);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.715 0.142 69.696);
  --chart-1: oklch(0.715 0.142 69.696);
  --chart-2: oklch(0.589 0.201 29.612);
  --chart-3: oklch(0.851 0.183 114.709);
  --chart-4: oklch(0.605 0.192 29.101);
  --chart-5: oklch(0.72 0.146 69.102);
}