Measly for shadcn/ui

Measly is a shadcn/ui theme built around a neutral gray primary color (#969696) with neutral gray accents (#969696). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#969696) on a neutral background (#040101).

Color palette

TokenLightDark
Background
#ffffffwhite
#040101black
Foreground
#120303black
#faf5f5whitesmoke
Card
#ffffffwhite
#040101black
Card foreground
#120303black
#faf5f5whitesmoke
Popover
#ffffffwhite
#040101black
Popover foreground
#120303black
#faf5f5whitesmoke
Primary
#969696darkgray
#969696darkgray
Primary foreground
#000000black
#000000black
Secondary
#969696darkgray
#969696darkgray
Secondary foreground
#000000black
#000000black
Muted
#f4f0f0whitesmoke
#0f0b0bblack
Muted foreground
#6b5757dimgray
#a89494rosybrown
Accent
#969696darkgray
#969696darkgray
Accent foreground
#000000black
#000000black
Destructive
#972907saddlebrown
#f4511forangered
Destructive foreground
#fdddd3antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#969696darkgray
#969696darkgray

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button7.13:1AAA
Secondary button7.13:1AAA
Muted text5.95:1AA
Accent7.13:1AAA
Destructive6.25:1AA
Dark mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button7.13:1AAA
Secondary button7.13:1AAA
Muted text6.84:1AA
Accent7.13:1AAA
Destructive3.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.128 0.033 22.808);
  --muted: oklch(0.959 0.004 17.234);
  --muted-foreground: oklch(0.477 0.026 18.087);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.128 0.033 22.808);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.128 0.033 22.808);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.675 0 170.538);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.675 0 170.538);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0 170.538);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.451 0.151 35.372);
  --destructive-foreground: oklch(0.921 0.038 37.608);
  --ring: oklch(0.675 0 170.538);
  --chart-1: oklch(0.675 0 170.538);
  --chart-2: oklch(0.675 0 170.538);
  --chart-3: oklch(0.675 0 170.538);
  --chart-4: oklch(0.7 0 180);
  --chart-5: oklch(0.67 0.007 17.341);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.012 19.954);
  --foreground: oklch(0.973 0.006 17.255);
  --muted: oklch(0.154 0.007 17.955);
  --muted-foreground: oklch(0.685 0.023 17.73);
  --popover: oklch(0.084 0.012 19.954);
  --popover-foreground: oklch(0.973 0.006 17.255);
  --card: oklch(0.084 0.012 19.954);
  --card-foreground: oklch(0.973 0.006 17.255);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.675 0 170.538);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.675 0 170.538);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0 170.538);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.655 0.208 36.108);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.675 0 170.538);
  --chart-1: oklch(0.675 0 170.538);
  --chart-2: oklch(0.675 0 170.538);
  --chart-3: oklch(0.675 0 170.538);
  --chart-4: oklch(0.7 0 180);
  --chart-5: oklch(0.67 0.007 17.341);
}