Commission for shadcn/ui

Commission is a shadcn/ui theme built around a violet primary color (#854fba) with teal accents (#4fba85). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#854fba) on a violet-tinted background (#0a0510).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0510black
Foreground
#0d0317black
#fcfcfdwhite
Card
#ffffffwhite
#0a0510black
Card foreground
#0d0317black
#fcfcfdwhite
Popover
#ffffffwhite
#0a0510black
Popover foreground
#0d0317black
#fcfcfdwhite
Primary
#854fbaslateblue
#854fbaslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ba854fperu
#ba854fperu
Secondary foreground
#000000black
#000000black
Muted
#e2dbd4gainsboro
#2b241dblack
Muted foreground
#525251darkslategray
#aeadaddarkgray
Accent
#4fba85mediumseagreen
#4fba85mediumseagreen
Accent foreground
#112c1fblack
#112c1fblack
Destructive
#c82014firebrick
#ea362acrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#854fbaslateblue
#854fbaslateblue

Contrast

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

Light mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button5.50:1AA
Secondary button6.54:1AA
Muted text5.72:1AA
Accent6.21:1AA
Destructive5.74:1AA
Dark mode
Text on background19.67:1AAA
Text on card19.67:1AAA
Primary button5.50:1AA
Secondary button6.54:1AA
Muted text6.85:1AA
Accent6.21:1AA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.049 306.604);
  --muted: oklch(0.896 0.012 67.667);
  --muted-foreground: oklch(0.438 0.002 67.779);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.133 0.049 306.604);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.133 0.049 306.604);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.539 0.166 304.478);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.658 0.097 64.753);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.713 0.128 158.758);
  --accent-foreground: oklch(0.267 0.042 159.875);
  --destructive: oklch(0.534 0.202 29.634);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.539 0.166 304.478);
  --chart-1: oklch(0.539 0.166 304.478);
  --chart-2: oklch(0.658 0.097 64.753);
  --chart-3: oklch(0.713 0.128 158.758);
  --chart-4: oklch(0.679 0.091 65.272);
  --chart-5: oklch(0.536 0.176 304.11);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.028 308.231);
  --foreground: oklch(0.991 0.002 308.441);
  --muted: oklch(0.265 0.017 66.995);
  --muted-foreground: oklch(0.749 0.001 67.8);
  --popover: oklch(0.13 0.028 308.231);
  --popover-foreground: oklch(0.991 0.002 308.441);
  --card: oklch(0.13 0.028 308.231);
  --card-foreground: oklch(0.991 0.002 308.441);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.539 0.166 304.478);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.658 0.097 64.753);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.713 0.128 158.758);
  --accent-foreground: oklch(0.267 0.042 159.875);
  --destructive: oklch(0.613 0.217 29.159);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.539 0.166 304.478);
  --chart-1: oklch(0.539 0.166 304.478);
  --chart-2: oklch(0.658 0.097 64.753);
  --chart-3: oklch(0.713 0.128 158.758);
  --chart-4: oklch(0.679 0.091 65.272);
  --chart-5: oklch(0.536 0.176 304.11);
}