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
53export const meta: Meta = {
54    name,
55    author: "atelierbram",
56    license: {
57        SPDX: "MIT",
58        license_text: {
59            https_url: "https://atelierbram.mit-license.org/license.txt",
60            license_checksum:
61                "f95ce526ef4e7eecf7a832bba0e3451cc1000f9ce63eb01ed6f64f8109f5d0a5",
62        }
63    },
64    url: "https://atelierbram.github.io/syntax-highlighting/atelier-schemes/cave/",
65}