-
Notifications
You must be signed in to change notification settings - Fork 121
/
colorTheme.ts
39 lines (37 loc) · 946 Bytes
/
colorTheme.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
export interface IColors {
[colorId: string]: string;
}
export interface TokenColor extends Object {
name?: string;
scope?: string | string[];
settings?: object;
}
/**
* Color scheme used by the OS and by color themes.
*/
export enum ColorScheme {
DARK = 'dark',
LIGHT = 'light',
HIGH_CONTRAST = 'hc',
}
export interface IColorTheme {
/**
* The id of component, theme will be applied by this ID
*/
id: string;
label: string;
name?: string;
uiTheme?: string;
path?: string;
description?: string;
type?: ColorScheme;
colors?: IColors;
tokenColors?: TokenColor[];
/**
* The semanticTokenColors mappings as well as
* the semanticHighlighting setting
* allow to enhance the highlighting in the editor
* More info visit: https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide
*/
semanticHighlighting?: boolean;
}