sandcastle.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createColorScheme } from "./common/ramps";
 3
 4const name = "Sandcastle";
 5const author = "gessig";
 6const url = "https://github.com/gessig/base16-sandcastle-scheme";
 7const license = {
 8  type: "MIT",
 9  url: "https://github.com/gessig/base16-sandcastle-scheme/blob/master/LICENSE",
10};
11
12const ramps = {
13  neutral: chroma.scale([
14    "#282c34",
15    "#2c323b",
16    "#3e4451",
17    "#665c54",
18    "#928374",
19    "#a89984",
20    "#d5c4a1",
21    "#fdf4c1",
22  ]),
23  red: colorRamp(chroma("#B4637A")),
24  orange: colorRamp(chroma("#a07e3b")),
25  yellow: colorRamp(chroma("#a07e3b")),
26  green: colorRamp(chroma("#83a598")),
27  cyan: colorRamp(chroma("#83a598")),
28  blue: colorRamp(chroma("#528b8b")),
29  violet: colorRamp(chroma("#d75f5f")),
30  magenta: colorRamp(chroma("#a87322")),
31};
32
33export const dark = createColorScheme(`${name}`, false, ramps);