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([color.base, color.surface, color.highlightHigh, color.overlay, color.muted, color.subtle, color.text]),
24 red: colorRamp(chroma(color.love)),
25 orange: colorRamp(chroma(color.iris)),
26 yellow: colorRamp(chroma(color.gold)),
27 green: colorRamp(chroma(green)),
28 cyan: colorRamp(chroma(color.pine)),
29 blue: colorRamp(chroma(color.foam)),
30 violet: colorRamp(chroma(color.iris)),
31 magenta: colorRamp(chroma(magenta)),
32 },
33 override: {
34 syntax: syntax(color)
35 }
36}