atelier-heath.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createColorScheme } from "../common/ramps";
 3
 4const name = "Atelier Heath";
 5const author = "atelierbram";
 6const url = "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath/";
 7const license = {
 8  type: "MIT",
 9  url: "https://github.com/atelierbram/syntax-highlighting/blob/master/LICENSE",
10};
11
12// `name-[light|dark]`, isLight, color ramps
13export const dark = createColorScheme(`${name} Dark`, false, {
14  neutral: chroma.scale([
15    "#1b181b",
16    "#292329",
17    "#695d69",
18    "#776977",
19    "#9e8f9e",
20    "#ab9bab",
21    "#d8cad8",
22    "#f7f3f7",
23  ]),
24  red: colorRamp(chroma("#ca402b")),
25  orange: colorRamp(chroma("#a65926")),
26  yellow: colorRamp(chroma("#bb8a35")),
27  green: colorRamp(chroma("#918b3b")),
28  cyan: colorRamp(chroma("#159393")),
29  blue: colorRamp(chroma("#516aec")),
30  violet: colorRamp(chroma("#7b59c0")),
31  magenta: colorRamp(chroma("#cc33cc")),
32});
33
34export const light = createColorScheme(`${name} Light`, true, {
35  neutral: chroma.scale([
36    "#161b1d",
37    "#1f292e",
38    "#516d7b",
39    "#5a7b8c",
40    "#7195a8",
41    "#7ea2b4",
42    "#c1e4f6",
43    "#ebf8ff",
44  ]),
45  red: colorRamp(chroma("#d22d72")),
46  orange: colorRamp(chroma("#935c25")),
47  yellow: colorRamp(chroma("#8a8a0f")),
48  green: colorRamp(chroma("#568c3b")),
49  cyan: colorRamp(chroma("#2d8f6f")),
50  blue: colorRamp(chroma("#257fad")),
51  violet: colorRamp(chroma("#6b6bb8")),
52  magenta: colorRamp(chroma("#b72dd2")),
53});