Spending for shadcn/ui

Spending is a shadcn/ui theme built around a pink primary color (#ca779f) with teal accents (#77caa2). The light mode uses a neutral background (#fcf7fa). Dark mode keeps the pink primary (#ca779f) on a pink-tinted background (#0c0408).

Color palette

TokenLightDark
Background
#fcf7fasnow
#0c0408black
Foreground
#0c0308black
#f8f6f7whitesmoke
Card
#fcf7fasnow
#0c0408black
Card foreground
#0c0308black
#f8f6f7whitesmoke
Popover
#fcf7fasnow
#0c0408black
Popover foreground
#0c0308black
#f8f6f7whitesmoke
Primary
#ca779fpalevioletred
#ca779fpalevioletred
Primary foreground
#0b0408black
#0b0408black
Secondary
#77caa2mediumaquamarine
#77caa2mediumaquamarine
Secondary foreground
#040b08black
#040b08black
Muted
#ebefedwhitesmoke
#101412black
Muted foreground
#4a4f4ddarkslategray
#b0b5b3darkgray
Accent
#77caa2mediumaquamarine
#77caa2mediumaquamarine
Accent foreground
#040b08black
#040b08black
Destructive
#9c160ddarkred
#de2012crimson
Destructive foreground
#fce0demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ca779fpalevioletred
#ca779fpalevioletred

Contrast

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

Light mode
Text on background19.27:1AAA
Text on card19.27:1AAA
Primary button6.43:1AA
Secondary button10.19:1AAA
Muted text7.21:1AAA
Accent10.19:1AAA
Destructive6.66:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button6.43:1AA
Secondary button10.19:1AAA
Muted text8.93:1AAA
Accent10.19:1AAA
Destructive4.87:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 346.181);
  --foreground: oklch(0.122 0.024 346.093);
  --muted: oklch(0.949 0.006 165.855);
  --muted-foreground: oklch(0.422 0.007 165.57);
  --popover: oklch(0.982 0.006 346.181);
  --popover-foreground: oklch(0.122 0.024 346.093);
  --card: oklch(0.982 0.006 346.181);
  --card-foreground: oklch(0.122 0.024 346.093);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.672 0.114 350.228);
  --primary-foreground: oklch(0.124 0.018 345.937);
  --secondary: oklch(0.775 0.101 161.825);
  --secondary-foreground: oklch(0.14 0.015 166.05);
  --accent: oklch(0.775 0.101 161.825);
  --accent-foreground: oklch(0.14 0.015 166.05);
  --destructive: oklch(0.444 0.168 29.639);
  --destructive-foreground: oklch(0.929 0.031 22.622);
  --ring: oklch(0.672 0.114 350.228);
  --chart-1: oklch(0.672 0.114 350.228);
  --chart-2: oklch(0.775 0.101 161.825);
  --chart-3: oklch(0.775 0.101 161.825);
  --chart-4: oklch(0.793 0.093 162.324);
  --chart-5: oklch(0.67 0.122 350.521);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.021 346.027);
  --foreground: oklch(0.976 0.002 346.085);
  --muted: oklch(0.186 0.009 164.733);
  --muted-foreground: oklch(0.768 0.006 165.807);
  --popover: oklch(0.123 0.021 346.027);
  --popover-foreground: oklch(0.976 0.002 346.085);
  --card: oklch(0.123 0.021 346.027);
  --card-foreground: oklch(0.976 0.002 346.085);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.672 0.114 350.228);
  --primary-foreground: oklch(0.124 0.018 345.937);
  --secondary: oklch(0.775 0.101 161.825);
  --secondary-foreground: oklch(0.14 0.015 166.05);
  --accent: oklch(0.775 0.101 161.825);
  --accent-foreground: oklch(0.14 0.015 166.05);
  --destructive: oklch(0.575 0.222 29.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.672 0.114 350.228);
  --chart-1: oklch(0.672 0.114 350.228);
  --chart-2: oklch(0.775 0.101 161.825);
  --chart-3: oklch(0.775 0.101 161.825);
  --chart-4: oklch(0.793 0.093 162.324);
  --chart-5: oklch(0.67 0.122 350.521);
}