Decrease for shadcn/ui

Decrease is a shadcn/ui theme built around a vivid cyan primary color (#72c9ee) with muted cyan accents (#aec3cb). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the vivid cyan primary (#72c9ee) on a cyan-tinted background (#05090a).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#05090ablack
Foreground
#020709black
#ffffffwhite
Card
#f8fbfcghostwhite
#070b0dblack
Card foreground
#010304black
#ffffffwhite
Popover
#fbfdfdwhite
#05090ablack
Popover foreground
#020709black
#ffffffwhite
Primary
#72c9eeskyblue
#72c9eeskyblue
Primary foreground
#051e29black
#051e29black
Secondary
#c8d1d5lightgrey
#2b2f31darkslategray
Secondary foreground
#2e393ddarkslategray
#c4c8casilver
Muted
#dde9eelavender
#111d22black
Muted foreground
#3a454adarkslategray
#b5c0c5silver
Accent
#aec3cblightsteelblue
#3d484ddarkslategray
Accent foreground
#1c272cdarkslategray
#dadfe2gainsboro
Destructive
#cd1b0efirebrick
#ef2415orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#72c9eeskyblue
#72c9eeskyblue

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.83:1AAA
Primary button9.20:1AAA
Secondary button7.66:1AAA
Muted text7.96:1AAA
Accent8.30:1AAA
Destructive5.58:1AA
Dark mode
Text on background20.02:1AAA
Text on card19.71:1AAA
Primary button9.20:1AAA
Secondary button8.02:1AAA
Muted text9.25:1AAA
Accent6.99:1AA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 225.002);
  --foreground: oklch(0.118 0.015 218.238);
  --muted: oklch(0.926 0.015 225.169);
  --muted-foreground: oklch(0.384 0.017 225.566);
  --popover: oklch(0.993 0.002 225.002);
  --popover-foreground: oklch(0.118 0.015 218.238);
  --card: oklch(0.985 0.004 225.022);
  --card-foreground: oklch(0.094 0.012 218.238);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.794 0.099 227.788);
  --primary-foreground: oklch(0.222 0.037 229.509);
  --secondary: oklch(0.855 0.012 225.142);
  --secondary-foreground: oklch(0.335 0.016 225.651);
  --accent: oklch(0.803 0.026 225.386);
  --accent-foreground: oklch(0.264 0.018 226.019);
  --destructive: oklch(0.542 0.21 29.732);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.099 227.788);
  --chart-1: oklch(0.794 0.099 227.788);
  --chart-2: oklch(0.855 0.012 225.142);
  --chart-3: oklch(0.803 0.026 225.386);
  --chart-4: oklch(0.879 0.01 225.111);
  --chart-5: oklch(0.796 0.102 227.95);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.134 0.008 221.681);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.222 0.02 226.586);
  --muted-foreground: oklch(0.8 0.014 225.189);
  --popover: oklch(0.134 0.008 221.681);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.009 224.263);
  --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.794 0.099 227.788);
  --primary-foreground: oklch(0.222 0.037 229.509);
  --secondary: oklch(0.302 0.006 225.228);
  --secondary-foreground: oklch(0.83 0.006 225.063);
  --accent: oklch(0.394 0.017 225.571);
  --accent-foreground: oklch(0.901 0.007 225.068);
  --destructive: oklch(0.609 0.234 29.704);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.794 0.099 227.788);
  --chart-1: oklch(0.794 0.099 227.788);
  --chart-2: oklch(0.302 0.006 225.228);
  --chart-3: oklch(0.394 0.017 225.571);
  --chart-4: oklch(0.333 0.007 225.237);
  --chart-5: oklch(0.796 0.102 227.95);
}