rose-pine.ts

 1import {
 2    chroma,
 3    color_ramp,
 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    license_type: ThemeLicenseType.MIT,
20    license_url: "https://github.com/edunfelt/base16-rose-pine-scheme",
21    license_file: `${__dirname}/LICENSE`,
22    input_color: {
23        neutral: chroma.scale([
24            color.base,
25            color.surface,
26            color.highlight_high,
27            color.overlay,
28            color.muted,
29            color.subtle,
30            color.text,
31        ]),
32        red: color_ramp(chroma(color.love)),
33        orange: color_ramp(chroma(color.iris)),
34        yellow: color_ramp(chroma(color.gold)),
35        green: color_ramp(chroma(green)),
36        cyan: color_ramp(chroma(color.pine)),
37        blue: color_ramp(chroma(color.foam)),
38        violet: color_ramp(chroma(color.iris)),
39        magenta: color_ramp(chroma(magenta)),
40    },
41    override: {
42        syntax: syntax(color),
43    },
44}