Xcode Classic (Dark) for shadcn/ui

Xcode Classic (Dark) is a shadcn/ui theme built around a neutral gray primary color (#dedede) with muted blue accents (#4b4d58). The light mode uses a blue-tinted background (#28292f). Dark mode keeps the neutral gray primary (#dedede) on a blue-tinted background (#28292f).

Color palette

TokenLightDark
Background
#28292fdarkslategray
#28292fdarkslategray
Foreground
#e0e0e1gainsboro
#e0e0e1gainsboro
Card
#232429darkslategray
#232429darkslategray
Card foreground
#ededeewhitesmoke
#ededeewhitesmoke
Popover
#212227black
#212227black
Popover foreground
#fafafasnow
#fafafasnow
Primary
#dededegainsboro
#dededegainsboro
Primary foreground
#454545darkslategray
#454545darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#2f313cdarkslategray
#2f313cdarkslategray
Muted foreground
#acafbedarkgray
#acafbedarkgray
Accent
#4b4d58darkslategray
#4b4d58darkslategray
Accent foreground
#e9e9eclavender
#e9e9eclavender
Destructive
#dd0f08red
#dd0f08red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#383838darkslategray
#383838darkslategray
Input
#404040darkslategray
#404040darkslategray
Ring
#dededegainsboro
#dededegainsboro

Contrast

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

Light mode
Text on background11.00:1AAA
Text on card13.21:1AAA
Primary button7.11:1AAA
Secondary button7.37:1AAA
Muted text5.91:1AA
Accent6.92:1AA
Destructive5.04:1AA
Dark mode
Text on background11.00:1AAA
Text on card13.21:1AAA
Primary button7.11:1AAA
Secondary button7.37:1AAA
Muted text5.91:1AA
Accent6.92:1AA
Destructive5.04:1AA

CSS variables

Paste this into your globals.css to use Xcode Classic (Dark) in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.282 0.011 277.73);
  --foreground: oklch(0.906 0.002 286.367);
  --muted: oklch(0.316 0.02 277.337);
  --muted-foreground: oklch(0.756 0.022 277.887);
  --popover: oklch(0.252 0.009 277.763);
  --popover-foreground: oklch(0.985 0 286.395);
  --card: oklch(0.262 0.01 277.751);
  --card-foreground: oklch(0.946 0.001 286.381);
  --border: oklch(0.341 0 158.199);
  --input: oklch(0.371 0 168.69);
  --primary: oklch(0.9 0 188.746);
  --primary-foreground: oklch(0.39 0 165.964);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.423 0.019 277.645);
  --accent-foreground: oklch(0.936 0.004 278.26);
  --destructive: oklch(0.568 0.228 29.296);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0 188.746);
  --chart-1: oklch(0.9 0 188.746);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.423 0.019 277.645);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.899 0.002 17.198);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.282 0.011 277.73);
  --foreground: oklch(0.906 0.002 286.367);
  --muted: oklch(0.316 0.02 277.337);
  --muted-foreground: oklch(0.756 0.022 277.887);
  --popover: oklch(0.252 0.009 277.763);
  --popover-foreground: oklch(0.985 0 286.395);
  --card: oklch(0.262 0.01 277.751);
  --card-foreground: oklch(0.946 0.001 286.381);
  --border: oklch(0.341 0 158.199);
  --input: oklch(0.371 0 168.69);
  --primary: oklch(0.9 0 188.746);
  --primary-foreground: oklch(0.39 0 165.964);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.423 0.019 277.645);
  --accent-foreground: oklch(0.936 0.004 278.26);
  --destructive: oklch(0.568 0.228 29.296);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.9 0 188.746);
  --chart-1: oklch(0.9 0 188.746);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.423 0.019 277.645);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.899 0.002 17.198);
}