Light Mac OS for shadcn/ui

Light Mac OS is a shadcn/ui theme built around a vivid blue primary color (#007aff) with vivid blue accents (#007aff). The light mode uses a neutral background (#f9f9f9). Dark mode switches to a blue primary (#7289da) on a blue-tinted background (#282b30).

Color palette

TokenLightDark
Background
#f9f9f9ghostwhite
#282b30darkslategray
Foreground
#040102black
#fcf8fasnow
Card
#ffffffwhite
#1e2124black
Card foreground
#232323black
#fcf8fasnow
Popover
#ffffffwhite
#1e2124black
Popover foreground
#1a1a1ablack
#fcf8fasnow
Primary
#007affdodgerblue
#7289dacornflowerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dadadagainsboro
#424549darkslategray
Secondary foreground
#1a1a1ablack
#ffffffwhite
Muted
#efefefwhitesmoke
#1e2124black
Muted foreground
#1a1a1ablack
#9b9b9bdarkgray
Accent
#007affdodgerblue
#282b30darkslategray
Accent foreground
#ffffffwhite
#7289dacornflowerblue
Destructive
#ff3b30tomato
#da373ccrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#cececelightgrey
#2f2f2fdarkslategray
Input
#cececelightgrey
#424549darkslategray
Ring
#999999darkgray
#282b30darkslategray

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card15.71:1AAA
Primary button4.01:1AA Large
Secondary button12.44:1AAA
Muted text15.17:1AAA
Accent4.01:1AA Large
Destructive3.54:1AA Large
Dark mode
Text on background13.49:1AAA
Text on card15.36:1AAA
Primary button3.32:1AA Large
Secondary button9.63:1AAA
Muted text5.82:1AA
Accent4.26:1AA Large
Destructive4.57:1AA

CSS variables

Paste this into your globals.css to use Light Mac OS in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0 180);
  --foreground: oklch(0.084 0.015 348.404);
  --muted: oklch(0.953 0 198.435);
  --muted-foreground: oklch(0.218 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.218 0 180);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.256 0 180);
  --border: oklch(0.851 0 180);
  --input: oklch(0.851 0 180);
  --primary: oklch(0.603 0.218 257.42);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.888 0 172.405);
  --secondary-foreground: oklch(0.216 0 180);
  --accent: oklch(0.603 0.218 257.42);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.654 0.232 28.66);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.683 0 180);
  --chart-1: oklch(0.603 0.218 257.42);
  --chart-2: oklch(0.888 0 172.405);
  --chart-3: oklch(0.603 0.218 257.42);
  --chart-4: oklch(0.912 0 190.305);
  --chart-5: oklch(0.605 0.223 257.702);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.288 0.01 260.707);
  --foreground: oklch(0.983 0.004 348.851);
  --muted: oklch(0.246 0.007 248.122);
  --muted-foreground: oklch(0.689 0 164.055);
  --popover: oklch(0.246 0.007 248.122);
  --popover-foreground: oklch(0.983 0.004 348.851);
  --card: oklch(0.246 0.007 248.122);
  --card-foreground: oklch(0.983 0.004 348.851);
  --border: oklch(0.305 0 171.87);
  --input: oklch(0.389 0.008 255.543);
  --primary: oklch(0.647 0.124 270.623);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.389 0.008 255.543);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.288 0.01 260.707);
  --accent-foreground: oklch(0.647 0.124 270.623);
  --destructive: oklch(0.588 0.199 24.393);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.288 0.01 260.707);
  --chart-1: oklch(0.647 0.124 270.623);
  --chart-2: oklch(0.389 0.008 255.543);
  --chart-3: oklch(0.288 0.01 260.707);
  --chart-4: oklch(0.417 0.009 255.544);
  --chart-5: oklch(0.644 0.131 270.422);
}