aboutsummaryrefslogtreecommitdiff
path: root/themes/src/dark/yaru-dark.ts
blob: 008bc7b8b02bcce9e99ef68e8a162330e54c711a (plain)
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
87
88
89
90
91
92
93
94
95
96
97
98
import * as path from 'path';
import { generateTheme, IColorSet } from 'vscode-theme-generator';

const themeName = 'Yaru Dark';
const colors = {
  white: '#FFFFFF',
  cyan: '#55ffff',
  red: '#FF5555',
  green: '#55ff55',
  ubuntuOrange: '#e95420',
  lightAubergine: '#bb90b7',
  midAubergine: '#5e2750',
  darkAubergine: '#300a24',
  titleBarGray: '#2b2929',
  inactiveTitleBarGray: '#3d3a3a',
  menuGray: '#494949',
  bodyGray: '#383838',
  editorGray: '#2f2f2f',
  activityBarGray: '#484848',
  sideBarGray: '#343434',
  highlightGray: '#575757',
  commentGray: '#a8a8a8',
  badgeGreen: '#0c6d1a',
  badgeRed: '#991121',
}

const colorSet: IColorSet = {
  base: {
    background: colors.bodyGray,
    foreground: colors.white,
    color1: colors.ubuntuOrange,
    color2: colors.red,
    color3: colors.green,
    color4: colors.cyan
  },
  syntax: {
    comment: colors.commentGray,
    keyword: colors.lightAubergine,
    markdownQuote: colors.commentGray,
  },
  terminal: {
    black: '#000000',
    red: '#aa0000',
    green: '#00aa00',
    yellow: '#aa5500',
    blue: '#0000aa',
    magenta: '#aa00aa',
    cyan: '#00aaaa',
    white: '#aaaaaa',
    brightBlack: '#555555',
    brightRed: '#ff5555',
    brightGreen: '#55ff55',
    brightYellow: '#ffff55',
    brightBlue: '#5555ff',
    brightMagenta: '#ff55ff',
    brightCyan: '#55ffff',
    brightWhite: '#ffffff',
  },
  ui: {
    selection: colors.midAubergine,
    selectionHighlight: colors.midAubergine + 'aa',
    wordHighlight: colors.midAubergine + 'aa',
    wordHighlightStrong: colors.midAubergine + 'aa',
  },
  overrides: {
    'activityBar.background': colors.activityBarGray,
    'activityBarBadge.background': colors.badgeGreen,
    'badge.background': colors.badgeRed,
    'editor.background': colors.editorGray,
    'editorGroupHeader.tabsBackground': colors.bodyGray,
    'editorIndentGuide.activeBackground': colors.ubuntuOrange,
    'list.activeSelectionBackground': colors.ubuntuOrange,
    'list.hoverBackground': colors.highlightGray,
    'list.inactiveSelectionBackground': colors.highlightGray,
    'menu.background': colors.menuGray,
    'menu.selectionBackground': colors.highlightGray,
    'menubar.selectionBackground': colors.menuGray,
    'panel.background': colors.bodyGray,
    'input.background': colors.activityBarGray,
    'dropdown.background': colors.activityBarGray,
    'sideBar.background': colors.sideBarGray,
    'sideBarSectionHeader.background': colors.activityBarGray,
    'statusBar.background': colors.editorGray,
    'tab.inactiveBackground': colors.bodyGray,
    'tab.unfocusedInactiveBackground': colors.bodyGray,
    'terminal.background': colors.darkAubergine,
    'titleBar.activeBackground': colors.titleBarGray,
    'titleBar.inactiveBackground': colors.inactiveTitleBarGray,
  }
};

var fileName = themeName
  .toLowerCase()
  .replace(/\[\w*\]/, '')
  .trim()
  .replace(/\s+/, '-') + '.json';

generateTheme(themeName, colorSet, path.join(__dirname, fileName));