brushtrees.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createTheme } from "./common/base16";
 3
 4const name = "brush-tree";
 5
 6const ramps = {
 7  neutral: chroma.scale([
 8    "#485867",
 9    "#5A6D7A",
10    "#6D828E",
11    "#8299A1",
12    "#98AFB5",
13    "#B0C5C8",
14    "#C9DBDC",
15    "#E3EFEF",
16  ]),
17  red: colorRamp(chroma("#b38686")),
18  orange: colorRamp(chroma("#d8bba2")),
19  yellow: colorRamp(chroma("#aab386")),
20  green: colorRamp(chroma("#87b386")),
21  cyan: colorRamp(chroma("#86b3b3")),
22  blue: colorRamp(chroma("#868cb3")),
23  violet: colorRamp(chroma("#b386b2")),
24  magenta: colorRamp(chroma("#b39f9f")),
25};
26
27export const dark = createTheme(`${name}-dark`, false, ramps);
28export const light = createTheme(`${name}-light`, true, ramps);