Valuable for shadcn/ui

Valuable is a shadcn/ui theme built around a light purple primary color (#f2c9ec) with light pink accents (#f2c9d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f2c9ec) on a neutral background (#070307).

Color palette

TokenLightDark
Background
#ffffffwhite
#070307black
Foreground
#080207black
#fdfbfdsnow
Card
#ffffffwhite
#070307black
Card foreground
#080207black
#fdfbfdsnow
Popover
#ffffffwhite
#070307black
Popover foreground
#080207black
#fdfbfdsnow
Primary
#f2c9ecmistyrose
#f2c9ecmistyrose
Primary foreground
#701a61purple
#701a61purple
Secondary
#e5c9f2lavender
#e5c9f2lavender
Secondary foreground
#531a70indigo
#531a70indigo
Muted
#e0d7e5gainsboro
#241a28black
Muted foreground
#666567dimgray
#99989adarkgray
Accent
#f2c9d7pink
#f2c9d7pink
Accent foreground
#701a37brown
#701a37brown
Destructive
#ab1f0dfirebrick
#ef3c25orangered
Destructive foreground
#feeeecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2c9ecmistyrose
#f2c9ecmistyrose

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.54:1AAA
Primary button7.15:1AAA
Secondary button7.99:1AAA
Muted text4.13:1AA Large
Accent7.48:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button7.15:1AAA
Secondary button7.99:1AAA
Muted text5.84:1AA
Accent7.48:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.106 0.028 332.046);
  --muted: oklch(0.89 0.022 314.705);
  --muted-foreground: oklch(0.509 0.004 314.793);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.106 0.028 332.046);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.106 0.028 332.046);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.882 0.064 331.772);
  --primary-foreground: oklch(0.388 0.144 335.65);
  --secondary: oklch(0.873 0.063 314.477);
  --secondary-foreground: oklch(0.353 0.142 311.696);
  --accent: oklch(0.876 0.05 356.165);
  --accent-foreground: oklch(0.37 0.12 5.3);
  --destructive: oklch(0.48 0.177 30.995);
  --destructive-foreground: oklch(0.961 0.017 26.566);
  --ring: oklch(0.882 0.064 331.772);
  --chart-1: oklch(0.882 0.064 331.772);
  --chart-2: oklch(0.873 0.063 314.477);
  --chart-3: oklch(0.876 0.05 356.165);
  --chart-4: oklch(0.902 0.048 314.568);
  --chart-5: oklch(0.882 0.067 331.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.02 331.684);
  --foreground: oklch(0.991 0.003 330.863);
  --muted: oklch(0.236 0.031 314.182);
  --muted-foreground: oklch(0.681 0.003 314.803);
  --popover: oklch(0.109 0.02 331.684);
  --popover-foreground: oklch(0.991 0.003 330.863);
  --card: oklch(0.109 0.02 331.684);
  --card-foreground: oklch(0.991 0.003 330.863);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.882 0.064 331.772);
  --primary-foreground: oklch(0.388 0.144 335.65);
  --secondary: oklch(0.873 0.063 314.477);
  --secondary-foreground: oklch(0.353 0.142 311.696);
  --accent: oklch(0.876 0.05 356.165);
  --accent-foreground: oklch(0.37 0.12 5.3);
  --destructive: oklch(0.626 0.218 31.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.882 0.064 331.772);
  --chart-1: oklch(0.882 0.064 331.772);
  --chart-2: oklch(0.873 0.063 314.477);
  --chart-3: oklch(0.876 0.05 356.165);
  --chart-4: oklch(0.902 0.048 314.568);
  --chart-5: oklch(0.882 0.067 331.818);
}