Ungrinding [final] for shadcn/ui

Ungrinding [final] is a shadcn/ui theme built around a near-black primary color (#171717) with near-white accents (#f5f5f5). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid green primary (#adfa1d) on a neutral background (#09090a).

Color palette

TokenLightDark
Background
#ffffffwhite
#09090ablack
Foreground
#0a0a0ablack
#fafafasnow
Card
#ffffffwhite
#111113black
Card foreground
#0a0a0ablack
#fafafasnow
Popover
#ffffffwhite
#18181bblack
Popover foreground
#0a0a0ablack
#fafafasnow
Primary
#171717black
#adfa1dgreenyellow
Primary foreground
#fafafasnow
#000000black
Secondary
#f5f5f5whitesmoke
#202124black
Secondary foreground
#171717black
#fafafasnow
Muted
#f5f5f5whitesmoke
#1d1d20black
Muted foreground
#737373dimgray
#73737fgray
Accent
#f5f5f5whitesmoke
#29292edarkslategray
Accent foreground
#171717black
#fafafasnow
Destructive
#ef4444tomato
#d34f4findianred
Destructive foreground
#fafafasnow
#fafafasnow
Border
#e5e5e5gainsboro
#242528darkslategray
Input
#e5e5e5gainsboro
#242428darkslategray
Ring
#0a0a0ablack
#4076ffroyalblue

Contrast

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

Light mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button17.18:1AAA
Secondary button16.45:1AAA
Muted text4.35:1AA Large
Accent16.45:1AAA
Destructive3.60:1AA Large
Dark mode
Text on background19.06:1AAA
Text on card18.06:1AAA
Primary button16.46:1AAA
Secondary button15.45:1AAA
Muted text3.58:1AA Large
Accent13.81:1AAA
Destructive4.02:1AA Large

CSS variables

Paste this into your globals.css to use Ungrinding [final] in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0 180);
  --muted: oklch(0.97 0 180);
  --muted-foreground: oklch(0.556 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.145 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.145 0 180);
  --border: oklch(0.922 0 168.69);
  --input: oklch(0.922 0 168.69);
  --primary: oklch(0.204 0 180);
  --primary-foreground: oklch(0.985 0 180);
  --secondary: oklch(0.97 0 180);
  --secondary-foreground: oklch(0.204 0 180);
  --accent: oklch(0.97 0 180);
  --accent-foreground: oklch(0.204 0 180);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.145 0 180);
  --chart-1: oklch(0.204 0 180);
  --chart-2: oklch(0.97 0 180);
  --chart-3: oklch(0.97 0 180);
  --chart-4: oklch(0.993 0 180);
  --chart-5: oklch(0.203 0.002 17.337);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.002 286.11);
  --foreground: oklch(0.985 0 180);
  --muted: oklch(0.233 0.006 283.551);
  --muted-foreground: oklch(0.56 0.018 283.412);
  --popover: oklch(0.211 0.005 283.577);
  --popover-foreground: oklch(0.985 0 180);
  --card: oklch(0.178 0.003 283.631);
  --card-foreground: oklch(0.985 0 180);
  --border: oklch(0.264 0.007 283.185);
  --input: oklch(0.263 0.007 283.522);
  --primary: oklch(0.901 0.233 128.984);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.247 0.006 283.536);
  --secondary-foreground: oklch(0.985 0 180);
  --accent: oklch(0.284 0.007 283.505);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.605 0.167 23.518);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.608 0.212 264.578);
  --chart-1: oklch(0.901 0.233 128.984);
  --chart-2: oklch(0.247 0.006 283.536);
  --chart-3: oklch(0.284 0.007 283.505);
  --chart-4: oklch(0.278 0.007 283.51);
  --chart-5: oklch(0.909 0.237 129.183);
}