Decrease for shadcn/ui

Decrease is a shadcn/ui theme built around a blue primary color (#8c9fee) with yellow accents (#eeda8c). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#8c9fee) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#ffffffwhite
#010204black
Foreground
#010204black
#fcfcfdwhite
Card
#ffffffwhite
#010204black
Card foreground
#010204black
#fcfcfdwhite
Popover
#ffffffwhite
#010204black
Popover foreground
#010204black
#fcfcfdwhite
Primary
#8c9feecornflowerblue
#8c9feecornflowerblue
Primary foreground
#09143emidnightblue
#09143emidnightblue
Secondary
#eeda8ckhaki
#eeda8ckhaki
Secondary foreground
#3e3409darkolivegreen
#3e3409darkolivegreen
Muted
#e7e1cagainsboro
#352f18darkslategray
Muted foreground
#6d6855dimgray
#aaa592darkgray
Accent
#eeda8ckhaki
#eeda8ckhaki
Accent foreground
#3e3409darkolivegreen
#3e3409darkolivegreen
Destructive
#a11502darkred
#fb2104red
Destructive foreground
#fedbd7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8c9feecornflowerblue
#8c9feecornflowerblue

Contrast

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

Light mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button7.04:1AAA
Secondary button8.85:1AAA
Muted text4.27:1AA Large
Accent8.85:1AAA
Destructive6.23:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button7.04:1AAA
Secondary button8.85:1AAA
Muted text5.42:1AA
Accent8.85:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.08 0.014 266.975);
  --muted: oklch(0.91 0.032 95.407);
  --muted-foreground: oklch(0.516 0.029 95.585);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.08 0.014 266.975);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.08 0.014 266.975);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.72 0.117 272.476);
  --primary-foreground: oklch(0.213 0.082 267.892);
  --secondary: oklch(0.888 0.101 95.783);
  --secondary-foreground: oklch(0.326 0.059 94.443);
  --accent: oklch(0.888 0.101 95.783);
  --accent-foreground: oklch(0.326 0.059 94.443);
  --destructive: oklch(0.453 0.175 30.984);
  --destructive-foreground: oklch(0.921 0.04 26.784);
  --ring: oklch(0.72 0.117 272.476);
  --chart-1: oklch(0.72 0.117 272.476);
  --chart-2: oklch(0.888 0.101 95.783);
  --chart-3: oklch(0.888 0.101 95.783);
  --chart-4: oklch(0.9 0.09 95.787);
  --chart-5: oklch(0.717 0.122 272.339);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.013 268.04);
  --foreground: oklch(0.992 0.001 275.021);
  --muted: oklch(0.305 0.038 95.74);
  --muted-foreground: oklch(0.721 0.027 95.429);
  --popover: oklch(0.081 0.013 268.04);
  --popover-foreground: oklch(0.992 0.001 275.021);
  --card: oklch(0.081 0.013 268.04);
  --card-foreground: oklch(0.992 0.001 275.021);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.72 0.117 272.476);
  --primary-foreground: oklch(0.213 0.082 267.892);
  --secondary: oklch(0.888 0.101 95.783);
  --secondary-foreground: oklch(0.326 0.059 94.443);
  --accent: oklch(0.888 0.101 95.783);
  --accent-foreground: oklch(0.326 0.059 94.443);
  --destructive: oklch(0.63 0.246 30.581);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.72 0.117 272.476);
  --chart-1: oklch(0.72 0.117 272.476);
  --chart-2: oklch(0.888 0.101 95.783);
  --chart-3: oklch(0.888 0.101 95.783);
  --chart-4: oklch(0.9 0.09 95.787);
  --chart-5: oklch(0.717 0.122 272.339);
}