atelier-dune.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createColorScheme } from "../common/ramps";
 3
 4const name = "Atelier Dune";
 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.scale([
14    "#20201d",
15    "#292824",
16    "#6e6b5e",
17    "#7d7a68",
18    "#999580",
19    "#a6a28c",
20    "#e8e4cf",
21    "#fefbec",
22  ]),
23  red: colorRamp(chroma("#d73737")),
24  orange: colorRamp(chroma("#b65611")),
25  yellow: colorRamp(chroma("#ae9513")),
26  green: colorRamp(chroma("#60ac39")),
27  cyan: colorRamp(chroma("#1fad83")),
28  blue: colorRamp(chroma("#6684e1")),
29  violet: colorRamp(chroma("#b854d4")),
30  magenta: colorRamp(chroma("#d43552")),
31};
32
33export const dark = createColorScheme(`${name} Dark`, false, ramps);
34export const light = createColorScheme(`${name} Light`, true, ramps);