From 45ea412d2c92d94bb911179f2af45c0850e2f274 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Sat, 16 Jul 2022 11:52:40 -0400 Subject: [PATCH] Add the One Dark/ One Light themes --- styles/src/themes/one-dark.ts | 46 ++++++++++++++++++++++++++++++++++ styles/src/themes/one-light.ts | 46 ++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 styles/src/themes/one-dark.ts create mode 100644 styles/src/themes/one-light.ts diff --git a/styles/src/themes/one-dark.ts b/styles/src/themes/one-dark.ts new file mode 100644 index 0000000000..8f65dffd76 --- /dev/null +++ b/styles/src/themes/one-dark.ts @@ -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); \ No newline at end of file diff --git a/styles/src/themes/one-light.ts b/styles/src/themes/one-light.ts new file mode 100644 index 0000000000..d78f00ff55 --- /dev/null +++ b/styles/src/themes/one-light.ts @@ -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); \ No newline at end of file