Increase for shadcn/ui

Increase is a shadcn/ui theme built around an indigo primary color (#433d8a) with muted light indigo accents (#cbcad3). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#433d8a) on a neutral background (#010104).

Color palette

TokenLightDark
Background
#f8f8fcghostwhite
#010104black
Foreground
#030208black
#f6f6f8whitesmoke
Card
#f4f4fbwhitesmoke
#030208black
Card foreground
#010104black
#f9f9fbghostwhite
Popover
#f8f8fcghostwhite
#010104black
Popover foreground
#030208black
#f6f6f8whitesmoke
Primary
#433d8adarkslateblue
#433d8adarkslateblue
Primary foreground
#fcfbfdsnow
#fcfbfdsnow
Secondary
#e2e2e4gainsboro
#14141ablack
Secondary foreground
#47474ddarkslategray
#a7a5bbdarkgray
Muted
#dfdeedlavender
#131221black
Muted foreground
#454356darkslategray
#aba9bcdarkgray
Accent
#cbcad3lightgrey
#1f1e2fdarkslategray
Accent foreground
#31303bdarkslategray
#b4b1cdsilver
Destructive
#711805maroon
#f65531tomato
Destructive foreground
#fcbaaclightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#433d8adarkslateblue
#433d8adarkslateblue

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.04:1AAA
Primary button8.97:1AAA
Secondary button7.12:1AAA
Muted text7.21:1AAA
Accent7.97:1AAA
Destructive6.95:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.65:1AAA
Primary button8.97:1AAA
Secondary button7.64:1AAA
Muted text8.04:1AAA
Accent7.87:1AAA
Destructive6.29:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.006 290.13);
  --foreground: oklch(0.098 0.019 287.553);
  --muted: oklch(0.906 0.021 289.812);
  --muted-foreground: oklch(0.393 0.031 288.712);
  --popover: oklch(0.98 0.006 290.13);
  --popover-foreground: oklch(0.098 0.019 287.553);
  --card: oklch(0.969 0.009 290.069);
  --card-foreground: oklch(0.077 0.015 287.553);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.409 0.125 283.152);
  --primary-foreground: oklch(0.99 0.003 290.197);
  --secondary: oklch(0.913 0.003 290.184);
  --secondary-foreground: oklch(0.401 0.01 289.78);
  --accent: oklch(0.842 0.013 289.946);
  --accent-foreground: oklch(0.315 0.019 289.081);
  --destructive: oklch(0.361 0.125 33.641);
  --destructive-foreground: oklch(0.846 0.079 32.986);
  --ring: oklch(0.409 0.125 283.152);
  --chart-1: oklch(0.409 0.125 283.152);
  --chart-2: oklch(0.913 0.003 290.184);
  --chart-3: oklch(0.842 0.013 289.946);
  --chart-4: oklch(0.937 0.002 290.203);
  --chart-5: oklch(0.403 0.134 282.352);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.075 0.017 287.046);
  --foreground: oklch(0.975 0.003 290.188);
  --muted: oklch(0.191 0.031 286.938);
  --muted-foreground: oklch(0.743 0.026 289.573);
  --popover: oklch(0.075 0.017 287.046);
  --popover-foreground: oklch(0.975 0.003 290.188);
  --card: oklch(0.095 0.022 287.046);
  --card-foreground: oklch(0.983 0.002 290.208);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.409 0.125 283.152);
  --primary-foreground: oklch(0.99 0.003 290.197);
  --secondary: oklch(0.194 0.013 288.956);
  --secondary-foreground: oklch(0.73 0.032 289.413);
  --accent: oklch(0.244 0.032 287.611);
  --accent-foreground: oklch(0.772 0.04 289.256);
  --destructive: oklch(0.665 0.203 34.057);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.409 0.125 283.152);
  --chart-1: oklch(0.409 0.125 283.152);
  --chart-2: oklch(0.194 0.013 288.956);
  --chart-3: oklch(0.244 0.032 287.611);
  --chart-4: oklch(0.224 0.017 288.804);
  --chart-5: oklch(0.403 0.134 282.352);
}