TokyoLight for shadcn/ui

TokyoLight is a shadcn/ui theme built around a blue primary color (#637dbf) with light indigo accents (#c9c9e4). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the blue primary (#637dbf) on a neutral background (#fcfcfd).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#fcfcfdwhite
Foreground
#353c5adarkslategray
#353c5adarkslategray
Card
#f5f5fawhitesmoke
#f5f5fawhitesmoke
Card foreground
#2b314adarkslategray
#2b314adarkslategray
Popover
#f1f1f8whitesmoke
#f1f1f8whitesmoke
Popover foreground
#22263adarkslategray
#22263adarkslategray
Primary
#637dbfsteelblue
#637dbfsteelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#acb7d2lightsteelblue
#acb7d2lightsteelblue
Secondary foreground
#1b2132darkslategray
#1b2132darkslategray
Muted
#e2e2e9gainsboro
#e2e2e9gainsboro
Muted foreground
#434356darkslategray
#434356darkslategray
Accent
#c9c9e4thistle
#c9c9e4thistle
Accent foreground
#292951midnightblue
#292951midnightblue
Destructive
#731907maroon
#731907maroon
Destructive foreground
#fabeb2lightpink
#fabeb2lightpink
Border
#ececf3lavender
#ececf3lavender
Input
#e3e3edlavender
#e3e3edlavender
Ring
#637dbfsteelblue
#637dbfsteelblue

Contrast

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

Light mode
Text on background10.49:1AAA
Text on card11.75:1AAA
Primary button4.00:1AA Large
Secondary button7.98:1AAA
Muted text7.51:1AAA
Accent8.44:1AAA
Destructive6.97:1AA
Dark mode
Text on background10.49:1AAA
Text on card11.75:1AAA
Primary button4.00:1AA Large
Secondary button7.98:1AAA
Muted text7.51:1AAA
Accent8.44:1AAA
Destructive6.97:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 286.359);
  --foreground: oklch(0.363 0.053 273.78);
  --muted: oklch(0.916 0.008 286.236);
  --muted-foreground: oklch(0.391 0.031 284.884);
  --popover: oklch(0.961 0.009 286.23);
  --popover-foreground: oklch(0.275 0.037 274.034);
  --card: oklch(0.971 0.007 286.274);
  --card-foreground: oklch(0.32 0.045 273.885);
  --border: oklch(0.946 0.009 286.218);
  --input: oklch(0.918 0.014 286.116);
  --primary: oklch(0.599 0.106 266.838);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.78 0.041 268.343);
  --secondary-foreground: oklch(0.251 0.033 267.437);
  --accent: oklch(0.844 0.037 285.574);
  --accent-foreground: oklch(0.303 0.072 281.253);
  --destructive: oklch(0.367 0.127 32.924);
  --destructive-foreground: oklch(0.853 0.071 31.446);
  --ring: oklch(0.599 0.106 266.838);
  --chart-1: oklch(0.599 0.106 266.838);
  --chart-2: oklch(0.78 0.041 268.343);
  --chart-3: oklch(0.844 0.037 285.574);
  --chart-4: oklch(0.807 0.036 268.425);
  --chart-5: oklch(0.596 0.113 266.652);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 286.359);
  --foreground: oklch(0.363 0.053 273.78);
  --muted: oklch(0.916 0.008 286.236);
  --muted-foreground: oklch(0.391 0.031 284.884);
  --popover: oklch(0.961 0.009 286.23);
  --popover-foreground: oklch(0.275 0.037 274.034);
  --card: oklch(0.971 0.007 286.274);
  --card-foreground: oklch(0.32 0.045 273.885);
  --border: oklch(0.946 0.009 286.218);
  --input: oklch(0.918 0.014 286.116);
  --primary: oklch(0.599 0.106 266.838);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.78 0.041 268.343);
  --secondary-foreground: oklch(0.251 0.033 267.437);
  --accent: oklch(0.844 0.037 285.574);
  --accent-foreground: oklch(0.303 0.072 281.253);
  --destructive: oklch(0.367 0.127 32.924);
  --destructive-foreground: oklch(0.853 0.071 31.446);
  --ring: oklch(0.599 0.106 266.838);
  --chart-1: oklch(0.599 0.106 266.838);
  --chart-2: oklch(0.78 0.041 268.343);
  --chart-3: oklch(0.844 0.037 285.574);
  --chart-4: oklch(0.807 0.036 268.425);
  --chart-5: oklch(0.596 0.113 266.652);
}