Measure for shadcn/ui

Measure is a shadcn/ui theme built around a vivid green primary color (#c8eb6f) with vivid purple accents (#eb6fc8). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid green primary (#c8eb6f) on a green-tinted background (#0d1004).

Color palette

TokenLightDark
Background
#fbfdf7snow
#0d1004black
Foreground
#090c04black
#fafbf9snow
Card
#f9fcf3floralwhite
#101405black
Card foreground
#060802black
#fdfdfcwhite
Popover
#fbfdf7snow
#0d1004black
Popover foreground
#090c04black
#fafbf9snow
Primary
#c8eb6fkhaki
#c8eb6fkhaki
Primary foreground
#1b2405black
#1b2405black
Secondary
#6fc8ebskyblue
#6fc8ebskyblue
Secondary foreground
#051b24black
#051b24black
Muted
#d9e7edlavender
#122126black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#eb6fc8orchid
#eb6fc8orchid
Accent foreground
#24051bblack
#24051bblack
Destructive
#811e08maroon
#f25c3atomato
Destructive foreground
#fbcbc1pink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c8eb6fkhaki
#c8eb6fkhaki

Contrast

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

Light mode
Text on background19.20:1AAA
Text on card19.37:1AAA
Primary button12.00:1AAA
Secondary button9.39:1AAA
Muted text4.90:1AA
Accent6.89:1AA
Destructive6.75:1AA
Dark mode
Text on background18.50:1AAA
Text on card18.33:1AAA
Primary button12.00:1AAA
Secondary button9.39:1AAA
Muted text6.19:1AA
Accent6.89:1AA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 119.44);
  --foreground: oklch(0.147 0.021 119.566);
  --muted: oklch(0.92 0.018 223.339);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.991 0.008 119.44);
  --popover-foreground: oklch(0.147 0.021 119.566);
  --card: oklch(0.986 0.012 119.509);
  --card-foreground: oklch(0.128 0.018 119.279);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.891 0.156 122.727);
  --primary-foreground: oklch(0.243 0.052 123.57);
  --secondary: oklch(0.791 0.099 225.908);
  --secondary-foreground: oklch(0.209 0.033 226.82);
  --accent: oklch(0.717 0.184 339.507);
  --accent-foreground: oklch(0.186 0.063 340.703);
  --destructive: oklch(0.4 0.137 33.485);
  --destructive-foreground: oklch(0.882 0.056 32.821);
  --ring: oklch(0.891 0.156 122.727);
  --chart-1: oklch(0.891 0.156 122.727);
  --chart-2: oklch(0.791 0.099 225.908);
  --chart-3: oklch(0.717 0.184 339.507);
  --chart-4: oklch(0.809 0.091 225.387);
  --chart-5: oklch(0.896 0.161 122.846);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.166 0.026 120.941);
  --foreground: oklch(0.987 0.003 119.359);
  --muted: oklch(0.235 0.023 224.929);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.166 0.026 120.941);
  --popover-foreground: oklch(0.987 0.003 119.359);
  --card: oklch(0.182 0.03 121.74);
  --card-foreground: oklch(0.994 0.002 119.332);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.891 0.156 122.727);
  --primary-foreground: oklch(0.243 0.052 123.57);
  --secondary: oklch(0.791 0.099 225.908);
  --secondary-foreground: oklch(0.209 0.033 226.82);
  --accent: oklch(0.717 0.184 339.507);
  --accent-foreground: oklch(0.186 0.063 340.703);
  --destructive: oklch(0.667 0.191 34.142);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.891 0.156 122.727);
  --chart-1: oklch(0.891 0.156 122.727);
  --chart-2: oklch(0.791 0.099 225.908);
  --chart-3: oklch(0.717 0.184 339.507);
  --chart-4: oklch(0.809 0.091 225.387);
  --chart-5: oklch(0.896 0.161 122.846);
}