Commission for shadcn/ui

Commission is a shadcn/ui theme built around a blue primary color (#8db3e7) with muted light blue accents (#bbc3ce). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the blue primary (#8db3e7) on a blue-tinted background (#04070b).

Color palette

TokenLightDark
Background
#fbfcfewhite
#04070bblack
Foreground
#040911black
#f5f7f9whitesmoke
Card
#fbfcfewhite
#04070bblack
Card foreground
#040911black
#f5f7f9whitesmoke
Popover
#fbfcfewhite
#04070bblack
Popover foreground
#040911black
#f5f7f9whitesmoke
Primary
#8db3e7skyblue
#8db3e7skyblue
Primary foreground
#0c1e37midnightblue
#0c1e37midnightblue
Secondary
#d7dbdfgainsboro
#2c2e30darkslategray
Secondary foreground
#3b414adarkslategray
#c4c6casilver
Muted
#d7d8dbgainsboro
#242628darkslategray
Muted foreground
#54585fdimgray
#a0a5abdarkgray
Accent
#bbc3cesilver
#3f4650darkslategray
Accent foreground
#242a32darkslategray
#dde0e4gainsboro
Destructive
#981e10brown
#e9422ftomato
Destructive foreground
#fce2dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8db3e7skyblue
#8db3e7skyblue

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button7.73:1AAA
Secondary button7.38:1AAA
Muted text5.02:1AA
Accent8.11:1AAA
Destructive6.75:1AA
Dark mode
Text on background18.78:1AAA
Text on card18.78:1AAA
Primary button7.73:1AAA
Secondary button8.01:1AAA
Muted text6.11:1AA
Accent7.20:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 256.662);
  --foreground: oklch(0.138 0.02 250.735);
  --muted: oklch(0.883 0.004 256.668);
  --muted-foreground: oklch(0.46 0.012 256.738);
  --popover: oklch(0.991 0.002 256.662);
  --popover-foreground: oklch(0.138 0.02 250.735);
  --card: oklch(0.991 0.002 256.662);
  --card-foreground: oklch(0.138 0.02 250.735);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.758 0.086 256.854);
  --primary-foreground: oklch(0.233 0.054 257.193);
  --secondary: oklch(0.889 0.007 256.684);
  --secondary-foreground: oklch(0.373 0.017 256.78);
  --accent: oklch(0.814 0.018 256.728);
  --accent-foreground: oklch(0.284 0.017 256.803);
  --destructive: oklch(0.443 0.16 30.489);
  --destructive-foreground: oklch(0.932 0.029 25.273);
  --ring: oklch(0.758 0.086 256.854);
  --chart-1: oklch(0.758 0.086 256.854);
  --chart-2: oklch(0.889 0.007 256.684);
  --chart-3: oklch(0.814 0.018 256.728);
  --chart-4: oklch(0.913 0.006 256.677);
  --chart-5: oklch(0.757 0.09 256.859);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.127 0.012 250.503);
  --foreground: oklch(0.975 0.004 256.668);
  --muted: oklch(0.268 0.005 256.716);
  --muted-foreground: oklch(0.72 0.01 256.706);
  --popover: oklch(0.127 0.012 250.503);
  --popover-foreground: oklch(0.975 0.004 256.668);
  --card: oklch(0.127 0.012 250.503);
  --card-foreground: oklch(0.975 0.004 256.668);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.758 0.086 256.854);
  --primary-foreground: oklch(0.233 0.054 257.193);
  --secondary: oklch(0.298 0.006 256.719);
  --secondary-foreground: oklch(0.827 0.005 256.677);
  --accent: oklch(0.391 0.019 256.788);
  --accent-foreground: oklch(0.905 0.007 256.681);
  --destructive: oklch(0.623 0.207 30.174);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.758 0.086 256.854);
  --chart-1: oklch(0.758 0.086 256.854);
  --chart-2: oklch(0.298 0.006 256.719);
  --chart-3: oklch(0.391 0.019 256.788);
  --chart-4: oklch(0.328 0.006 256.721);
  --chart-5: oklch(0.757 0.09 256.859);
}