atelier-cave.ts

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