solarized.ts

 1import {
 2    chroma,
 3    color_ramp,
 4    ThemeAppearance,
 5    ThemeLicenseType,
 6    ThemeConfig,
 7} from "../../common"
 8
 9const ramps = {
10    neutral: chroma
11        .scale([
12            "#002b36",
13            "#073642",
14            "#586e75",
15            "#657b83",
16            "#839496",
17            "#93a1a1",
18            "#eee8d5",
19            "#fdf6e3",
20        ])
21        .domain([0, 0.2, 0.38, 0.45, 0.65, 0.7, 0.85, 1]),
22    red: color_ramp(chroma("#dc322f")),
23    orange: color_ramp(chroma("#cb4b16")),
24    yellow: color_ramp(chroma("#b58900")),
25    green: color_ramp(chroma("#859900")),
26    cyan: color_ramp(chroma("#2aa198")),
27    blue: color_ramp(chroma("#268bd2")),
28    violet: color_ramp(chroma("#6c71c4")),
29    magenta: color_ramp(chroma("#d33682")),
30}
31
32export const dark: ThemeConfig = {
33    name: "Solarized Dark",
34    author: "Ethan Schoonover",
35    appearance: ThemeAppearance.Dark,
36    license_type: ThemeLicenseType.MIT,
37    license_url: "https://github.com/altercation/solarized",
38    license_file: `${__dirname}/LICENSE`,
39    input_color: ramps,
40    override: { syntax: {} },
41}
42
43export const light: ThemeConfig = {
44    name: "Solarized Light",
45    author: "Ethan Schoonover",
46    appearance: ThemeAppearance.Light,
47    license_type: ThemeLicenseType.MIT,
48    license_url: "https://github.com/altercation/solarized",
49    license_file: `${__dirname}/LICENSE`,
50    input_color: ramps,
51    override: { syntax: {} },
52}