solarized.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createColorScheme } from "./common/ramps";
 3
 4const name = "Solarized";
 5const author = "";
 6const url = "";
 7
 8const ramps = {
 9  neutral: chroma
10    .scale([
11      "#002b36",
12      "#073642",
13      "#586e75",
14      "#657b83",
15      "#839496",
16      "#93a1a1",
17      "#eee8d5",
18      "#fdf6e3",
19    ])
20    .domain([0, 0.2, 0.38, 0.45, 0.65, 0.7, 0.85, 1]),
21  red: colorRamp(chroma("#dc322f")),
22  orange: colorRamp(chroma("#cb4b16")),
23  yellow: colorRamp(chroma("#b58900")),
24  green: colorRamp(chroma("#859900")),
25  cyan: colorRamp(chroma("#2aa198")),
26  blue: colorRamp(chroma("#268bd2")),
27  violet: colorRamp(chroma("#6c71c4")),
28  magenta: colorRamp(chroma("#d33682")),
29};
30
31export const dark = createColorScheme(`${name}-dark`, false, ramps);
32export const light = createColorScheme(`${name}-light`, true, ramps);