mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-09 10:45:00 +03:00
Add the One Dark/ One Light themes
This commit is contained in:
parent
ef2b42c3fb
commit
45ea412d2c
46
styles/src/themes/one-dark.ts
Normal file
46
styles/src/themes/one-dark.ts
Normal 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);
|
46
styles/src/themes/one-light.ts
Normal file
46
styles/src/themes/one-light.ts
Normal 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);
|
Loading…
Reference in New Issue
Block a user