1import {
2 chroma,
3 colorRamp,
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: colorRamp(chroma("#dc322f")),
23 orange: colorRamp(chroma("#cb4b16")),
24 yellow: colorRamp(chroma("#b58900")),
25 green: colorRamp(chroma("#859900")),
26 cyan: colorRamp(chroma("#2aa198")),
27 blue: colorRamp(chroma("#268bd2")),
28 violet: colorRamp(chroma("#6c71c4")),
29 magenta: colorRamp(chroma("#d33682")),
30}
31
32export const dark: ThemeConfig = {
33 name: "Solarized Dark",
34 author: "Ethan Schoonover",
35 appearance: ThemeAppearance.Dark,
36 licenseType: ThemeLicenseType.MIT,
37 licenseUrl: "https://github.com/altercation/solarized",
38 licenseFile: `${__dirname}/LICENSE`,
39 inputColor: ramps,
40 override: { syntax: {} },
41}
42
43export const light: ThemeConfig = {
44 name: "Solarized Light",
45 author: "Ethan Schoonover",
46 appearance: ThemeAppearance.Light,
47 licenseType: ThemeLicenseType.MIT,
48 licenseUrl: "https://github.com/altercation/solarized",
49 licenseFile: `${__dirname}/LICENSE`,
50 inputColor: ramps,
51 override: { syntax: {} },
52}