one-light.ts

 1import chroma from "chroma-js";
 2import { Meta } from "./common/colorScheme";
 3import { colorRamp, createColorScheme } from "./common/ramps";
 4
 5const name = "One Light";
 6
 7export const light = createColorScheme(`${name}`, true, {
 8  neutral: chroma.scale([
 9    "#090a0b",
10    "#202227",
11    "#383a42",
12    "#696c77",
13    "#a0a1a7",
14    "#e5e5e6",
15    "#f0f0f1",
16    "#fafafa",
17  ])
18    .domain([0.05, 0.22, 0.25, 0.45, 0.62, 0.8, 0.9, 1]),
19
20  red: colorRamp(chroma("#ca1243")),
21  orange: colorRamp(chroma("#d75f00")),
22  yellow: colorRamp(chroma("#c18401")),
23  green: colorRamp(chroma("#50a14f")),
24  cyan: colorRamp(chroma("#0184bc")),
25  blue: colorRamp(chroma("#4078f2")),
26  violet: colorRamp(chroma("#a626a4")),
27  magenta: colorRamp(chroma("#986801")),
28});
29
30export const meta: Meta = {
31  name,
32  author: "simurai",
33  license: {
34    SPDX: "MIT",
35    https_url: "https://raw.githubusercontent.com/atom/atom/master/packages/one-light-ui/LICENSE.md",
36    license_checksum: "d5af8fc171f6f600c0ab4e7597dca398dda80dbe6821ce01cef78e859e7a00f8"
37  },
38  url: "https://github.com/atom/atom/tree/master/packages/one-light-ui"
39}