Valuable for shadcn/ui

Valuable is a shadcn/ui theme built around a light yellow primary color (#f6f6ee) with light green accents (#f2f6ee). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#f6f6ee) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d0d02black
#fbfbf9snow
Card
#ffffffwhite
#000000black
Card foreground
#0d0d02black
#fbfbf9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#0d0d02black
#fbfbf9snow
Primary
#f6f6eewhitesmoke
#f6f6eewhitesmoke
Primary foreground
#32321adarkslategray
#32321adarkslategray
Secondary
#f6f2eewhitesmoke
#f6f2eewhitesmoke
Secondary foreground
#32271adarkslategray
#32271adarkslategray
Muted
#e4dcd2gainsboro
#2d241bblack
Muted foreground
#42403ddarkslategray
#c2bfbdsilver
Accent
#f2f6eewhitesmoke
#f2f6eewhitesmoke
Accent foreground
#26321adarkslategray
#26321adarkslategray
Destructive
#640907maroon
#ee2420crimson
Destructive foreground
#f8a6a5lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6f6eewhitesmoke
#f6f6eewhitesmoke

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.52:1AAA
Primary button12.05:1AAA
Secondary button13.12:1AAA
Muted text7.59:1AAA
Accent12.37:1AAA
Destructive6.95:1AA
Dark mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button12.05:1AAA
Secondary button13.12:1AAA
Muted text8.33:1AAA
Accent12.37:1AAA
Destructive4.27: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.156 0.027 109.829);
  --muted: oklch(0.898 0.016 69.473);
  --muted-foreground: oklch(0.372 0.006 69.499);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.156 0.027 109.829);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.156 0.027 109.829);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.971 0.01 107.364);
  --primary-foreground: oklch(0.31 0.039 109.284);
  --secondary: oklch(0.964 0.007 69.581);
  --secondary-foreground: oklch(0.281 0.027 68.223);
  --accent: oklch(0.968 0.011 129.249);
  --accent-foreground: oklch(0.299 0.044 130.886);
  --destructive: oklch(0.322 0.123 28.279);
  --destructive-foreground: oklch(0.806 0.097 20.504);
  --ring: oklch(0.971 0.01 107.364);
  --chart-1: oklch(0.971 0.01 107.364);
  --chart-2: oklch(0.964 0.007 69.581);
  --chart-3: oklch(0.968 0.011 129.249);
  --chart-4: oklch(0.986 0.003 69.623);
  --chart-5: oklch(0.972 0.011 107.383);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.003 107.224);
  --muted: oklch(0.267 0.021 68.614);
  --muted-foreground: oklch(0.807 0.005 69.594);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.988 0.003 107.224);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.988 0.003 107.224);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.971 0.01 107.364);
  --primary-foreground: oklch(0.31 0.039 109.284);
  --secondary: oklch(0.964 0.007 69.581);
  --secondary-foreground: oklch(0.281 0.027 68.223);
  --accent: oklch(0.968 0.011 129.249);
  --accent-foreground: oklch(0.299 0.044 130.886);
  --destructive: oklch(0.608 0.233 28.299);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.971 0.01 107.364);
  --chart-1: oklch(0.971 0.01 107.364);
  --chart-2: oklch(0.964 0.007 69.581);
  --chart-3: oklch(0.968 0.011 129.249);
  --chart-4: oklch(0.986 0.003 69.623);
  --chart-5: oklch(0.972 0.011 107.383);
}