Add the One Dark/ One Light themes

This commit is contained in:
Nate Butler 2022-07-16 11:52:40 -04:00
parent ef2b42c3fb
commit 45ea412d2c
2 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,46 @@
import chroma from "chroma-js";
import { colorRamp, createTheme } from "./common/base16";
const name = "one";
const author = "Chris Kempson (http://chriskempson.com)"
const url = "https://github.com/chriskempson/base16-vim/blob/master/colors/base16-onedark.vim"
const base00 = "#282c34"
const base01 = "#353b45"
const base02 = "#3e4451"
const base03 = "#545862"
const base04 = "#565c64"
const base05 = "#abb2bf"
const base06 = "#b6bdca"
const base07 = "#c8ccd4"
const base08 = "#e06c75"
const base09 = "#d19a66"
const base0A = "#e5c07b"
const base0B = "#98c379"
const base0C = "#56b6c2"
const base0D = "#61afef"
const base0E = "#c678dd"
const base0F = "#be5046"
const ramps = {
neutral: chroma.scale([
base00,
base01,
base02,
base03,
base04,
base05,
base06,
base07
]),
red: colorRamp(chroma(base08)),
orange: colorRamp(chroma(base09)),
yellow: colorRamp(chroma(base0A)),
green: colorRamp(chroma(base0B)),
cyan: colorRamp(chroma(base0C)),
blue: colorRamp(chroma(base0D)),
violet: colorRamp(chroma(base0E)),
magenta: colorRamp(chroma(base0F)),
};
export const dark = createTheme(`${name}-dark`, false, ramps);

View File

@ -0,0 +1,46 @@
import chroma from "chroma-js";
import { colorRamp, createTheme } from "./common/base16";
const name = "one";
const author = "Daniel Pfeifer (http://github.com/purpleKarrot)"
const url = "https://github.com/purpleKarrot/base16-one-light-scheme/blob/master/one-light.yaml"
const base00 = "#090a0b"
const base01 = "#202227"
const base02 = "#383a42"
const base03 = "#a0a1a7"
const base04 = "#696c77"
const base05 = "#a0a1a7"
const base06 = "#e5e5e6"
const base07 = "#f0f0f1"
const base08 = "#fafafa"
const base09 = "#d75f00"
const base0A = "#c18401"
const base0B = "#50a14f"
const base0C = "#0184bc"
const base0D = "#4078f2"
const base0E = "#a626a4"
const base0F = "#986801"
const ramps = {
neutral: chroma.scale([
base00,
base01,
base02,
base03,
base04,
base05,
base06,
base07
]),
red: colorRamp(chroma(base08)),
orange: colorRamp(chroma(base09)),
yellow: colorRamp(chroma(base0A)),
green: colorRamp(chroma(base0B)),
cyan: colorRamp(chroma(base0C)),
blue: colorRamp(chroma(base0D)),
violet: colorRamp(chroma(base0E)),
magenta: colorRamp(chroma(base0F)),
};
export const light = createTheme(`${name}-light`, true, ramps);