Dividend for shadcn/ui

Dividend is a shadcn/ui theme built around a deep violet primary color (#39284d) with deep purple accents (#4c284d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#39284d) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#ffffffwhite
#020204black
Foreground
#050209black
#faf8fcghostwhite
Card
#fcfcfcsnow
#050307black
Card foreground
#020104black
#fcfcfdwhite
Popover
#ffffffwhite
#020204black
Popover foreground
#050209black
#faf8fcghostwhite
Primary
#39284ddarkslategray
#39284ddarkslategray
Primary foreground
#d3c6e1thistle
#d3c6e1thistle
Secondary
#282a4ddarkslategray
#282a4ddarkslategray
Secondary foreground
#c6c7e1thistle
#c6c7e1thistle
Muted
#d3d4e3gainsboro
#1c1c2cblack
Muted foreground
#52536bdimgray
#9495addarkgray
Accent
#4c284ddarkslategray
#4c284ddarkslategray
Accent foreground
#e0c6e1thistle
#e0c6e1thistle
Destructive
#cb1501firebrick
#fe442ftomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#39284ddarkslategray
#39284ddarkslategray

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.37:1AAA
Primary button8.11:1AAA
Secondary button8.29:1AAA
Muted text5.09:1AA
Accent7.74:1AAA
Destructive5.75:1AA
Dark mode
Text on background19.67:1AAA
Text on card20.02:1AAA
Primary button8.11:1AAA
Secondary button8.29:1AAA
Muted text5.70:1AA
Accent7.74:1AAA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.028 308.999);
  --muted: oklch(0.874 0.021 284.381);
  --muted-foreground: oklch(0.45 0.039 283.184);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.028 308.999);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.078 0.022 308.999);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.316 0.066 304.404);
  --primary-foreground: oklch(0.846 0.039 306.545);
  --secondary: oklch(0.301 0.063 280.417);
  --secondary-foreground: oklch(0.837 0.036 284.021);
  --accent: oklch(0.34 0.076 325.892);
  --accent-foreground: oklch(0.857 0.046 324.955);
  --destructive: oklch(0.535 0.211 30.426);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.316 0.066 304.404);
  --chart-1: oklch(0.316 0.066 304.404);
  --chart-2: oklch(0.301 0.063 280.417);
  --chart-3: oklch(0.34 0.076 325.892);
  --chart-4: oklch(0.325 0.07 280.281);
  --chart-5: oklch(0.314 0.072 304.083);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 308.07);
  --foreground: oklch(0.982 0.005 307.051);
  --muted: oklch(0.235 0.029 282.383);
  --muted-foreground: oklch(0.678 0.035 283.865);
  --popover: oklch(0.084 0.012 308.07);
  --popover-foreground: oklch(0.982 0.005 307.051);
  --card: oklch(0.106 0.015 308.07);
  --card-foreground: oklch(0.991 0.002 307.082);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.316 0.066 304.404);
  --primary-foreground: oklch(0.846 0.039 306.545);
  --secondary: oklch(0.301 0.063 280.417);
  --secondary-foreground: oklch(0.837 0.036 284.021);
  --accent: oklch(0.34 0.076 325.892);
  --accent-foreground: oklch(0.857 0.046 324.955);
  --destructive: oklch(0.659 0.225 30.302);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.316 0.066 304.404);
  --chart-1: oklch(0.316 0.066 304.404);
  --chart-2: oklch(0.301 0.063 280.417);
  --chart-3: oklch(0.34 0.076 325.892);
  --chart-4: oklch(0.325 0.07 280.281);
  --chart-5: oklch(0.314 0.072 304.083);
}