@gitlab/ui 137.1.2 → 137.2.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/dist/components/charts/chart/chart.js +81 -20
- package/dist/components/charts/gauge/gauge.js +3 -13
- package/dist/components/charts/heatmap/heatmap.js +33 -13
- package/dist/components/charts/legend/legend.js +13 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/tokens/build/js/tokens.dark.js +196 -191
- package/dist/tokens/build/js/tokens.js +218 -213
- package/dist/tokens/color_mode.js +17 -0
- package/dist/utils/charts/color_mode.js +95 -0
- package/dist/utils/charts/css_values.js +105 -0
- package/dist/utils/charts/theme.js +72 -7
- package/dist/utils/constants.js +5 -5
- package/package.json +6 -6
- package/src/components/base/alert/alert.scss +13 -48
- package/src/components/charts/chart/chart.vue +68 -22
- package/src/components/charts/gauge/gauge.vue +1 -12
- package/src/components/charts/heatmap/heatmap.vue +34 -10
- package/src/components/charts/legend/legend.vue +13 -1
- package/src/scss/themes.scss +23 -5
- package/src/tokens/build/css/tokens.css +20 -15
- package/src/tokens/build/css/tokens.dark.css +32 -27
- package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +199 -199
- package/src/tokens/build/docs/tokens-tailwind-docs.json +198 -198
- package/src/tokens/build/figma/constants.dark.json +33 -33
- package/src/tokens/build/figma/constants.json +33 -33
- package/src/tokens/build/figma/mode.dark.json +66 -16
- package/src/tokens/build/figma/mode.json +54 -4
- package/src/tokens/build/js/tokens.dark.js +195 -190
- package/src/tokens/build/js/tokens.js +217 -212
- package/src/tokens/build/json/tokens.dark.json +378 -218
- package/src/tokens/build/json/tokens.json +388 -228
- package/src/tokens/build/scss/_tokens.dark.scss +32 -27
- package/src/tokens/build/scss/_tokens.scss +20 -15
- package/src/tokens/build/scss/_tokens_custom_properties.scss +5 -0
- package/src/tokens/color_mode.js +16 -0
- package/src/tokens/constant/color.neutral.tokens.json +33 -33
- package/src/tokens/contextual/alert.tokens.json +80 -35
- package/src/tokens/semantic/action.tokens.json +3 -3
- package/src/tokens/semantic/feedback.tokens.json +6 -6
- package/src/utils/charts/color_mode.js +83 -0
- package/src/utils/charts/css_values.js +59 -0
- package/src/utils/charts/theme.js +72 -5
- package/src/utils/constants.js +5 -5
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { merge, uniq, sortBy } from 'lodash-es';
|
|
3
|
-
import {
|
|
3
|
+
import { gaugeSafeHues, gaugeWarningHue } from '../../../utils/charts/theme';
|
|
4
4
|
import Chart from '../chart/chart.vue';
|
|
5
5
|
|
|
6
|
-
const AXIS_LABEL_FONT_SIZE_PX = 14;
|
|
7
|
-
|
|
8
6
|
const ARC_RADIUS = '80%';
|
|
9
|
-
const DETAIL_FONT_SIZE_PX = 30;
|
|
10
|
-
const DETAIL_FONT_FAMILY = 'sans-serif';
|
|
11
|
-
const DETAIL_FONT_WEIGHT = 'bold';
|
|
12
7
|
const POINTER_LENGTH = '65%';
|
|
13
8
|
const POINTER_WIDTH_PX = 5;
|
|
14
9
|
|
|
@@ -22,16 +17,10 @@ const gaugeChartSeries = ({ value, text, min, max, splitNumber, axisColor }) =>
|
|
|
22
17
|
|
|
23
18
|
return text || (currentValue ?? '--');
|
|
24
19
|
},
|
|
25
|
-
color: `${gaugeNeutralHues[0]}`,
|
|
26
|
-
fontSize: DETAIL_FONT_SIZE_PX,
|
|
27
|
-
fontFamily: DETAIL_FONT_FAMILY,
|
|
28
|
-
fontWeight: DETAIL_FONT_WEIGHT,
|
|
29
20
|
},
|
|
30
21
|
axisLabel: {
|
|
31
22
|
show: true,
|
|
32
|
-
fontSize: AXIS_LABEL_FONT_SIZE_PX,
|
|
33
23
|
formatter: (theValue) => (Number.isFinite(theValue) ? theValue : '--'),
|
|
34
|
-
color: `${gaugeNeutralHues[1]}`,
|
|
35
24
|
},
|
|
36
25
|
axisLine: {
|
|
37
26
|
lineStyle: {
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { merge } from 'lodash-es';
|
|
3
|
-
import { GL_COLOR_NEUTRAL_0, GL_COLOR_NEUTRAL_100 } from '../../../tokens/build/js/tokens';
|
|
4
3
|
import { getTooltipTitle, getTooltipContent } from '../../../utils/charts/config';
|
|
5
4
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
6
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
heatmapHues,
|
|
7
|
+
heatmapHuesDark,
|
|
8
|
+
heatmapSurface,
|
|
9
|
+
heatmapSurfaceDark,
|
|
10
|
+
} from '../../../utils/charts/theme';
|
|
11
|
+
import { isDarkMode, onColorModeChange } from '../../../utils/charts/color_mode';
|
|
7
12
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
8
13
|
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format.vue';
|
|
9
14
|
import Chart from '../chart/chart.vue';
|
|
@@ -13,9 +18,6 @@ import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
|
13
18
|
const defaultOptions = {
|
|
14
19
|
visualMap: {
|
|
15
20
|
show: false,
|
|
16
|
-
inRange: {
|
|
17
|
-
color: heatmapHues,
|
|
18
|
-
},
|
|
19
21
|
},
|
|
20
22
|
series: {
|
|
21
23
|
type: 'heatmap',
|
|
@@ -154,9 +156,19 @@ export default {
|
|
|
154
156
|
top: '0',
|
|
155
157
|
},
|
|
156
158
|
selectedFormatTooltipText: this.formatTooltipText || this.defaultFormatTooltipText,
|
|
159
|
+
// ECharts interpolates the visualMap stops numerically, so these colours cannot be CSS
|
|
160
|
+
// custom properties and have to be picked for the current colour mode instead. Resolved on
|
|
161
|
+
// mount, because the mode depends on where this chart sits in the document.
|
|
162
|
+
isDark: false,
|
|
157
163
|
};
|
|
158
164
|
},
|
|
159
165
|
computed: {
|
|
166
|
+
hues() {
|
|
167
|
+
return this.isDark ? heatmapHuesDark : heatmapHues;
|
|
168
|
+
},
|
|
169
|
+
surface() {
|
|
170
|
+
return this.isDark ? heatmapSurfaceDark : heatmapSurface;
|
|
171
|
+
},
|
|
160
172
|
computedOptions() {
|
|
161
173
|
const { min, max } = getRange(this.dataSeries);
|
|
162
174
|
return merge(
|
|
@@ -172,11 +184,14 @@ export default {
|
|
|
172
184
|
right: '32px',
|
|
173
185
|
show: true,
|
|
174
186
|
borderWidth: 0,
|
|
175
|
-
backgroundColor:
|
|
187
|
+
backgroundColor: this.surface.plate,
|
|
176
188
|
},
|
|
177
189
|
visualMap: {
|
|
178
190
|
min,
|
|
179
191
|
max,
|
|
192
|
+
inRange: {
|
|
193
|
+
color: this.hues,
|
|
194
|
+
},
|
|
180
195
|
},
|
|
181
196
|
xAxis: {
|
|
182
197
|
data: this.xAxisLabels,
|
|
@@ -196,7 +211,7 @@ export default {
|
|
|
196
211
|
show: true,
|
|
197
212
|
interval: 0,
|
|
198
213
|
lineStyle: {
|
|
199
|
-
color:
|
|
214
|
+
color: this.surface.separator,
|
|
200
215
|
width: 2,
|
|
201
216
|
},
|
|
202
217
|
},
|
|
@@ -223,7 +238,7 @@ export default {
|
|
|
223
238
|
show: true,
|
|
224
239
|
interval: 0,
|
|
225
240
|
lineStyle: {
|
|
226
|
-
color:
|
|
241
|
+
color: this.surface.separator,
|
|
227
242
|
width: 2,
|
|
228
243
|
},
|
|
229
244
|
},
|
|
@@ -240,9 +255,9 @@ export default {
|
|
|
240
255
|
},
|
|
241
256
|
seriesInfo() {
|
|
242
257
|
const { min, max } = getRange(this.dataSeries);
|
|
243
|
-
const step = (max - min) /
|
|
258
|
+
const step = (max - min) / this.hues.length;
|
|
244
259
|
|
|
245
|
-
return
|
|
260
|
+
return this.hues.map((color, index) => {
|
|
246
261
|
const lowerBound = engineeringNotation(min + step * index);
|
|
247
262
|
const upperBound = engineeringNotation(min + step * (index + 1));
|
|
248
263
|
|
|
@@ -257,6 +272,15 @@ export default {
|
|
|
257
272
|
return this.height === 'auto';
|
|
258
273
|
},
|
|
259
274
|
},
|
|
275
|
+
mounted() {
|
|
276
|
+
this.isDark = isDarkMode(this.$el);
|
|
277
|
+
this.unsubscribeColorMode = onColorModeChange(this.$el, (isDark) => {
|
|
278
|
+
this.isDark = isDark;
|
|
279
|
+
});
|
|
280
|
+
},
|
|
281
|
+
beforeDestroy() {
|
|
282
|
+
this.unsubscribeColorMode?.();
|
|
283
|
+
},
|
|
260
284
|
methods: {
|
|
261
285
|
defaultFormatTooltipText(params) {
|
|
262
286
|
this.tooltip.title = getTooltipTitle(params, this.computedOptions.xAxis.name);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import * as echarts from 'echarts';
|
|
3
3
|
import { defaultFontSize } from '../../../utils/charts/config';
|
|
4
|
+
import { defaultFontFamily } from '../../../utils/charts/theme';
|
|
4
5
|
import {
|
|
5
6
|
LEGEND_LAYOUT_INLINE,
|
|
6
7
|
LEGEND_LAYOUT_TABLE,
|
|
@@ -102,7 +103,7 @@ export default {
|
|
|
102
103
|
computed: {
|
|
103
104
|
fontStyle() {
|
|
104
105
|
return {
|
|
105
|
-
fontFamily: this.textStyle.fontFamily ||
|
|
106
|
+
fontFamily: this.textStyle.fontFamily || defaultFontFamily,
|
|
106
107
|
fontSize: `${this.textStyle.fontSize || defaultFontSize}px`,
|
|
107
108
|
};
|
|
108
109
|
},
|
|
@@ -110,6 +111,17 @@ export default {
|
|
|
110
111
|
return this.seriesInfo.length === 1;
|
|
111
112
|
},
|
|
112
113
|
},
|
|
114
|
+
watch: {
|
|
115
|
+
/**
|
|
116
|
+
* When the canvas renderer rebuilds the chart on a colour-mode change it disposes the old
|
|
117
|
+
* ECharts instance and creates a new one. The parent emits `created` with the new instance and
|
|
118
|
+
* updates this prop, so we must rebind our persistent listener to the new instance.
|
|
119
|
+
*/
|
|
120
|
+
chart(newChart, oldChart) {
|
|
121
|
+
oldChart.off('legendselectchanged', this.suppressLastActiveSeriesLabelToggle);
|
|
122
|
+
newChart.on('legendselectchanged', this.suppressLastActiveSeriesLabelToggle);
|
|
123
|
+
},
|
|
124
|
+
},
|
|
113
125
|
created() {
|
|
114
126
|
this.chart.on('legendselectchanged', this.suppressLastActiveSeriesLabelToggle);
|
|
115
127
|
},
|
package/src/scss/themes.scss
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
:root.
|
|
1
|
+
:root.ui-neutral,
|
|
2
|
+
.ui-neutral-scope {
|
|
3
|
+
--gl-color-neutral-0: #fff;
|
|
4
|
+
--gl-color-neutral-10: #fbfafd;
|
|
5
|
+
--gl-color-neutral-50: #ececef;
|
|
6
|
+
--gl-color-neutral-100: #dcdcde;
|
|
7
|
+
--gl-color-neutral-200: #bfbfc3;
|
|
8
|
+
--gl-color-neutral-300: #a4a3a8;
|
|
9
|
+
--gl-color-neutral-400: #89888d;
|
|
10
|
+
--gl-color-neutral-500: #737278;
|
|
11
|
+
--gl-color-neutral-600: #626168;
|
|
12
|
+
--gl-color-neutral-700: #4c4b51;
|
|
13
|
+
--gl-color-neutral-800: #3a383f;
|
|
14
|
+
--gl-color-neutral-900: #28272d;
|
|
15
|
+
--gl-color-neutral-950: #18171d;
|
|
16
|
+
--gl-color-neutral-1000: #050506;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:root.ui-indigo,
|
|
2
20
|
.ui-indigo-scope {
|
|
3
21
|
--gl-color-neutral-0: #fff;
|
|
4
22
|
--gl-color-neutral-10: #f9f8fa;
|
|
@@ -16,7 +34,7 @@
|
|
|
16
34
|
--gl-color-neutral-1000: #09030e;
|
|
17
35
|
}
|
|
18
36
|
|
|
19
|
-
:root.
|
|
37
|
+
:root.ui-blue,
|
|
20
38
|
.ui-blue-scope {
|
|
21
39
|
--gl-color-neutral-0: #fff;
|
|
22
40
|
--gl-color-neutral-10: #f8f8fa;
|
|
@@ -34,7 +52,7 @@
|
|
|
34
52
|
--gl-color-neutral-1000: #03050d;
|
|
35
53
|
}
|
|
36
54
|
|
|
37
|
-
:root.
|
|
55
|
+
:root.ui-green,
|
|
38
56
|
.ui-green-scope {
|
|
39
57
|
--gl-color-neutral-0: #fff;
|
|
40
58
|
--gl-color-neutral-10: #f7f9f8;
|
|
@@ -52,7 +70,7 @@
|
|
|
52
70
|
--gl-color-neutral-1000: #010705;
|
|
53
71
|
}
|
|
54
72
|
|
|
55
|
-
:root.
|
|
73
|
+
:root.ui-red,
|
|
56
74
|
.ui-red-scope {
|
|
57
75
|
--gl-color-neutral-0: #fff;
|
|
58
76
|
--gl-color-neutral-10: #fbf7f9;
|
|
@@ -70,7 +88,7 @@
|
|
|
70
88
|
--gl-color-neutral-1000: #0b0306;
|
|
71
89
|
}
|
|
72
90
|
|
|
73
|
-
:root.
|
|
91
|
+
:root.ui-gray,
|
|
74
92
|
.ui-gray-scope {
|
|
75
93
|
--gl-color-neutral-0: #fff;
|
|
76
94
|
--gl-color-neutral-10: #f8f8f8;
|
|
@@ -113,19 +113,19 @@
|
|
|
113
113
|
--gl-color-green-900: #1e3e28;
|
|
114
114
|
--gl-color-green-950: #17291c;
|
|
115
115
|
--gl-color-neutral-0: #fff;
|
|
116
|
-
--gl-color-neutral-10: #
|
|
117
|
-
--gl-color-neutral-50: #
|
|
118
|
-
--gl-color-neutral-100: #
|
|
119
|
-
--gl-color-neutral-200: #
|
|
120
|
-
--gl-color-neutral-300: #
|
|
121
|
-
--gl-color-neutral-400: #
|
|
122
|
-
--gl-color-neutral-500: #
|
|
123
|
-
--gl-color-neutral-600: #
|
|
124
|
-
--gl-color-neutral-700: #
|
|
125
|
-
--gl-color-neutral-800: #
|
|
116
|
+
--gl-color-neutral-10: #f7f7f5;
|
|
117
|
+
--gl-color-neutral-50: #ecebea;
|
|
118
|
+
--gl-color-neutral-100: #dcdbd9;
|
|
119
|
+
--gl-color-neutral-200: #c1bfbe;
|
|
120
|
+
--gl-color-neutral-300: #a5a3a3;
|
|
121
|
+
--gl-color-neutral-400: #8a8888;
|
|
122
|
+
--gl-color-neutral-500: #747273;
|
|
123
|
+
--gl-color-neutral-600: #646163;
|
|
124
|
+
--gl-color-neutral-700: #4d4b4e;
|
|
125
|
+
--gl-color-neutral-800: #3a383d;
|
|
126
126
|
--gl-color-neutral-900: #28272d;
|
|
127
127
|
--gl-color-neutral-950: #18171d;
|
|
128
|
-
--gl-color-neutral-1000: #
|
|
128
|
+
--gl-color-neutral-1000: #050408;
|
|
129
129
|
--gl-color-orange-50: #fdf1dd;
|
|
130
130
|
--gl-color-orange-100: #f5d9a8;
|
|
131
131
|
--gl-color-orange-200: #e9be74;
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
--gl-heading-default-margin-top: var(--gl-spacing-scale-0);
|
|
424
424
|
--gl-heading-default-margin-bottom: var(--gl-spacing-scale-5);
|
|
425
425
|
--gl-shadow-color-default: var(--gl-color-alpha-dark-16); /** Used for the default shadow color. */
|
|
426
|
-
--gl-alert-neutral-border-top-color: var(--gl-color-alpha-0); /** Used for the border
|
|
426
|
+
--gl-alert-neutral-border-top-color: var(--gl-color-alpha-0); /** Used for the border color of a neutral alert. */
|
|
427
427
|
--gl-alert-neutral-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a neutral alert. */
|
|
428
428
|
--gl-alert-info-border-top-color: var(--gl-color-alpha-0); /** Used for the border color of an info alert. */
|
|
429
429
|
--gl-alert-info-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of an info alert. */
|
|
@@ -743,9 +743,9 @@
|
|
|
743
743
|
--gl-action-confirm-background-color-hover: var(--gl-color-alpha-dark-6); /** Used for the background of a confirm (positive) action in the hover state. */
|
|
744
744
|
--gl-action-confirm-background-color-active: var(--gl-color-alpha-dark-16); /** Used for the background of a confirm (positive) action in the active state. */
|
|
745
745
|
--gl-action-confirm-border-color-default: var(--gl-color-alpha-0); /** Used for the border of a confirm action in the default state. */
|
|
746
|
-
--gl-action-danger-foreground-color-default: var(--gl-color-red-
|
|
747
|
-
--gl-action-danger-foreground-color-hover: var(--gl-color-red-
|
|
748
|
-
--gl-action-danger-foreground-color-active: var(--gl-color-red-
|
|
746
|
+
--gl-action-danger-foreground-color-default: var(--gl-color-red-600); /** Used for the foreground of a danger (destructive) action in the default state. */
|
|
747
|
+
--gl-action-danger-foreground-color-hover: var(--gl-color-red-800); /** Used for the foreground of a danger (destructive) action in the hover state. */
|
|
748
|
+
--gl-action-danger-foreground-color-active: var(--gl-color-red-950); /** Used for the foreground of a danger (destructive) action in the active state. */
|
|
749
749
|
--gl-action-danger-background-color-focus: var(--gl-action-danger-background-color-hover); /** Used for the background of a danger (destructive) action in the focus state. */
|
|
750
750
|
--gl-action-danger-border-color-default: var(--gl-color-alpha-0); /** Used for the border of a danger action in the default state. */
|
|
751
751
|
--gl-action-strong-confirm-background-color-default: var(--gl-color-blue-500); /** Used for the background of a strong confirm action in the default state. */
|
|
@@ -916,14 +916,19 @@
|
|
|
916
916
|
--gl-alert-border-radius: var(--gl-border-radius-lg); /** Used for alert border radius. */
|
|
917
917
|
--gl-alert-neutral-title-color: var(--gl-text-color-heading); /** Used for the title color of a neutral alert. */
|
|
918
918
|
--gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /** Used for the background color of a neutral alert. */
|
|
919
|
+
--gl-alert-neutral-border-color: var(--gl-feedback-neutral-border-color); /** Used for the border color of a neutral alert. */
|
|
919
920
|
--gl-alert-info-title-color: var(--gl-text-color-heading); /** Used for the title color of an info alert. */
|
|
920
921
|
--gl-alert-info-background-color: var(--gl-feedback-info-background-color); /** Used for the background color of an info alert. */
|
|
922
|
+
--gl-alert-info-border-color: var(--gl-feedback-info-border-color); /** Used for the border color of an info alert. */
|
|
921
923
|
--gl-alert-success-title-color: var(--gl-text-color-heading); /** Used for the title color of a success alert. */
|
|
922
924
|
--gl-alert-success-background-color: var(--gl-feedback-success-background-color); /** Used for the background color of a success alert. */
|
|
925
|
+
--gl-alert-success-border-color: var(--gl-feedback-success-border-color); /** Used for the border color of a success alert. */
|
|
923
926
|
--gl-alert-warning-title-color: var(--gl-text-color-heading); /** Used for the title color of a warning alert. */
|
|
924
927
|
--gl-alert-warning-background-color: var(--gl-feedback-warning-background-color); /** Used for the background color of a warning alert. */
|
|
928
|
+
--gl-alert-warning-border-color: var(--gl-feedback-warning-border-color); /** Used for the border color of a warning alert. */
|
|
925
929
|
--gl-alert-danger-title-color: var(--gl-text-color-heading); /** Used for the title color of a danger alert. */
|
|
926
930
|
--gl-alert-danger-background-color: var(--gl-feedback-danger-background-color); /** Used for the background color of a danger alert. */
|
|
931
|
+
--gl-alert-danger-border-color: var(--gl-feedback-danger-border-color); /** Used for the border color of a danger alert. */
|
|
927
932
|
--gl-avatar-square-border-radius-lg: var(--gl-border-radius-lg); /** Border radius for square avatars at larger sizes (48px, 64px, 96px). */
|
|
928
933
|
--gl-badge-muted-background-color-hover: var(--gl-badge-muted-background-color-default); /** Used for the background of a muted badge in the hover state. */
|
|
929
934
|
--gl-badge-muted-text-color-focus: var(--gl-badge-muted-text-color-hover); /** Used for the text of a muted badge in the focus state. */
|
|
@@ -113,19 +113,19 @@
|
|
|
113
113
|
--gl-color-green-900: #1e3e28;
|
|
114
114
|
--gl-color-green-950: #17291c;
|
|
115
115
|
--gl-color-neutral-0: #fff;
|
|
116
|
-
--gl-color-neutral-10: #
|
|
117
|
-
--gl-color-neutral-50: #
|
|
118
|
-
--gl-color-neutral-100: #
|
|
119
|
-
--gl-color-neutral-200: #
|
|
120
|
-
--gl-color-neutral-300: #
|
|
121
|
-
--gl-color-neutral-400: #
|
|
122
|
-
--gl-color-neutral-500: #
|
|
123
|
-
--gl-color-neutral-600: #
|
|
124
|
-
--gl-color-neutral-700: #
|
|
125
|
-
--gl-color-neutral-800: #
|
|
116
|
+
--gl-color-neutral-10: #f7f7f5;
|
|
117
|
+
--gl-color-neutral-50: #ecebea;
|
|
118
|
+
--gl-color-neutral-100: #dcdbd9;
|
|
119
|
+
--gl-color-neutral-200: #c1bfbe;
|
|
120
|
+
--gl-color-neutral-300: #a5a3a3;
|
|
121
|
+
--gl-color-neutral-400: #8a8888;
|
|
122
|
+
--gl-color-neutral-500: #747273;
|
|
123
|
+
--gl-color-neutral-600: #646163;
|
|
124
|
+
--gl-color-neutral-700: #4d4b4e;
|
|
125
|
+
--gl-color-neutral-800: #3a383d;
|
|
126
126
|
--gl-color-neutral-900: #28272d;
|
|
127
127
|
--gl-color-neutral-950: #18171d;
|
|
128
|
-
--gl-color-neutral-1000: #
|
|
128
|
+
--gl-color-neutral-1000: #050408;
|
|
129
129
|
--gl-color-orange-50: #fdf1dd;
|
|
130
130
|
--gl-color-orange-100: #f5d9a8;
|
|
131
131
|
--gl-color-orange-200: #e9be74;
|
|
@@ -435,18 +435,18 @@
|
|
|
435
435
|
--gl-heading-default-margin-top: var(--gl-spacing-scale-0);
|
|
436
436
|
--gl-heading-default-margin-bottom: var(--gl-spacing-scale-5);
|
|
437
437
|
--gl-shadow-color-default: var(--gl-color-alpha-dark-40); /** Used for the default shadow color. */
|
|
438
|
-
--gl-alert-neutral-border-top-color: var(--gl-color-neutral-400); /** Used for the border
|
|
438
|
+
--gl-alert-neutral-border-top-color: var(--gl-color-neutral-400); /** Used for the border color of a neutral alert. */
|
|
439
439
|
--gl-alert-neutral-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a neutral alert. */
|
|
440
|
-
--gl-alert-info-title-color: var(--gl-color-blue-
|
|
440
|
+
--gl-alert-info-title-color: var(--gl-color-blue-200); /** Used for the title color of an info alert. */
|
|
441
441
|
--gl-alert-info-border-top-color: var(--gl-color-blue-400); /** Used for the border color of an info alert. */
|
|
442
442
|
--gl-alert-info-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of an info alert. */
|
|
443
|
-
--gl-alert-success-title-color: var(--gl-color-green-
|
|
443
|
+
--gl-alert-success-title-color: var(--gl-color-green-200); /** Used for the title color of a success alert. */
|
|
444
444
|
--gl-alert-success-border-top-color: var(--gl-color-green-400); /** Used for the border color of a success alert. */
|
|
445
445
|
--gl-alert-success-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a success alert. */
|
|
446
|
-
--gl-alert-warning-title-color: var(--gl-color-orange-
|
|
446
|
+
--gl-alert-warning-title-color: var(--gl-color-orange-200); /** Used for the title color of a warning alert. */
|
|
447
447
|
--gl-alert-warning-border-top-color: var(--gl-color-orange-400); /** Used for the border color of a warning alert. */
|
|
448
448
|
--gl-alert-warning-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a warning alert. */
|
|
449
|
-
--gl-alert-danger-title-color: var(--gl-color-red-
|
|
449
|
+
--gl-alert-danger-title-color: var(--gl-color-red-200); /** Used for the title color of a danger alert. */
|
|
450
450
|
--gl-alert-danger-border-top-color: var(--gl-color-red-400); /** Used for the border color of a danger alert. */
|
|
451
451
|
--gl-alert-danger-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a danger alert. */
|
|
452
452
|
--gl-application-chrome-background-color: var(--gl-color-neutral-1000); /** Used for the application chrome background, the lowest layer of the interface that sits beneath panels and contains global navigation, user actions, application navigation, and AI navigation. */
|
|
@@ -802,27 +802,27 @@
|
|
|
802
802
|
--gl-feedback-neutral-background-color: var(--gl-color-neutral-900); /** Used for the background of a neutral feedback item when there isn't a specific meaning or urgency. */
|
|
803
803
|
--gl-feedback-neutral-border-color: var(--gl-color-neutral-600); /** Used for the border of a neutral feedback item when there isn't a specific meaning or urgency. */
|
|
804
804
|
--gl-feedback-neutral-text-color: var(--gl-color-neutral-200); /** Used for the text of a neutral feedback item when there isn't a specific meaning or urgency. */
|
|
805
|
-
--gl-feedback-neutral-icon-color: var(--gl-color-neutral-
|
|
805
|
+
--gl-feedback-neutral-icon-color: var(--gl-color-neutral-200); /** Used for the icon of a neutral feedback item when there isn't a specific meaning or urgency. */
|
|
806
806
|
--gl-feedback-info-background-color: var(--gl-color-blue-950); /** Used for the background of an informational feedback item when highlighting new information or a change that doesn't require immediate action. */
|
|
807
807
|
--gl-feedback-info-border-color: var(--gl-color-blue-600); /** Used for the border of an informational feedback item when highlighting new information or a change that doesn't require immediate action. */
|
|
808
808
|
--gl-feedback-info-text-color: var(--gl-color-blue-200); /** Used for the text of an informational feedback item when highlighting new information or a change that doesn't require immediate action. */
|
|
809
|
-
--gl-feedback-info-icon-color: var(--gl-color-blue-
|
|
809
|
+
--gl-feedback-info-icon-color: var(--gl-color-blue-200); /** Used for the icon of an informational feedback item when highlighting new information or a change that doesn't require immediate action. */
|
|
810
810
|
--gl-feedback-success-background-color: var(--gl-color-green-900); /** Used for the background of a success feedback item when confirming the successful completion of a user-initiated action. */
|
|
811
811
|
--gl-feedback-success-border-color: var(--gl-color-green-600); /** Used for the border of a success feedback item when confirming the successful completion of a user-initiated action. */
|
|
812
812
|
--gl-feedback-success-text-color: var(--gl-color-green-200); /** Used for the text of a success feedback item when confirming the successful completion of a user-initiated action. */
|
|
813
|
-
--gl-feedback-success-icon-color: var(--gl-color-green-
|
|
813
|
+
--gl-feedback-success-icon-color: var(--gl-color-green-200); /** Used for the icon of a success feedback item when confirming the successful completion of a user-initiated action. */
|
|
814
814
|
--gl-feedback-warning-background-color: var(--gl-color-orange-900); /** Used for the background of a warning feedback item when notifying about a potential issue or sensitive information. */
|
|
815
815
|
--gl-feedback-warning-border-color: var(--gl-color-orange-600); /** Used for the border of a warning feedback item when notifying about a potential issue or sensitive information. */
|
|
816
816
|
--gl-feedback-warning-text-color: var(--gl-color-orange-200); /** Used for the text of a warning feedback item when notifying about a potential issue or sensitive information. */
|
|
817
|
-
--gl-feedback-warning-icon-color: var(--gl-color-orange-
|
|
817
|
+
--gl-feedback-warning-icon-color: var(--gl-color-orange-200); /** Used for the icon of a warning feedback item when notifying about a potential issue or sensitive information. */
|
|
818
818
|
--gl-feedback-danger-background-color: var(--gl-color-red-900); /** Used for the background of a danger feedback item when notifying about a critical issue that has just occurred and requires immediate attention. */
|
|
819
819
|
--gl-feedback-danger-border-color: var(--gl-color-red-300); /** Used for the border of a danger feedback item when notifying about a critical issue that has just occurred and requires immediate attention. */
|
|
820
820
|
--gl-feedback-danger-text-color: var(--gl-color-red-200); /** Used for the text of a danger feedback item when notifying about a critical issue that has just occurred and requires immediate attention. */
|
|
821
|
-
--gl-feedback-danger-icon-color: var(--gl-color-red-
|
|
821
|
+
--gl-feedback-danger-icon-color: var(--gl-color-red-200); /** Used for the icon of a danger feedback item when notifying about a critical issue that has just occurred and requires immediate attention. */
|
|
822
822
|
--gl-feedback-brand-background-color: var(--gl-color-purple-950); /** Used for the background of a brand-related feedback item when highlighting information that pertains to GitLab. */
|
|
823
823
|
--gl-feedback-brand-border-color: var(--gl-color-purple-600); /** Used for the border of a brand-related feedback item when highlighting information that pertains to GitLab. */
|
|
824
824
|
--gl-feedback-brand-text-color: var(--gl-color-purple-200); /** Used for the text of a brand-related feedback item when highlighting information that pertains to GitLab. */
|
|
825
|
-
--gl-feedback-brand-icon-color: var(--gl-color-purple-
|
|
825
|
+
--gl-feedback-brand-icon-color: var(--gl-color-purple-200); /** Used for the icon of a brand-related feedback item when highlighting information that pertains to GitLab. */
|
|
826
826
|
--gl-focus-ring-outer-color: var(--gl-color-blue-400); /** Used for the outer color portion of the focus ring. */
|
|
827
827
|
--gl-highlight-match-background-color: var(--gl-color-orange-200); /** Used for temporary visual emphasis of backgrounds of matched search terms, filtered results, or autocomplete suggestions without implying any particular state or meaning. */
|
|
828
828
|
--gl-highlight-match-text-color: var(--gl-color-neutral-950); /** Used for text within temporarily highlighted matches to maintain readability while drawing attention without conveying status. */
|
|
@@ -931,11 +931,16 @@
|
|
|
931
931
|
--gl-shadow-lg: 0 0 2px 0 var(--gl-shadow-color-default), 0 0 2px 0 var(--gl-shadow-color-default), 0 4px 12px 0 var(--gl-shadow-color-default); /** Used for large surfaces that present additional context to the user. */
|
|
932
932
|
--gl-alert-border-radius: var(--gl-border-radius-lg); /** Used for alert border radius. */
|
|
933
933
|
--gl-alert-neutral-title-color: var(--gl-text-color-heading); /** Used for the title color of a neutral alert. */
|
|
934
|
-
--gl-alert-neutral-background-color: var(--gl-background-color
|
|
935
|
-
--gl-alert-
|
|
936
|
-
--gl-alert-
|
|
937
|
-
--gl-alert-
|
|
938
|
-
--gl-alert-
|
|
934
|
+
--gl-alert-neutral-background-color: var(--gl-feedback-neutral-background-color); /** Used for the background color of a neutral alert. */
|
|
935
|
+
--gl-alert-neutral-border-color: var(--gl-feedback-neutral-border-color); /** Used for the border color of a neutral alert. */
|
|
936
|
+
--gl-alert-info-background-color: var(--gl-feedback-info-background-color); /** Used for the background color of an info alert. */
|
|
937
|
+
--gl-alert-info-border-color: var(--gl-feedback-info-border-color); /** Used for the border color of an info alert. */
|
|
938
|
+
--gl-alert-success-background-color: var(--gl-feedback-success-background-color); /** Used for the background color of a success alert. */
|
|
939
|
+
--gl-alert-success-border-color: var(--gl-feedback-success-border-color); /** Used for the border color of a success alert. */
|
|
940
|
+
--gl-alert-warning-background-color: var(--gl-feedback-warning-background-color); /** Used for the background color of a warning alert. */
|
|
941
|
+
--gl-alert-warning-border-color: var(--gl-feedback-warning-border-color); /** Used for the border color of a warning alert. */
|
|
942
|
+
--gl-alert-danger-background-color: var(--gl-feedback-danger-background-color); /** Used for the background color of a danger alert. */
|
|
943
|
+
--gl-alert-danger-border-color: var(--gl-feedback-danger-border-color); /** Used for the border color of a danger alert. */
|
|
939
944
|
--gl-avatar-square-border-radius-lg: var(--gl-border-radius-lg); /** Border radius for square avatars at larger sizes (48px, 64px, 96px). */
|
|
940
945
|
--gl-badge-muted-background-color-hover: var(--gl-badge-muted-background-color-default); /** Used for the background of a muted badge in the hover state. */
|
|
941
946
|
--gl-badge-muted-text-color-focus: var(--gl-badge-muted-text-color-hover); /** Used for the text of a muted badge in the focus state. */
|