zed-pro.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createColorScheme } from "../common/ramps";
 3
 4const name = "Zed Pro";
 5const author = "Nate Butler"
 6const url = "https://github.com/iamnbutler"
 7const license = {
 8  type: "?",
 9  url: "?",
10};
11
12const ramps = {
13  neutral: chroma
14    .scale([
15      "#101010",
16      "#1C1C1C",
17      "#212121",
18      "#2D2D2D",
19      "#B9B9B9",
20      "#DADADA",
21      "#E6E6E6",
22      "#FFFFFF",
23    ])
24    .domain([0, 0.1, 0.2, 0.3, 0.7, 0.8, 0.9, 1]),
25  red: colorRamp(chroma("#DC604F")),
26  orange: colorRamp(chroma("#DE782F")),
27  yellow: colorRamp(chroma("#E0B750")),
28  green: colorRamp(chroma("#2A643D")),
29  cyan: colorRamp(chroma("#215050")),
30  blue: colorRamp(chroma("#2F6DB7")),
31  violet: colorRamp(chroma("#5874C1")),
32  magenta: colorRamp(chroma("#DE9AB8")),
33};
34
35export const dark = createColorScheme(`${name} Dark`, false, ramps);
36export const light = createColorScheme(`${name} Light`, true, ramps);