rose-pine-dawn.ts

 1import chroma from "chroma-js";
 2import { colorRamp, createColorScheme } from "./common/ramps";
 3
 4const name = "Rosé Pine Dawn";
 5const author = "edunfelt";
 6const url = "https://github.com/edunfelt/base16-rose-pine-scheme";
 7const license = {
 8  type: "MIT",
 9  url: "https://github.com/edunfelt/base16-rose-pine-scheme/blob/main/rose-pine-dawn.yaml",
10};
11
12const ramps = {
13  neutral: chroma
14    .scale([
15      "#575279",
16      "#797593",
17      "#9893A5",
18      "#B5AFB8",
19      "#D3CCCC",
20      "#F2E9E1",
21      "#FFFAF3",
22      "#FAF4ED",
23    ])
24    .domain([0, 0.35, 0.45, 0.65, 0.7, 0.8, 0.9, 1]),
25  red: colorRamp(chroma("#B4637A")),
26  orange: colorRamp(chroma("#D7827E")),
27  yellow: colorRamp(chroma("#EA9D34")),
28  green: colorRamp(chroma("#679967")),
29  cyan: colorRamp(chroma("#286983")),
30  blue: colorRamp(chroma("#56949F")),
31  violet: colorRamp(chroma("#907AA9")),
32  magenta: colorRamp(chroma("#79549F")),
33};
34
35export const light = createColorScheme(`${name}`, true, ramps);