@filipgutica/design-system 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/language/editor-themes/graphite-indigo/README.md +1 -1
- package/language/editor-themes/graphite-indigo/THIRD_PARTY_NOTICES.md +1 -1
- package/language/editor-themes/graphite-indigo/themes/graphite-indigo-light-color-theme.json +11 -11
- package/package.json +1 -1
- package/theme-mapper/vscode.d.ts +5 -3
- package/theme-mapper/vscode.js +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Graphite Indigo
|
|
2
2
|
|
|
3
|
-
Cool graphite surfaces, indigo primary actions, and blue links and focus. Sidebar hover is neutral; current rows use white in light mode and a restrained indigo tint in dark mode. Includes light and dark themes with VS Code Light+ and Dark+ syntax token colors.
|
|
3
|
+
Cool graphite surfaces, indigo primary actions, and blue links and focus. Sidebar hover is neutral; current rows use white in light mode and a restrained indigo tint in dark mode. Includes light and dark themes with VS Code Light+ and Dark+ syntax token colors. Four Light+ colors are a step darker (number, comment, type, attribute), the smallest OKLCH lightness step that keeps their hue and reaches 4.5:1 on the light sidebar, where the design system draws code.
|
|
4
4
|
|
|
5
5
|
## Try it in T3 Code
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
Syntax token rules and semantic token colors are derived from Microsoft Visual Studio Code Light+ and Dark+ and their base themes. The Microsoft MIT license is included in LICENSE.
|
|
3
|
+
Syntax token rules and semantic token colors are derived from Microsoft Visual Studio Code Light+ and Dark+ and their base themes. Four Light+ colors are darkened slightly for contrast. The Microsoft MIT license is included in LICENSE.
|
|
4
4
|
|
|
5
5
|
Source: https://github.com/microsoft/vscode/tree/main/extensions/theme-defaults/themes
|
package/language/editor-themes/graphite-indigo/themes/graphite-indigo-light-color-theme.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
{
|
|
33
33
|
"scope": "comment",
|
|
34
34
|
"settings": {
|
|
35
|
-
"foreground": "#
|
|
35
|
+
"foreground": "#007a00"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"keyword.operator.minus.exponent"
|
|
50
50
|
],
|
|
51
51
|
"settings": {
|
|
52
|
-
"foreground": "#
|
|
52
|
+
"foreground": "#00784b"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
{
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
{
|
|
75
75
|
"scope": "entity.other.attribute-name",
|
|
76
76
|
"settings": {
|
|
77
|
-
"foreground": "#
|
|
77
|
+
"foreground": "#d40000"
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
{
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
{
|
|
136
136
|
"scope": "markup.inserted",
|
|
137
137
|
"settings": {
|
|
138
|
-
"foreground": "#
|
|
138
|
+
"foreground": "#00784b"
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
{
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
{
|
|
191
191
|
"scope": "meta.preprocessor.numeric",
|
|
192
192
|
"settings": {
|
|
193
|
-
"foreground": "#
|
|
193
|
+
"foreground": "#00784b"
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
{
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
"source.coffee.embedded"
|
|
300
300
|
],
|
|
301
301
|
"settings": {
|
|
302
|
-
"foreground": "#
|
|
302
|
+
"foreground": "#d40000"
|
|
303
303
|
}
|
|
304
304
|
},
|
|
305
305
|
{
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
{
|
|
349
349
|
"scope": "keyword.other.unit",
|
|
350
350
|
"settings": {
|
|
351
|
-
"foreground": "#
|
|
351
|
+
"foreground": "#00784b"
|
|
352
352
|
}
|
|
353
353
|
},
|
|
354
354
|
{
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
{
|
|
370
370
|
"scope": "constant.sha.git-rebase",
|
|
371
371
|
"settings": {
|
|
372
|
-
"foreground": "#
|
|
372
|
+
"foreground": "#00784b"
|
|
373
373
|
}
|
|
374
374
|
},
|
|
375
375
|
{
|
|
@@ -440,7 +440,7 @@
|
|
|
440
440
|
"storage.type.primitive.groovy"
|
|
441
441
|
],
|
|
442
442
|
"settings": {
|
|
443
|
-
"foreground": "#
|
|
443
|
+
"foreground": "#11728b"
|
|
444
444
|
}
|
|
445
445
|
},
|
|
446
446
|
{
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
"punctuation.separator.namespace.ruby"
|
|
456
456
|
],
|
|
457
457
|
"settings": {
|
|
458
|
-
"foreground": "#
|
|
458
|
+
"foreground": "#11728b"
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
461
|
{
|
|
@@ -588,7 +588,7 @@
|
|
|
588
588
|
"newOperator": "#AF00DB",
|
|
589
589
|
"stringLiteral": "#a31515",
|
|
590
590
|
"customLiteral": "#795E26",
|
|
591
|
-
"numberLiteral": "#
|
|
591
|
+
"numberLiteral": "#00784b"
|
|
592
592
|
},
|
|
593
593
|
"name": "Graphite Indigo Light",
|
|
594
594
|
"type": "light",
|
package/package.json
CHANGED
package/theme-mapper/vscode.d.ts
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* theme then never counts as high contrast. Many theme files leave the type to the extension manifest's `uiTheme`;
|
|
11
11
|
* translate it: `vs` is `light`, `vs-dark` is `dark`, `hc-black` is `hc`, and `hc-light` is `hcLight`.
|
|
12
12
|
* @property {Record<string, unknown>} [colors] Workbench colours by key, as #rgb, #rgba, #rrggbb, or #rrggbbaa.
|
|
13
|
-
* @property {unknown
|
|
13
|
+
* @property {unknown} [tokenColors] TextMate rules, `{ scope, settings: { foreground } }`, as the file supplies them;
|
|
14
|
+
* anything but an array of rules is ignored, so `./open-vsx` output passes as is. Merge an `include`'s
|
|
14
15
|
* rules first, so the including file's rules come later and win.
|
|
15
16
|
*/
|
|
16
17
|
/**
|
|
@@ -70,10 +71,11 @@ export type VsCodeTheme = {
|
|
|
70
71
|
*/
|
|
71
72
|
colors?: Record<string, unknown> | undefined;
|
|
72
73
|
/**
|
|
73
|
-
* TextMate rules, `{ scope, settings: { foreground } }
|
|
74
|
+
* TextMate rules, `{ scope, settings: { foreground } }`, as the file supplies them;
|
|
75
|
+
* anything but an array of rules is ignored, so `./open-vsx` output passes as is. Merge an `include`'s
|
|
74
76
|
* rules first, so the including file's rules come later and win.
|
|
75
77
|
*/
|
|
76
|
-
tokenColors?: unknown
|
|
78
|
+
tokenColors?: unknown;
|
|
77
79
|
};
|
|
78
80
|
/**
|
|
79
81
|
* A contrast check the mapped theme fails in its mode. A `theme` problem is in the theme's own colours, or a
|
package/theme-mapper/vscode.js
CHANGED
|
@@ -17,7 +17,8 @@ import { CHECKS, LIGHT, NEUTRALS, SYNTAX_ROLES, TEXT_ON_FILL_TOKENS, applyTheme,
|
|
|
17
17
|
* theme then never counts as high contrast. Many theme files leave the type to the extension manifest's `uiTheme`;
|
|
18
18
|
* translate it: `vs` is `light`, `vs-dark` is `dark`, `hc-black` is `hc`, and `hc-light` is `hcLight`.
|
|
19
19
|
* @property {Record<string, unknown>} [colors] Workbench colours by key, as #rgb, #rgba, #rrggbb, or #rrggbbaa.
|
|
20
|
-
* @property {unknown
|
|
20
|
+
* @property {unknown} [tokenColors] TextMate rules, `{ scope, settings: { foreground } }`, as the file supplies them;
|
|
21
|
+
* anything but an array of rules is ignored, so `./open-vsx` output passes as is. Merge an `include`'s
|
|
21
22
|
* rules first, so the including file's rules come later and win.
|
|
22
23
|
*/
|
|
23
24
|
/**
|