tokyo-night.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createColorScheme } from "../common/ramps";
 3
 4const name = "Tokyo";
 5const author = "folke";
 6const url = "https://github.com/folke/tokyonight.nvim";
 7const license = {
 8  type: "Apache License 2.0",
 9  url: "https://github.com/folke/tokyonight.nvim/blob/main/LICENSE",
10};
11
12// `name-[light|dark]`, isLight, color ramps
13export const dark = createColorScheme(`${name} Night`, false, {
14  neutral: chroma.scale([
15    "#1A1B26",
16    "#16161E",
17    "#2F3549",
18    "#444B6A",
19    "#787C99",
20    "#A9B1D6",
21    "#CBCCD1",
22    "#D5D6DB",
23  ]),
24  red: colorRamp(chroma("#C0CAF5")),
25  orange: colorRamp(chroma("#A9B1D6")),
26  yellow: colorRamp(chroma("#0DB9D7")),
27  green: colorRamp(chroma("#9ECE6A")),
28  cyan: colorRamp(chroma("#B4F9F8")),
29  blue: colorRamp(chroma("#2AC3DE")),
30  violet: colorRamp(chroma("#BB9AF7")),
31  magenta: colorRamp(chroma("#F7768E")),
32});
33
34export const light = createColorScheme(`${name} Day`, true, {
35  neutral: chroma.scale([
36    "#1A1B26",
37    "#1A1B26",
38    "#343B59",
39    "#4C505E",
40    "#9699A3",
41    "#DFE0E5",
42    "#CBCCD1",
43    "#D5D6DB",
44  ]),
45  red: colorRamp(chroma("#343B58")),
46  orange: colorRamp(chroma("#965027")),
47  yellow: colorRamp(chroma("#166775")),
48  green: colorRamp(chroma("#485E30")),
49  cyan: colorRamp(chroma("#3E6968")),
50  blue: colorRamp(chroma("#34548A")),
51  violet: colorRamp(chroma("#5A4A78")),
52  magenta: colorRamp(chroma("#8C4351")),
53});