-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblood-moon.ts
86 lines (77 loc) · 1.89 KB
/
blood-moon.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import Color from 'color';
import {BaseColorScheme, Theme} from './types';
function lighten(hex: string, value: number): string {
const rgb = Color(hex)
.lighten(value)
.rgb()
.array();
const lightenedHex =
'#' +
rgb
.map(x => {
const xHex = Math.floor(x).toString(16);
return xHex.length === 1 ? '0' + xHex : xHex;
})
.join('');
return lightenedHex;
}
const black = '#10100E';
const gray = '#696969'; // Dim gray
const white = '#C6C6C4';
const brightWhite = '#FFFAFA'; // Snow
const green = '#009F6B'; // NCS green
const brightGreen = '#03C03C'; // Dark pastel green
const cyan = '#20B2AA'; // bright sea green
const brightCyan = '#00CCCC'; // Robin egg blue
const blue = '#0087BD'; // NCS blue
const brightBlue = '#007FFF'; // Azure
const magenta = '#9A4EAE';
const pink = '#FF1493'; // Deep pink
const brown = '#CD853F'; // Peru
const red = '#C40233'; // NCS red
const darkRed = '#800020'; // Oxblood
const brightRed = '#FF2400'; // Scarlet
const orange = '#EE7F2D'; // Princeton
const yellow = '#FFD700'; // Gold
const brightYellow = '#FDFF00'; // Lemon
const background = black;
const colors: BaseColorScheme = {
black,
gray,
white,
brightWhite,
green,
brightGreen,
cyan,
brightCyan,
blue,
brightBlue,
magenta,
pink,
brown,
red,
darkRed,
brightRed,
orange,
yellow,
brightYellow,
// UI
background,
foreground: white,
selection: darkRed,
selectionText: white,
ruler: lighten(background, 0.3),
// syntax
syntaxLink: blue,
syntaxComment: gray
};
const theme: Theme = {
colors,
meta: {
description: 'Dark and bold color scheme',
homepage: 'https://github.com/dguo/blood-moon',
name: 'blood-moon',
maintainer: 'Danny Guo'
}
};
export default theme;