Tokyo Night Light is a shadcn/ui theme built around a blue primary color (#637dbf) with muted blue accents (#acaeb9). The light mode uses a blue-tinted background (#d6d7dc). Dark mode keeps the blue primary (#637dbf) on a blue-tinted background (#d6d7dc).
| Token | Light | Dark |
|---|---|---|
| Background | #d6d7dcgainsboro | #d6d7dcgainsboro |
| Foreground | #353c5adarkslategray | #353c5adarkslategray |
| Card | #d0d1d7lightgrey | #d0d1d7lightgrey |
| Card foreground | #2b314adarkslategray | #2b314adarkslategray |
| Popover | #cdcfd5lightgrey | #cdcfd5lightgrey |
| Popover foreground | #22263adarkslategray | #22263adarkslategray |
| Primary | #637dbfsteelblue | #637dbfsteelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #acb7d2lightsteelblue | #acb7d2lightsteelblue |
| Secondary foreground | #1b2132darkslategray | #1b2132darkslategray |
| Muted | #c9cbd4lightgrey | #c9cbd4lightgrey |
| Muted foreground | #2f313cdarkslategray | #2f313cdarkslategray |
| Accent | #acaeb9darkgray | #acaeb9darkgray |
| Accent foreground | #17181cblack | #17181cblack |
| Destructive | #8b120edarkred | #8b120edarkred |
| Destructive foreground | #fad2d1pink | #fad2d1pink |
| Border | #cccccclightgrey | #cccccclightgrey |
| Input | #c4c4c4silver | #c4c4c4silver |
| Ring | #637dbfsteelblue | #637dbfsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.49:1 | AAA |
| Text on card | 8.42:1 | AAA |
| Primary button | 4.00:1 | AA Large |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 7.49:1 | AAA |
| Text on card | 8.42:1 | AAA |
| Primary button | 4.00:1 | AA Large |
| Secondary button | 7.98:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.92:1 | AA |
Paste this into your globals.css to use Tokyo Night Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.879 0.007 277.149);
--foreground: oklch(0.363 0.053 273.78);
--muted: oklch(0.842 0.014 277.034);
--muted-foreground: oklch(0.317 0.019 276.337);
--popover: oklch(0.854 0.009 277.121);
--popover-foreground: oklch(0.275 0.037 274.034);
--card: oklch(0.863 0.008 277.131);
--card-foreground: oklch(0.32 0.045 273.885);
--border: oklch(0.845 0 164.055);
--input: oklch(0.821 0 171.87);
--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.754 0.015 276.984);
--accent-foreground: oklch(0.21 0.007 276.796);
--destructive: oklch(0.409 0.155 28.676);
--destructive-foreground: oklch(0.898 0.046 20.368);
--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.754 0.015 276.984);
--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.879 0.007 277.149);
--foreground: oklch(0.363 0.053 273.78);
--muted: oklch(0.842 0.014 277.034);
--muted-foreground: oklch(0.317 0.019 276.337);
--popover: oklch(0.854 0.009 277.121);
--popover-foreground: oklch(0.275 0.037 274.034);
--card: oklch(0.863 0.008 277.131);
--card-foreground: oklch(0.32 0.045 273.885);
--border: oklch(0.845 0 164.055);
--input: oklch(0.821 0 171.87);
--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.754 0.015 276.984);
--accent-foreground: oklch(0.21 0.007 276.796);
--destructive: oklch(0.409 0.155 28.676);
--destructive-foreground: oklch(0.898 0.046 20.368);
--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.754 0.015 276.984);
--chart-4: oklch(0.807 0.036 268.425);
--chart-5: oklch(0.596 0.113 266.652);
}