atelier-cave.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createColorScheme } from "./common/ramps";
 3
 4const name = "Atelier Cave";
 5const author = "atelierbram";
 6const url = "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/";
 7const license = {
 8  type: "MIT",
 9  url: "https://github.com/atelierbram/syntax-highlighting/blob/master/LICENSE",
10};
11
12export const dark = createColorScheme(`${name} Dark`, false, {
13  neutral: chroma
14    .scale([
15      "#19171c",
16      "#26232a",
17      "#585260",
18      "#655f6d",
19      "#7e7887",
20      "#8b8792",
21      "#e2dfe7",
22      "#efecf4",
23    ])
24    .domain([0, 0.15, 0.45, 0.6, 0.65, 0.7, 0.85, 1]),
25  red: colorRamp(chroma("#be4678")),
26  orange: colorRamp(chroma("#aa573c")),
27  yellow: colorRamp(chroma("#a06e3b")),
28  green: colorRamp(chroma("#2a9292")),
29  cyan: colorRamp(chroma("#398bc6")),
30  blue: colorRamp(chroma("#576ddb")),
31  violet: colorRamp(chroma("#955ae7")),
32  magenta: colorRamp(chroma("#bf40bf")),
33});
34
35export const light = createColorScheme(`${name} Light`, true, {
36  neutral: chroma
37    .scale([
38      "#19171c",
39      "#26232a",
40      "#585260",
41      "#655f6d",
42      "#7e7887",
43      "#8b8792",
44      "#e2dfe7",
45      "#efecf4",
46    ])
47    .correctLightness(),
48  red: colorRamp(chroma("#be4678")),
49  orange: colorRamp(chroma("#aa573c")),
50  yellow: colorRamp(chroma("#a06e3b")),
51  green: colorRamp(chroma("#2a9292")),
52  cyan: colorRamp(chroma("#398bc6")),
53  blue: colorRamp(chroma("#576ddb")),
54  violet: colorRamp(chroma("#955ae7")),
55  magenta: colorRamp(chroma("#bf40bf")),
56});