Measly for shadcn/ui

Measly is a shadcn/ui theme built around an orange primary color (#9d7d48) with green accents (#939d48). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the orange primary (#9d7d48) on a neutral background (#080603).

Color palette

TokenLightDark
Background
#fdfbf7snow
#080603black
Foreground
#000000black
#f9f8f6whitesmoke
Card
#fdfbf7snow
#080603black
Card foreground
#000000black
#f9f8f6whitesmoke
Popover
#fdfbf7snow
#080603black
Popover foreground
#000000black
#f9f8f6whitesmoke
Primary
#9d7d48peru
#9d7d48peru
Primary foreground
#000000black
#000000black
Secondary
#9d5248sienna
#9d5248sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2d2d0lightgrey
#2f201dblack
Muted foreground
#665d5cdimgray
#a39a99darkgray
Accent
#939d48yellowgreen
#939d48yellowgreen
Accent foreground
#101108black
#101108black
Destructive
#c63c01firebrick
#fe6625tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9d7d48peru
#9d7d48peru

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button5.44:1AA
Secondary button5.60:1AA
Muted text4.36:1AA Large
Accent6.49:1AA
Destructive5.18:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button5.44:1AA
Secondary button5.60:1AA
Muted text5.69:1AA
Accent6.49:1AA
Destructive7.13:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 79.926);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.876 0.018 26.584);
  --muted-foreground: oklch(0.487 0.011 26.608);
  --popover: oklch(0.987 0.005 79.926);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 79.926);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.608 0.081 78.218);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.527 0.102 28.788);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.67 0.11 114.948);
  --accent-foreground: oklch(0.175 0.019 113.679);
  --destructive: oklch(0.554 0.183 37.551);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.608 0.081 78.218);
  --chart-1: oklch(0.608 0.081 78.218);
  --chart-2: oklch(0.527 0.102 28.788);
  --chart-3: oklch(0.67 0.11 114.948);
  --chart-4: oklch(0.552 0.107 28.809);
  --chart-5: oklch(0.613 0.086 77.918);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.012 85.924);
  --foreground: oklch(0.979 0.003 79.929);
  --muted: oklch(0.26 0.025 27.362);
  --muted-foreground: oklch(0.694 0.01 26.542);
  --popover: oklch(0.121 0.012 85.924);
  --popover-foreground: oklch(0.979 0.003 79.929);
  --card: oklch(0.121 0.012 85.924);
  --card-foreground: oklch(0.979 0.003 79.929);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.608 0.081 78.218);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.527 0.102 28.788);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.67 0.11 114.948);
  --accent-foreground: oklch(0.175 0.019 113.679);
  --destructive: oklch(0.695 0.199 40.501);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.608 0.081 78.218);
  --chart-1: oklch(0.608 0.081 78.218);
  --chart-2: oklch(0.527 0.102 28.788);
  --chart-3: oklch(0.67 0.11 114.948);
  --chart-4: oklch(0.552 0.107 28.809);
  --chart-5: oklch(0.613 0.086 77.918);
}