one-dark.ts

 1import chroma from "chroma-js";
 2import { Meta } from "./common/colorScheme";
 3import { colorRamp, createColorScheme } from "./common/ramps";
 4
 5const name = "One Dark";
 6
 7export const dark = createColorScheme(`${name}`, false, {
 8  neutral: chroma
 9    .scale([
10      "#282c34",
11      "#353b45",
12      "#3e4451",
13      "#545862",
14      "#565c64",
15      "#abb2bf",
16      "#b6bdca",
17      "#c8ccd4",
18    ])
19    .domain([0.05, 0.22, 0.25, 0.45, 0.62, 0.8, 0.9, 1]),
20
21  red: colorRamp(chroma("#e06c75")),
22  orange: colorRamp(chroma("#d19a66")),
23  yellow: colorRamp(chroma("#e5c07b")),
24  green: colorRamp(chroma("#98c379")),
25  cyan: colorRamp(chroma("#56b6c2")),
26  blue: colorRamp(chroma("#61afef")),
27  violet: colorRamp(chroma("#c678dd")),
28  magenta: colorRamp(chroma("#be5046")),
29});
30
31export const meta: Meta = {
32  name,
33  author: "simurai",
34  license: {
35    SPDX: "MIT",
36    https_url: "https://raw.githubusercontent.com/atom/atom/master/packages/one-light-ui/LICENSE.md",
37    license_checksum: "d5af8fc171f6f600c0ab4e7597dca398dda80dbe6821ce01cef78e859e7a00f8"
38  },
39  url: "https://github.com/atom/atom/tree/master/packages/one-dark-ui"
40}