1import chroma from "chroma-js";
2import { colorRamp, createColorScheme } from "./common/ramps";
3
4const name = "cave";
5
6const ramps = {
7 neutral: chroma.scale([
8 "#19171c",
9 "#26232a",
10 "#585260",
11 "#655f6d",
12 "#7e7887",
13 "#8b8792",
14 "#e2dfe7",
15 "#efecf4",
16 ]).domain([
17 0,
18 0.3,
19 0.45,
20 0.6,
21 0.65,
22 0.7,
23 0.85,
24 1
25 ]),
26 red: colorRamp(chroma("#be4678")),
27 orange: colorRamp(chroma("#aa573c")),
28 yellow: colorRamp(chroma("#a06e3b")),
29 green: colorRamp(chroma("#2a9292")),
30 cyan: colorRamp(chroma("#398bc6")),
31 blue: colorRamp(chroma("#576ddb")),
32 violet: colorRamp(chroma("#955ae7")),
33 magenta: colorRamp(chroma("#bf40bf")),
34};
35
36export const dark = createColorScheme(`${name}-dark`, false, ramps);
37export const light = createColorScheme(`${name}-light`, true, ramps);