Dividend for shadcn/ui

Dividend is a shadcn/ui theme built around a muted teal primary color (#455956) with muted yellow accents (#595645). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted teal primary (#455956) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefdwhite
#000000black
Foreground
#010907black
#f9fafaghostwhite
Card
#f7fdfcmintcream
#030303black
Card foreground
#010404black
#fcfdfdwhite
Popover
#fbfefdwhite
#000000black
Popover foreground
#010907black
#f9fafaghostwhite
Primary
#455956darkslategray
#455956darkslategray
Primary foreground
#e5ebealavender
#e5ebealavender
Secondary
#564559darkslategray
#564559darkslategray
Secondary foreground
#eae5eblavender
#eae5eblavender
Muted
#f3eaf5whitesmoke
#130a15black
Muted foreground
#4a444bdarkslategray
#bab4bbsilver
Accent
#595645darkolivegreen
#595645darkolivegreen
Accent foreground
#ebeae5linen
#ebeae5linen
Destructive
#8d190cdarkred
#dd2713crimson
Destructive foreground
#fbd4d0bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#455956darkslategray
#455956darkslategray

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.97:1AAA
Primary button6.16:1AA
Secondary button7.09:1AAA
Muted text8.07:1AAA
Accent6.15:1AA
Destructive6.78:1AA
Dark mode
Text on background20.08:1AAA
Text on card20.29:1AAA
Primary button6.16:1AA
Secondary button7.09:1AAA
Muted text9.56:1AAA
Accent6.15:1AA
Destructive4.81:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 184.226);
  --foreground: oklch(0.127 0.018 184.024);
  --muted: oklch(0.948 0.017 320.008);
  --muted-foreground: oklch(0.394 0.014 320.024);
  --popover: oklch(0.994 0.003 184.226);
  --popover-foreground: oklch(0.127 0.018 184.024);
  --card: oklch(0.989 0.006 184.139);
  --card-foreground: oklch(0.101 0.014 184.024);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.447 0.026 182.673);
  --primary-foreground: oklch(0.935 0.007 184.125);
  --secondary: oklch(0.415 0.04 320.071);
  --secondary-foreground: oklch(0.928 0.01 320.001);
  --accent: oklch(0.45 0.027 96.8);
  --accent-foreground: oklch(0.936 0.007 96.254);
  --destructive: oklch(0.417 0.152 30.509);
  --destructive-foreground: oklch(0.902 0.044 25.459);
  --ring: oklch(0.447 0.026 182.673);
  --chart-1: oklch(0.447 0.026 182.673);
  --chart-2: oklch(0.415 0.04 320.071);
  --chart-3: oklch(0.45 0.027 96.8);
  --chart-4: oklch(0.442 0.043 320.072);
  --chart-5: oklch(0.452 0.031 182.312);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.001 184.282);
  --muted: oklch(0.162 0.027 320.098);
  --muted-foreground: oklch(0.777 0.012 320.005);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.001 184.282);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 184.297);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.447 0.026 182.673);
  --primary-foreground: oklch(0.935 0.007 184.125);
  --secondary: oklch(0.415 0.04 320.071);
  --secondary-foreground: oklch(0.928 0.01 320.001);
  --accent: oklch(0.45 0.027 96.8);
  --accent-foreground: oklch(0.936 0.007 96.254);
  --destructive: oklch(0.578 0.217 30.514);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.447 0.026 182.673);
  --chart-1: oklch(0.447 0.026 182.673);
  --chart-2: oklch(0.415 0.04 320.071);
  --chart-3: oklch(0.45 0.027 96.8);
  --chart-4: oklch(0.442 0.043 320.072);
  --chart-5: oklch(0.452 0.031 182.312);
}