Tokyo City Darker for shadcn/ui

Tokyo City Darker is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted deep blue accents (#344250). The light mode uses a blue-tinted background (#161c22). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#161c22).

Color palette

TokenLightDark
Background
#161c22black
#161c22black
Foreground
#d9e3ecgainsboro
#d9e3ecgainsboro
Card
#12171cblack
#12171cblack
Card foreground
#eaf0f5lavender
#eaf0f5lavender
Popover
#101419black
#101419black
Popover foreground
#fcfcfdwhite
#fcfcfdwhite
Primary
#ffffffwhite
#ffffffwhite
Primary foreground
#333333darkslategray
#333333darkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#22262bdarkslategray
#22262bdarkslategray
Muted foreground
#9ba6b0darkgray
#9ba6b0darkgray
Accent
#344250darkslategray
#344250darkslategray
Accent foreground
#d4dbe3gainsboro
#d4dbe3gainsboro
Destructive
#e73a27crimson
#e73a27crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#24292ddarkslategray
#24292ddarkslategray
Input
#2b3036darkslategray
#2b3036darkslategray
Ring
#ffffffwhite
#ffffffwhite

Contrast

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

Light mode
Text on background13.19:1AAA
Text on card15.69:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text6.13:1AA
Accent7.33:1AAA
Destructive4.16:1AA Large
Dark mode
Text on background13.19:1AAA
Text on card15.69:1AAA
Primary button12.63:1AAA
Secondary button7.37:1AAA
Muted text6.13:1AA
Accent7.33:1AAA
Destructive4.16:1AA Large

CSS variables

Paste this into your globals.css to use Tokyo City Darker in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.223 0.015 248.477);
  --foreground: oklch(0.911 0.017 248.01);
  --muted: oklch(0.267 0.011 248.233);
  --muted-foreground: oklch(0.719 0.02 248.103);
  --popover: oklch(0.19 0.011 248.403);
  --popover-foreground: oklch(0.992 0.001 247.837);
  --card: oklch(0.202 0.012 248.431);
  --card-foreground: oklch(0.952 0.009 247.92);
  --border: oklch(0.277 0.01 248.206);
  --input: oklch(0.308 0.012 248.222);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.374 0.03 248.639);
  --accent-foreground: oklch(0.889 0.013 247.975);
  --destructive: oklch(0.612 0.212 30.355);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.374 0.03 248.639);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.223 0.015 248.477);
  --foreground: oklch(0.911 0.017 248.01);
  --muted: oklch(0.267 0.011 248.233);
  --muted-foreground: oklch(0.719 0.02 248.103);
  --popover: oklch(0.19 0.011 248.403);
  --popover-foreground: oklch(0.992 0.001 247.837);
  --card: oklch(0.202 0.012 248.431);
  --card-foreground: oklch(0.952 0.009 247.92);
  --border: oklch(0.277 0.01 248.206);
  --input: oklch(0.308 0.012 248.222);
  --primary: oklch(1 0 180);
  --primary-foreground: oklch(0.321 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.374 0.03 248.639);
  --accent-foreground: oklch(0.889 0.013 247.975);
  --destructive: oklch(0.612 0.212 30.355);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(1 0 180);
  --chart-1: oklch(1 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.374 0.03 248.639);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(1 0 180);
}