1import chroma from "chroma-js";
2import { colorRamp, createTheme } from "./common/base16";
3
4const name = "solarized";
5
6const ramps = {
7 neutral: chroma.scale(["#002b36", "#073642", "#586e75", "#657b83", "#839496", "#93a1a1", "#eee8d5", "#fdf6e3"]),
8 red: colorRamp(chroma("#dc322f")),
9 orange: colorRamp(chroma("#cb4b16")),
10 yellow: colorRamp(chroma("#b58900")),
11 green: colorRamp(chroma("#859900")),
12 cyan: colorRamp(chroma("#2aa198")),
13 blue: colorRamp(chroma("#268bd2")),
14 violet: colorRamp(chroma("#6c71c4")),
15 magenta: colorRamp(chroma("#d33682")),
16}
17
18export const dark = createTheme(`${name}-dark`, false, ramps);
19export const light = createTheme(`${name}-light`, true, ramps);