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