Tokyo Night Gogh for shadcn/ui

Tokyo Night Gogh is a shadcn/ui theme built around a light blue primary color (#c1cbf5) with muted deep indigo accents (#3a3c55). The light mode uses an indigo-tinted background (#1b1c27). Dark mode keeps the light blue primary (#c1cbf5) on an indigo-tinted background (#1b1c27).

Color palette

TokenLightDark
Background
#1b1c27black
#1b1c27black
Foreground
#c1cbf5lightblue
#c1cbf5lightblue
Card
#171821black
#171821black
Card foreground
#d7ddf9lavender
#d7ddf9lavender
Popover
#15151eblack
#15151eblack
Popover foreground
#edf0fcaliceblue
#edf0fcaliceblue
Primary
#c1cbf5lightblue
#c1cbf5lightblue
Primary foreground
#122473midnightblue
#122473midnightblue
Secondary
#2d3453darkslategray
#2d3453darkslategray
Secondary foreground
#cdd1e4lightgrey
#cdd1e4lightgrey
Muted
#262731darkslategray
#262731darkslategray
Muted foreground
#a1a2b5darkgray
#a1a2b5darkgray
Accent
#3a3c55darkslategray
#3a3c55darkslategray
Accent foreground
#dbdce6gainsboro
#dbdce6gainsboro
Destructive
#e41001red
#e41001red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#2a2a32darkslategray
#2a2a32darkslategray
Input
#31323adarkslategray
#31323adarkslategray
Ring
#c1cbf5lightblue
#c1cbf5lightblue

Contrast

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

Light mode
Text on background10.57:1AAA
Text on card13.15:1AAA
Primary button8.59:1AAA
Secondary button8.04:1AAA
Muted text5.89:1AA
Accent7.85:1AAA
Destructive4.78:1AA
Dark mode
Text on background10.57:1AAA
Text on card13.15:1AAA
Primary button8.59:1AAA
Secondary button8.04:1AAA
Muted text5.89:1AA
Accent7.85:1AAA
Destructive4.78:1AA

CSS variables

Paste this into your globals.css to use Tokyo Night Gogh in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.23 0.022 280.437);
  --foreground: oklch(0.848 0.06 275.123);
  --muted: oklch(0.276 0.018 281.084);
  --muted-foreground: oklch(0.718 0.027 281.571);
  --popover: oklch(0.201 0.018 280.609);
  --popover-foreground: oklch(0.957 0.017 275.935);
  --card: oklch(0.211 0.019 280.545);
  --card-foreground: oklch(0.903 0.038 275.577);
  --border: oklch(0.289 0.014 281.384);
  --input: oklch(0.318 0.016 281.352);
  --primary: oklch(0.848 0.06 275.123);
  --primary-foreground: oklch(0.306 0.137 267.243);
  --secondary: oklch(0.332 0.056 273.361);
  --secondary-foreground: oklch(0.865 0.026 275.751);
  --accent: oklch(0.365 0.043 280.019);
  --accent-foreground: oklch(0.896 0.015 281.94);
  --destructive: oklch(0.581 0.234 29.837);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.848 0.06 275.123);
  --chart-1: oklch(0.848 0.06 275.123);
  --chart-2: oklch(0.332 0.056 273.361);
  --chart-3: oklch(0.365 0.043 280.019);
  --chart-4: oklch(0.358 0.062 273.288);
  --chart-5: oklch(0.846 0.063 275.071);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.23 0.022 280.437);
  --foreground: oklch(0.848 0.06 275.123);
  --muted: oklch(0.276 0.018 281.084);
  --muted-foreground: oklch(0.718 0.027 281.571);
  --popover: oklch(0.201 0.018 280.609);
  --popover-foreground: oklch(0.957 0.017 275.935);
  --card: oklch(0.211 0.019 280.545);
  --card-foreground: oklch(0.903 0.038 275.577);
  --border: oklch(0.289 0.014 281.384);
  --input: oklch(0.318 0.016 281.352);
  --primary: oklch(0.848 0.06 275.123);
  --primary-foreground: oklch(0.306 0.137 267.243);
  --secondary: oklch(0.332 0.056 273.361);
  --secondary-foreground: oklch(0.865 0.026 275.751);
  --accent: oklch(0.365 0.043 280.019);
  --accent-foreground: oklch(0.896 0.015 281.94);
  --destructive: oklch(0.581 0.234 29.837);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.848 0.06 275.123);
  --chart-1: oklch(0.848 0.06 275.123);
  --chart-2: oklch(0.332 0.056 273.361);
  --chart-3: oklch(0.365 0.043 280.019);
  --chart-4: oklch(0.358 0.062 273.288);
  --chart-5: oklch(0.846 0.063 275.071);
}