atelier-sulphurpool.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createColorScheme } from "./common/ramps";
 3
 4const name = "Atelier Sulphurpool";
 5const author = "atelierbram";
 6const url = "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune/";
 7const license = {
 8  type: "MIT",
 9  url: "https://github.com/atelierbram/syntax-highlighting/blob/master/LICENSE",
10};
11
12const ramps = {
13  neutral: chroma
14    .scale([
15      "#202746",
16      "#293256",
17      "#5e6687",
18      "#6b7394",
19      "#898ea4",
20      "#979db4",
21      "#dfe2f1",
22      "#f5f7ff",
23    ])
24    .domain([0, 0.2, 0.38, 0.45, 0.65, 0.7, 0.85, 1]),
25  red: colorRamp(chroma("#c94922")),
26  orange: colorRamp(chroma("#c76b29")),
27  yellow: colorRamp(chroma("#c08b30")),
28  green: colorRamp(chroma("#ac9739")),
29  cyan: colorRamp(chroma("#22a2c9")),
30  blue: colorRamp(chroma("#3d8fd1")),
31  violet: colorRamp(chroma("#6679cc")),
32  magenta: colorRamp(chroma("#9c637a")),
33};
34
35export const dark = createColorScheme(`${name} Dark`, false, ramps);
36export const light = createColorScheme(`${name} Light`, true, ramps);