import chroma from "chroma-js";
import { colorRamp, createColorScheme } from "./common/ramps";

const name = "Rosé Pine Moon";
const author = "edunfelt";
const url = "https://github.com/edunfelt/base16-rose-pine-scheme";
const license = {
  type: "MIT",
  url: "https://github.com/edunfelt/base16-rose-pine-scheme/blob/main/rose-pine-moon.yaml",
};

const ramps = {
  neutral: chroma
    .scale([
      "#232136",
      "#2A273F",
      "#393552",
      "#3E3A53",
      "#56526C",
      "#6E6A86",
      "#908CAA",
      "#E0DEF4",
    ])
    .domain([0, 0.3, 0.55, 1]),
  red: colorRamp(chroma("#EB6F92")),
  orange: colorRamp(chroma("#EBBCBA")),
  yellow: colorRamp(chroma("#F6C177")),
  green: colorRamp(chroma("#8DBD8D")),
  cyan: colorRamp(chroma("#409BBE")),
  blue: colorRamp(chroma("#9CCFD8")),
  violet: colorRamp(chroma("#C4A7E7")),
  magenta: colorRamp(chroma("#AB6FE9")),
};

export const dark = createColorScheme(`${name}`, false, ramps);
