@gitlab/ui 80.13.2 → 80.14.1
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/CHANGELOG.md +15 -0
- package/dist/components/utilities/truncate/truncate.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +5 -1
- package/dist/tokens/build/js/tokens.js +5 -1
- package/dist/tokens/css/tokens.css +4 -0
- package/dist/tokens/css/tokens.dark.css +4 -0
- package/dist/tokens/js/tokens.dark.js +4 -0
- package/dist/tokens/js/tokens.js +4 -0
- package/dist/tokens/json/tokens.dark.json +92 -0
- package/dist/tokens/json/tokens.json +92 -0
- package/dist/tokens/scss/_tokens.dark.scss +4 -0
- package/dist/tokens/scss/_tokens.scss +4 -0
- package/dist/tokens/scss/_tokens_custom_properties.scss +4 -0
- package/dist/tokens/tailwind/tokens.cjs +16 -0
- package/package.json +5 -5
- package/src/components/utilities/truncate/truncate.scss +1 -1
- package/src/components/utilities/truncate/truncate.vue +3 -3
- package/src/tokens/background.tokens.json +38 -0
- package/src/tokens/build/css/tokens.css +4 -0
- package/src/tokens/build/css/tokens.dark.css +4 -0
- package/src/tokens/build/js/tokens.dark.js +4 -0
- package/src/tokens/build/js/tokens.js +4 -0
- package/src/tokens/build/json/tokens.dark.json +92 -0
- package/src/tokens/build/json/tokens.json +92 -0
- package/src/tokens/build/scss/_tokens.dark.scss +4 -0
- package/src/tokens/build/scss/_tokens.scss +4 -0
- package/src/tokens/build/scss/_tokens_custom_properties.scss +4 -0
- package/src/tokens/build/tailwind/tokens.cjs +16 -0
- package/tailwind.defaults.js +2 -1
|
@@ -1,4 +1,96 @@
|
|
|
1
1
|
{
|
|
2
|
+
"background": {
|
|
3
|
+
"color": {
|
|
4
|
+
"default": {
|
|
5
|
+
"value": "#fff",
|
|
6
|
+
"$type": "color",
|
|
7
|
+
"comment": "Used for the default background color.",
|
|
8
|
+
"filePath": "src/tokens/background.tokens.json",
|
|
9
|
+
"isSource": true,
|
|
10
|
+
"original": {
|
|
11
|
+
"value": {
|
|
12
|
+
"default": "{color.neutral.0}",
|
|
13
|
+
"dark": "{color.neutral.950}"
|
|
14
|
+
},
|
|
15
|
+
"$type": "color",
|
|
16
|
+
"comment": "Used for the default background color."
|
|
17
|
+
},
|
|
18
|
+
"name": "BACKGROUND_COLOR_DEFAULT",
|
|
19
|
+
"attributes": {},
|
|
20
|
+
"path": [
|
|
21
|
+
"background",
|
|
22
|
+
"color",
|
|
23
|
+
"default"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"subtle": {
|
|
27
|
+
"value": "#fbfafd",
|
|
28
|
+
"$type": "color",
|
|
29
|
+
"comment": "Used to slightly differentiate the background from the default.",
|
|
30
|
+
"filePath": "src/tokens/background.tokens.json",
|
|
31
|
+
"isSource": true,
|
|
32
|
+
"original": {
|
|
33
|
+
"value": {
|
|
34
|
+
"default": "{color.neutral.10}",
|
|
35
|
+
"dark": "{color.neutral.900}"
|
|
36
|
+
},
|
|
37
|
+
"$type": "color",
|
|
38
|
+
"comment": "Used to slightly differentiate the background from the default."
|
|
39
|
+
},
|
|
40
|
+
"name": "BACKGROUND_COLOR_SUBTLE",
|
|
41
|
+
"attributes": {},
|
|
42
|
+
"path": [
|
|
43
|
+
"background",
|
|
44
|
+
"color",
|
|
45
|
+
"subtle"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"strong": {
|
|
49
|
+
"value": "#ececef",
|
|
50
|
+
"$type": "color",
|
|
51
|
+
"comment": "Used to make the background easily stand out from the default.",
|
|
52
|
+
"filePath": "src/tokens/background.tokens.json",
|
|
53
|
+
"isSource": true,
|
|
54
|
+
"original": {
|
|
55
|
+
"value": {
|
|
56
|
+
"default": "{color.neutral.50}",
|
|
57
|
+
"dark": "{color.neutral.800}"
|
|
58
|
+
},
|
|
59
|
+
"$type": "color",
|
|
60
|
+
"comment": "Used to make the background easily stand out from the default."
|
|
61
|
+
},
|
|
62
|
+
"name": "BACKGROUND_COLOR_STRONG",
|
|
63
|
+
"attributes": {},
|
|
64
|
+
"path": [
|
|
65
|
+
"background",
|
|
66
|
+
"color",
|
|
67
|
+
"strong"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"disabled": {
|
|
71
|
+
"value": "#fbfafd",
|
|
72
|
+
"$type": "color",
|
|
73
|
+
"comment": "Used to identify a disabled section.",
|
|
74
|
+
"filePath": "src/tokens/background.tokens.json",
|
|
75
|
+
"isSource": true,
|
|
76
|
+
"original": {
|
|
77
|
+
"value": {
|
|
78
|
+
"default": "{color.neutral.10}",
|
|
79
|
+
"dark": "{color.neutral.900}"
|
|
80
|
+
},
|
|
81
|
+
"$type": "color",
|
|
82
|
+
"comment": "Used to identify a disabled section."
|
|
83
|
+
},
|
|
84
|
+
"name": "BACKGROUND_COLOR_DISABLED",
|
|
85
|
+
"attributes": {},
|
|
86
|
+
"path": [
|
|
87
|
+
"background",
|
|
88
|
+
"color",
|
|
89
|
+
"disabled"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
2
94
|
"color": {
|
|
3
95
|
"blue": {
|
|
4
96
|
"50": {
|
|
@@ -312,3 +312,7 @@ $gl-text-color-heading: $gl-color-neutral-0 !default; // Used for headings level
|
|
|
312
312
|
$gl-text-color-strong: $gl-color-neutral-0 !default; // Used for text with the highest contrast.
|
|
313
313
|
$gl-text-color-subtle: $gl-color-neutral-200 !default; // Used for supplemental text that doesn't need to be as prominent as other text.
|
|
314
314
|
$gl-text-color-default: $gl-color-neutral-50 !default; // Used for the default text color.
|
|
315
|
+
$gl-background-color-disabled: $gl-color-neutral-900; // Used to identify a disabled section.
|
|
316
|
+
$gl-background-color-strong: $gl-color-neutral-800; // Used to make the background easily stand out from the default.
|
|
317
|
+
$gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
|
|
318
|
+
$gl-background-color-default: $gl-color-neutral-950; // Used for the default background color.
|
|
@@ -312,3 +312,7 @@ $gl-text-color-heading: $gl-color-neutral-950 !default; // Used for headings lev
|
|
|
312
312
|
$gl-text-color-strong: $gl-color-neutral-950 !default; // Used for text with the highest contrast.
|
|
313
313
|
$gl-text-color-subtle: $gl-color-neutral-600 !default; // Used for supplemental text that doesn't need to be as prominent as other text.
|
|
314
314
|
$gl-text-color-default: $gl-color-neutral-800 !default; // Used for the default text color.
|
|
315
|
+
$gl-background-color-disabled: $gl-color-neutral-10; // Used to identify a disabled section.
|
|
316
|
+
$gl-background-color-strong: $gl-color-neutral-50; // Used to make the background easily stand out from the default.
|
|
317
|
+
$gl-background-color-subtle: $gl-color-neutral-10; // Used to slightly differentiate the background from the default.
|
|
318
|
+
$gl-background-color-default: $gl-color-neutral-0; // Used for the default background color.
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
* Do not edit directly
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
$gl-background-color-default: var(--gl-background-color-default);
|
|
7
|
+
$gl-background-color-subtle: var(--gl-background-color-subtle);
|
|
8
|
+
$gl-background-color-strong: var(--gl-background-color-strong);
|
|
9
|
+
$gl-background-color-disabled: var(--gl-background-color-disabled);
|
|
6
10
|
$gl-color-blue-50: var(--gl-color-blue-50);
|
|
7
11
|
$gl-color-blue-100: var(--gl-color-blue-100);
|
|
8
12
|
$gl-color-blue-200: var(--gl-color-blue-200);
|
|
@@ -214,6 +214,16 @@ const textColors = {
|
|
|
214
214
|
disabled:
|
|
215
215
|
'var(--gl-text-color-disabled, var(--gl-color-neutral-400, #89888d))',
|
|
216
216
|
};
|
|
217
|
+
const backgroundColors = {
|
|
218
|
+
default:
|
|
219
|
+
'var(--gl-background-color-default, var(--gl-color-neutral-0, #fff))',
|
|
220
|
+
subtle:
|
|
221
|
+
'var(--gl-background-color-subtle, var(--gl-color-neutral-10, #fbfafd))',
|
|
222
|
+
strong:
|
|
223
|
+
'var(--gl-background-color-strong, var(--gl-color-neutral-50, #ececef))',
|
|
224
|
+
disabled:
|
|
225
|
+
'var(--gl-background-color-disabled, var(--gl-color-neutral-10, #fbfafd))',
|
|
226
|
+
};
|
|
217
227
|
|
|
218
228
|
const colors = {
|
|
219
229
|
transparent: 'transparent',
|
|
@@ -224,6 +234,11 @@ const colors = {
|
|
|
224
234
|
...dataVizColors,
|
|
225
235
|
};
|
|
226
236
|
|
|
237
|
+
const backgroundColor = {
|
|
238
|
+
...colors,
|
|
239
|
+
...backgroundColors,
|
|
240
|
+
};
|
|
241
|
+
|
|
227
242
|
const textColor = {
|
|
228
243
|
...colors,
|
|
229
244
|
...textColors,
|
|
@@ -234,5 +249,6 @@ const textColor = {
|
|
|
234
249
|
|
|
235
250
|
module.exports = {
|
|
236
251
|
colors,
|
|
252
|
+
backgroundColor,
|
|
237
253
|
textColor,
|
|
238
254
|
};
|
package/tailwind.defaults.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { colors, textColor } = require('./src/tokens/build/tailwind/tokens.cjs');
|
|
1
|
+
const { colors, backgroundColor, textColor } = require('./src/tokens/build/tailwind/tokens.cjs');
|
|
2
2
|
|
|
3
3
|
const gridSize = 0.5; // rem
|
|
4
4
|
const spacing = {
|
|
@@ -48,6 +48,7 @@ module.exports = {
|
|
|
48
48
|
xl: '1200px',
|
|
49
49
|
},
|
|
50
50
|
colors,
|
|
51
|
+
backgroundColor,
|
|
51
52
|
spacing,
|
|
52
53
|
fontSize: {
|
|
53
54
|
xs: '0.625rem',
|