rose-pine-moon.ts

 1import {
 2    chroma,
 3    colorRamp,
 4    ThemeAppearance,
 5    ThemeLicenseType,
 6    ThemeConfig,
 7} from "../../common"
 8
 9import { color as c, syntax } from "./common";
10
11const color = c.moon
12
13const green = chroma.mix(color.foam, "#10b981", 0.6, 'lab');
14const magenta = chroma.mix(color.love, color.pine, 0.5, 'lab');
15
16export const theme: ThemeConfig = {
17    name: "Rosé Pine Moon",
18    author: "edunfelt",
19    appearance: ThemeAppearance.Dark,
20    licenseType: ThemeLicenseType.MIT,
21    licenseUrl: "https://github.com/edunfelt/base16-rose-pine-scheme",
22    licenseFile: `${__dirname}/LICENSE`,
23    inputColor: {
24        neutral: chroma.scale([color.base, color.surface, color.highlightHigh, color.overlay, color.muted, color.subtle, color.text]).domain([0, 0.3, 0.55, 1]),
25        red: colorRamp(chroma(color.love)),
26        orange: colorRamp(chroma(color.iris)),
27        yellow: colorRamp(chroma(color.gold)),
28        green: colorRamp(chroma(green)),
29        cyan: colorRamp(chroma(color.pine)),
30        blue: colorRamp(chroma(color.foam)),
31        violet: colorRamp(chroma(color.iris)),
32        magenta: colorRamp(chroma(magenta)),
33    },
34    override: {
35        syntax: syntax(color)
36    }
37}