rose-pine.ts

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