Mono for shadcn/ui

Mono is a shadcn/ui theme built around a vivid blue primary color (#0231ff) with vivid green accents (#d9f718). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid orange primary (#f7a518) on a neutral background (#181818).

Color palette

TokenLightDark
Background
#ffffffwhite
#181818black
Foreground
#09090bblack
#969696darkgray
Card
#ffffffwhite
#1c1c1cblack
Card foreground
#09090bblack
#f2f2f2whitesmoke
Popover
#ffffffwhite
#181818black
Popover foreground
#09090bblack
#f2f2f2whitesmoke
Primary
#0231ffblue
#f7a518orange
Primary foreground
#ffffffwhite
#402902black
Secondary
#402039darkslategray
#f73518orangered
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4f4f5whitesmoke
#2e211fblack
Muted foreground
#71717adimgray
#beaaa7darkgray
Accent
#d9f718yellow
#d9f718yellow
Accent foreground
#384002darkgreen
#384002darkgreen
Destructive
#df0b0bred
#fe6410orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e3e3e7gainsboro
#2b2b2bdarkslategray
Input
#e3e3e7gainsboro
#1e1c1ablack
Ring
#0231ffblue
#f7a518orange

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button7.27:1AAA
Secondary button14.15:1AAA
Muted text4.39:1AA Large
Accent9.04:1AAA
Destructive5.01:1AA
Dark mode
Text on background6.00:1AA
Text on card15.22:1AAA
Primary button6.72:1AA
Secondary button3.83:1AA Large
Muted text7.04:1AAA
Accent9.04:1AAA
Destructive7.02:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.004 285.823);
  --muted: oklch(0.968 0.001 286.375);
  --muted-foreground: oklch(0.552 0.014 285.942);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.004 285.823);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.141 0.004 285.824);
  --border: oklch(0.918 0.004 286.318);
  --input: oklch(0.917 0.005 286.293);
  --primary: oklch(0.483 0.292 264.258);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.297 0.062 335.711);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.921 0.212 118.287);
  --accent-foreground: oklch(0.352 0.08 117.711);
  --destructive: oklch(0.57 0.23 28.87);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.483 0.292 264.258);
  --chart-1: oklch(0.483 0.292 264.258);
  --chart-2: oklch(0.297 0.062 335.711);
  --chart-3: oklch(0.921 0.212 118.287);
  --chart-4: oklch(0.326 0.07 335.8);
  --chart-5: oklch(0.484 0.298 264.075);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.209 0 180);
  --foreground: oklch(0.673 0 180);
  --muted: oklch(0.262 0.021 28.559);
  --muted-foreground: oklch(0.754 0.024 28.122);
  --popover: oklch(0.209 0 180);
  --popover-foreground: oklch(0.961 0 180);
  --card: oklch(0.226 0 180);
  --card-foreground: oklch(0.961 0 180);
  --border: oklch(0.289 0 180);
  --input: oklch(0.229 0.004 81.497);
  --primary: oklch(0.783 0.163 72.616);
  --primary-foreground: oklch(0.303 0.061 75.667);
  --secondary: oklch(0.634 0.231 31.513);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.921 0.212 118.287);
  --accent-foreground: oklch(0.352 0.08 117.711);
  --destructive: oklch(0.691 0.204 41.966);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.783 0.163 72.616);
  --chart-1: oklch(0.783 0.163 72.616);
  --chart-2: oklch(0.634 0.231 31.513);
  --chart-3: oklch(0.921 0.212 118.287);
  --chart-4: oklch(0.646 0.221 31.66);
  --chart-5: oklch(0.789 0.165 72.034);
}