rose-pine-dawn.ts

 1import {
 2    chroma,
 3    color_ramp,
 4    ThemeAppearance,
 5    ThemeLicenseType,
 6    ThemeConfig,
 7} from "../../common"
 8
 9import { color as c, syntax } from "./common"
10
11const color = c.dawn
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 Dawn",
18    author: "edunfelt",
19    appearance: ThemeAppearance.Light,
20    license_type: ThemeLicenseType.MIT,
21    license_url: "https://github.com/edunfelt/base16-rose-pine-scheme",
22    license_file: `${__dirname}/LICENSE`,
23    input_color: {
24        neutral: chroma
25            .scale(
26                [
27                    color.base,
28                    color.surface,
29                    color.highlight_high,
30                    color.overlay,
31                    color.muted,
32                    color.subtle,
33                    color.text,
34                ].reverse()
35            )
36            .domain([0, 0.35, 0.45, 0.65, 0.7, 0.8, 0.9, 1]),
37        red: color_ramp(chroma(color.love)),
38        orange: color_ramp(chroma(color.iris)),
39        yellow: color_ramp(chroma(color.gold)),
40        green: color_ramp(chroma(green)),
41        cyan: color_ramp(chroma(color.pine)),
42        blue: color_ramp(chroma(color.foam)),
43        violet: color_ramp(chroma(color.iris)),
44        magenta: color_ramp(chroma(magenta)),
45    },
46    override: {
47        syntax: syntax(color),
48    },
49}