Untidy for shadcn/ui

Untidy is a shadcn/ui theme built around a near-black primary color (#070306) with near-white accents (#eceaeb). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#070306) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#040103black
#f9f6f8whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#040103black
#f9f6f8whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#040103black
#f9f6f8whitesmoke
Primary
#070306black
#070306black
Primary foreground
#bf7daarosybrown
#bf7daarosybrown
Secondary
#eceaeblinen
#33242edarkslategray
Secondary foreground
#564e53darkslategray
#cebac8silver
Muted
#f0e5edlinen
#1a0f16black
Muted foreground
#676566dimgray
#9a9899darkgray
Accent
#eceaeblinen
#33242edarkslategray
Accent foreground
#564e53darkslategray
#cebac8silver
Destructive
#b02503firebrick
#fc4d22orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#070306black
#070306black

Contrast

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

Light mode
Text on background20.77:1AAA
Text on card20.77:1AAA
Primary button6.55:1AA
Secondary button6.69:1AA
Muted text4.71:1AA
Accent6.69:1AA
Destructive6.74:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button6.55:1AA
Secondary button8.02:1AAA
Muted text6.52:1AA
Accent8.02:1AAA
Destructive3.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.084 0.019 337.069);
  --muted: oklch(0.933 0.016 336.893);
  --muted-foreground: oklch(0.509 0.003 336.687);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.084 0.019 337.069);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.084 0.019 337.069);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.111 0.013 336.833);
  --primary-foreground: oklch(0.672 0.101 339.271);
  --secondary: oklch(0.938 0.003 336.619);
  --secondary-foreground: oklch(0.432 0.014 337.177);
  --accent: oklch(0.938 0.003 336.619);
  --accent-foreground: oklch(0.432 0.014 337.177);
  --destructive: oklch(0.493 0.179 33.348);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.111 0.013 336.833);
  --chart-1: oklch(0.111 0.013 336.833);
  --chart-2: oklch(0.938 0.003 336.619);
  --chart-3: oklch(0.938 0.003 336.619);
  --chart-4: oklch(0.961 0.002 336.596);
  --chart-5: oklch(0.11 0.014 336.858);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.005 336.653);
  --muted: oklch(0.186 0.024 338.919);
  --muted-foreground: oklch(0.682 0.003 336.648);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.005 336.653);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.975 0.005 336.653);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.111 0.013 336.833);
  --primary-foreground: oklch(0.672 0.101 339.271);
  --secondary: oklch(0.282 0.028 338.397);
  --secondary-foreground: oklch(0.811 0.029 337.245);
  --accent: oklch(0.282 0.028 338.397);
  --accent-foreground: oklch(0.811 0.029 337.245);
  --destructive: oklch(0.664 0.217 34.483);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.111 0.013 336.833);
  --chart-1: oklch(0.111 0.013 336.833);
  --chart-2: oklch(0.282 0.028 338.397);
  --chart-3: oklch(0.282 0.028 338.397);
  --chart-4: oklch(0.311 0.032 338.466);
  --chart-5: oklch(0.11 0.014 336.858);
}