rose-pine.ts

 1import chroma from "chroma-js";
 2import { Meta } from "./common/colorScheme";
 3import { colorRamp, createColorScheme } from "./common/ramps";
 4
 5const name = "Rosé Pine";
 6
 7const ramps = {
 8  neutral: chroma.scale([
 9    "#191724",
10    "#1f1d2e",
11    "#26233A",
12    "#3E3A53",
13    "#56526C",
14    "#6E6A86",
15    "#908CAA",
16    "#E0DEF4",
17  ]),
18  red: colorRamp(chroma("#EB6F92")),
19  orange: colorRamp(chroma("#EBBCBA")),
20  yellow: colorRamp(chroma("#F6C177")),
21  green: colorRamp(chroma("#8DBD8D")),
22  cyan: colorRamp(chroma("#409BBE")),
23  blue: colorRamp(chroma("#9CCFD8")),
24  violet: colorRamp(chroma("#C4A7E7")),
25  magenta: colorRamp(chroma("#AB6FE9")),
26};
27
28export const dark = createColorScheme(`${name}`, false, ramps);
29
30export const meta: Meta = {
31  name,
32  author: "edunfelt",
33  license: {
34    SPDX: "MIT",
35    https_url: "https://raw.githubusercontent.com/edunfelt/base16-rose-pine-scheme/main/LICENSE",
36    license_checksum: "6ca1b9da8c78c8441c5aa43d024a4e4a7bf59d1ecca1480196e94fda0f91ee4a"
37  },
38  url: "https://github.com/edunfelt/base16-rose-pine-scheme"
39}