@gitlab/ui 80.10.0 → 80.12.0

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -20
  3. package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +5 -9
  4. package/dist/components/base/new_dropdowns/constants.js +1 -2
  5. package/dist/components/charts/discrete_scatter/discrete_scatter.js +1 -1
  6. package/dist/components/charts/heatmap/heatmap.js +1 -1
  7. package/dist/components/charts/legend/legend.js +1 -1
  8. package/dist/components/charts/line/line.js +1 -1
  9. package/dist/tailwind.css +1 -1
  10. package/dist/tailwind.css.map +1 -1
  11. package/dist/tokens/build/js/tokens.dark.js +106 -1
  12. package/dist/tokens/build/js/tokens.js +70 -1
  13. package/dist/tokens/common_story_options.js +1 -1
  14. package/dist/tokens/css/tokens.css +77 -8
  15. package/dist/tokens/css/tokens.dark.css +111 -6
  16. package/dist/tokens/js/tokens.dark.js +105 -0
  17. package/dist/tokens/js/tokens.js +69 -0
  18. package/dist/tokens/json/tokens.dark.json +4002 -2053
  19. package/dist/tokens/json/tokens.json +1207 -14
  20. package/dist/tokens/scss/_tokens.dark.scss +111 -6
  21. package/dist/tokens/scss/_tokens.scss +77 -8
  22. package/dist/tokens/scss/_tokens_custom_properties.scss +315 -0
  23. package/dist/tokens/tailwind/tokens.cjs +9 -8
  24. package/dist/utils/charts/config.js +1 -1
  25. package/dist/utils/charts/mock_data.js +1 -1
  26. package/dist/utils/charts/theme.js +1 -1
  27. package/dist/utils/utils.js +1 -19
  28. package/package.json +1 -1
  29. package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.spec.js +17 -55
  30. package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +4 -16
  31. package/src/components/base/new_dropdowns/constants.js +0 -1
  32. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.stories.js +0 -28
  33. package/src/components/charts/area/area.stories.js +1 -1
  34. package/src/components/charts/discrete_scatter/discrete_scatter.vue +1 -1
  35. package/src/components/charts/heatmap/heatmap.vue +1 -1
  36. package/src/components/charts/legend/legend.stories.js +1 -1
  37. package/src/components/charts/legend/legend.vue +1 -1
  38. package/src/components/charts/line/line.vue +1 -1
  39. package/src/components/charts/stacked_column/stacked_column.stories.js +1 -1
  40. package/src/scss/tokens.scss +2 -2
  41. package/src/scss/variables.scss +1 -1
  42. package/src/tokens/build/css/tokens.css +77 -8
  43. package/src/tokens/build/css/tokens.dark.css +111 -6
  44. package/src/tokens/build/js/tokens.dark.js +105 -0
  45. package/src/tokens/build/js/tokens.js +69 -0
  46. package/src/tokens/build/json/tokens.dark.json +4002 -2053
  47. package/src/tokens/build/json/tokens.json +1207 -14
  48. package/src/tokens/build/scss/_tokens.dark.scss +111 -6
  49. package/src/tokens/build/scss/_tokens.scss +77 -8
  50. package/src/tokens/build/scss/_tokens_custom_properties.scss +315 -0
  51. package/src/tokens/build/tailwind/tokens.cjs +9 -8
  52. package/src/tokens/color.constant.tokens.json +292 -0
  53. package/src/tokens/color.constant.tokens.stories.js +19 -0
  54. package/src/tokens/color.dark.tokens.stories.js +1 -1
  55. package/src/tokens/color.data_viz.dark.tokens.stories.js +1 -1
  56. package/src/tokens/color.data_viz.tokens.stories.js +1 -1
  57. package/src/tokens/color.theme.dark.tokens.stories.js +1 -1
  58. package/src/tokens/color.theme.tokens.stories.js +1 -1
  59. package/src/tokens/color.tokens.stories.js +1 -1
  60. package/src/tokens/color.transparency.tokens.stories.js +1 -1
  61. package/src/tokens/common_story_options.js +1 -1
  62. package/src/tokens/text.dark.tokens.stories.js +1 -1
  63. package/src/tokens/text.tokens.json +20 -14
  64. package/src/tokens/text.tokens.stories.js +1 -1
  65. package/src/utils/charts/config.js +1 -1
  66. package/src/utils/charts/mock_data.js +1 -1
  67. package/src/utils/charts/theme.js +1 -1
  68. package/src/utils/utils.js +0 -18
  69. package/src/utils/utils.spec.js +0 -52
@@ -100,36 +100,6 @@ describe('base dropdown', () => {
100
100
  autoUpdate.mockImplementation(jest.requireActual('@floating-ui/dom').autoUpdate);
101
101
  });
102
102
 
103
- it('initializes Floating UI with a default boundary', async () => {
104
- document.body.innerHTML = '<main><div></div></main>';
105
-
106
- buildWrapper(undefined, {
107
- attachTo: document.querySelector('main div'),
108
- });
109
- await findDefaultDropdownToggle().trigger('click');
110
-
111
- expect(computePosition).toHaveBeenCalledWith(
112
- findDefaultDropdownToggle().element,
113
- findDropdownMenu().element,
114
- {
115
- placement: 'bottom-start',
116
- strategy: 'absolute',
117
- middleware: [
118
- offset({ mainAxis: DEFAULT_OFFSET }),
119
- autoPlacement(expect.any(Function)),
120
- shift(),
121
- ],
122
- }
123
- );
124
- expect(autoPlacement.mock.calls[0][0]()).toEqual({
125
- alignment: 'start',
126
- boundary: { x: 0, y: 0, width: 0, height: 0 },
127
- allowedPlacements: ['bottom-start', 'top-start', 'bottom-end', 'top-end'],
128
- });
129
-
130
- document.body.innerHTML = '';
131
- });
132
-
133
103
  it('initializes Floating UI with reference and floating elements and config for left-aligned menu', async () => {
134
104
  buildWrapper();
135
105
  await findDefaultDropdownToggle().trigger('click');
@@ -142,16 +112,14 @@ describe('base dropdown', () => {
142
112
  strategy: 'absolute',
143
113
  middleware: [
144
114
  offset({ mainAxis: DEFAULT_OFFSET }),
145
- autoPlacement(expect.any(Function)),
115
+ autoPlacement({
116
+ alignment: 'start',
117
+ allowedPlacements: ['bottom-start', 'top-start', 'bottom-end', 'top-end'],
118
+ }),
146
119
  shift(),
147
120
  ],
148
121
  }
149
122
  );
150
- expect(autoPlacement.mock.calls[0][0]()).toEqual({
151
- alignment: 'start',
152
- boundary: 'clippingAncestors',
153
- allowedPlacements: ['bottom-start', 'top-start', 'bottom-end', 'top-end'],
154
- });
155
123
  });
156
124
 
157
125
  it('initializes Floating UI with reference and floating elements and config for center-aligned menu', async () => {
@@ -166,16 +134,14 @@ describe('base dropdown', () => {
166
134
  strategy: 'absolute',
167
135
  middleware: [
168
136
  offset({ mainAxis: DEFAULT_OFFSET }),
169
- autoPlacement(expect.any(Function)),
137
+ autoPlacement({
138
+ alignment: undefined,
139
+ allowedPlacements: ['bottom', 'top'],
140
+ }),
170
141
  shift(),
171
142
  ],
172
143
  }
173
144
  );
174
- expect(autoPlacement.mock.calls[0][0]()).toEqual({
175
- alignment: undefined,
176
- boundary: 'clippingAncestors',
177
- allowedPlacements: ['bottom', 'top'],
178
- });
179
145
  });
180
146
 
181
147
  it('initializes Floating UI with reference and floating elements and config for right-aligned menu', async () => {
@@ -190,16 +156,14 @@ describe('base dropdown', () => {
190
156
  strategy: 'absolute',
191
157
  middleware: [
192
158
  offset({ mainAxis: DEFAULT_OFFSET }),
193
- autoPlacement(expect.any(Function)),
159
+ autoPlacement({
160
+ alignment: 'end',
161
+ allowedPlacements: ['bottom-start', 'top-start', 'bottom-end', 'top-end'],
162
+ }),
194
163
  shift(),
195
164
  ],
196
165
  }
197
166
  );
198
- expect(autoPlacement.mock.calls[0][0]()).toEqual({
199
- alignment: 'end',
200
- boundary: 'clippingAncestors',
201
- allowedPlacements: ['bottom-start', 'top-start', 'bottom-end', 'top-end'],
202
- });
203
167
  });
204
168
 
205
169
  it('initializes Floating UI with reference and floating elements and config for `right-start` aligned menu', async () => {
@@ -214,16 +178,14 @@ describe('base dropdown', () => {
214
178
  strategy: 'absolute',
215
179
  middleware: [
216
180
  offset({ mainAxis: DEFAULT_OFFSET }),
217
- autoPlacement(expect.any(Function)),
181
+ autoPlacement({
182
+ alignment: 'start',
183
+ allowedPlacements: ['right-start', 'right-end', 'left-start', 'left-end'],
184
+ }),
218
185
  shift(),
219
186
  ],
220
187
  }
221
188
  );
222
- expect(autoPlacement.mock.calls[0][0]()).toEqual({
223
- alignment: 'start',
224
- boundary: 'clippingAncestors',
225
- allowedPlacements: ['right-start', 'right-end', 'left-start', 'left-end'],
226
- });
227
189
  });
228
190
 
229
191
  it("passes custom offset to Floating UI's middleware", async () => {
@@ -240,7 +202,7 @@ describe('base dropdown', () => {
240
202
  {
241
203
  placement: 'bottom-end',
242
204
  strategy: 'absolute',
243
- middleware: [offset(customOffset), autoPlacement(expect.any(Function)), shift()],
205
+ middleware: [offset(customOffset), autoPlacement(expect.any(Object)), shift()],
244
206
  }
245
207
  );
246
208
  });
@@ -9,7 +9,6 @@ import {
9
9
  dropdownVariantOptions,
10
10
  } from '../../../../utils/constants';
11
11
  import {
12
- GL_DROPDOWN_HORIZONTAL_BOUNDARY_SELECTOR,
13
12
  GL_DROPDOWN_SHOWN,
14
13
  GL_DROPDOWN_HIDDEN,
15
14
  GL_DROPDOWN_BEFORE_CLOSE,
@@ -21,12 +20,7 @@ import {
21
20
  POSITION_ABSOLUTE,
22
21
  POSITION_FIXED,
23
22
  } from '../constants';
24
- import {
25
- logWarning,
26
- isElementTabbable,
27
- isElementFocusable,
28
- getHorizontalBoundingClientRect,
29
- } from '../../../../utils/utils';
23
+ import { logWarning, isElementTabbable, isElementFocusable } from '../../../../utils/utils';
30
24
 
31
25
  import GlButton from '../../button/button.vue';
32
26
  import GlIcon from '../../icon/icon.vue';
@@ -276,15 +270,9 @@ export default {
276
270
  strategy: this.positioningStrategy,
277
271
  middleware: [
278
272
  offset(this.offset),
279
- autoPlacement(() => {
280
- const autoHorizontalBoundary = getHorizontalBoundingClientRect(
281
- this.$el.closest(GL_DROPDOWN_HORIZONTAL_BOUNDARY_SELECTOR)
282
- );
283
- return {
284
- alignment,
285
- boundary: autoHorizontalBoundary || 'clippingAncestors',
286
- allowedPlacements: dropdownAllowedAutoPlacements[this.placement],
287
- };
273
+ autoPlacement({
274
+ alignment,
275
+ allowedPlacements: dropdownAllowedAutoPlacements[this.placement],
288
276
  }),
289
277
  shift(),
290
278
  size({
@@ -1,5 +1,4 @@
1
1
  // base dropdown events
2
- export const GL_DROPDOWN_HORIZONTAL_BOUNDARY_SELECTOR = 'main';
3
2
  export const GL_DROPDOWN_SHOWN = 'shown';
4
3
  export const GL_DROPDOWN_HIDDEN = 'hidden';
5
4
  export const GL_DROPDOWN_BEFORE_CLOSE = 'beforeClose';
@@ -343,31 +343,3 @@ export default {
343
343
  startOpened: true,
344
344
  },
345
345
  };
346
-
347
- export const InMainWrapper = (args, { argTypes }) => ({
348
- toggleId: TOGGLE_ID,
349
- props: Object.keys(argTypes),
350
- components: {
351
- GlDisclosureDropdown,
352
- GlTooltip,
353
- },
354
- template: `
355
- <div>
356
- ${template()}
357
- <gl-tooltip :target="$options.toggleId" placement="right">
358
- Automatic placement to stay inside &lt;main&gt; boundary
359
- </gl-tooltip>
360
- </div>
361
- `,
362
- });
363
- InMainWrapper.args = {
364
- items: mockItems,
365
- icon: 'ellipsis_v',
366
- noCaret: true,
367
- toggleText: 'Disclosure',
368
- textSrOnly: true,
369
- toggleId: TOGGLE_ID,
370
- };
371
- InMainWrapper.decorators = [
372
- makeContainer({ backgroundColor: '#efefef', textAlign: 'right', height: '200px' }, 'main'),
373
- ];
@@ -2,7 +2,7 @@ import times from 'lodash/times';
2
2
  import { GlAreaChart } from '../../../charts';
3
3
  import { mockAnnotationsSeries, mockAnnotationsConfigs } from '../../../utils/charts/mock_data';
4
4
  import { toolbox } from '../../../utils/charts/story_config';
5
- import { DATA_VIZ_AQUA_500, DATA_VIZ_ORANGE_600 } from '../../../../dist/tokens/js/tokens';
5
+ import { DATA_VIZ_AQUA_500, DATA_VIZ_ORANGE_600 } from '../../../tokens/build/js/tokens';
6
6
  import { timeSeriesDateFormatter } from '../../../utils/charts/utils';
7
7
  import { generateTimeSeries } from '../../../utils/data_utils';
8
8
  import { disableControls } from '../../../utils/stories_utils';
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import merge from 'lodash/merge';
3
- import { GRAY_200 } from '../../../../dist/tokens/js/tokens';
3
+ import { GRAY_200 } from '../../../tokens/build/js/tokens';
4
4
  import {
5
5
  defaultChartOptions,
6
6
  dataZoomAdjustments,
@@ -1,7 +1,7 @@
1
1
  <!-- eslint-disable vue/multi-word-component-names -->
2
2
  <script>
3
3
  import merge from 'lodash/merge';
4
- import { WHITE, GRAY_100 } from '../../../../dist/tokens/js/tokens';
4
+ import { WHITE, GRAY_100 } from '../../../tokens/build/js/tokens';
5
5
  import { getTooltipTitle, getTooltipContent } from '../../../utils/charts/config';
6
6
  import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
7
7
  import { heatmapHues } from '../../../utils/charts/theme';
@@ -6,7 +6,7 @@ import {
6
6
  SERIES_NAME_LONG,
7
7
  SERIES_NAME_LONG_WITHOUT_SPACES,
8
8
  } from '../../../utils/stories_constants';
9
- import { GRAY_200 } from '../../../../dist/tokens/js/tokens';
9
+ import { GRAY_200 } from '../../../tokens/build/js/tokens';
10
10
  import readme from './legend.md';
11
11
 
12
12
  const generateOptions = (seriesLength, seriesNameType) => {
@@ -1,7 +1,7 @@
1
1
  <!-- eslint-disable vue/multi-word-component-names -->
2
2
  <script>
3
3
  import * as echarts from 'echarts';
4
- import { GRAY_200 } from '../../../../dist/tokens/js/tokens';
4
+ import { GRAY_200 } from '../../../tokens/build/js/tokens';
5
5
  import { defaultFontSize } from '../../../utils/charts/config';
6
6
  import {
7
7
  LEGEND_LAYOUT_INLINE,
@@ -19,7 +19,7 @@
19
19
  */
20
20
 
21
21
  import merge from 'lodash/merge';
22
- import { GRAY_200 } from '../../../../dist/tokens/js/tokens';
22
+ import { GRAY_200 } from '../../../tokens/build/js/tokens';
23
23
  import {
24
24
  defaultChartOptions,
25
25
  grid,
@@ -11,7 +11,7 @@ import {
11
11
  DATA_VIZ_AQUA_500,
12
12
  DATA_VIZ_GREEN_600,
13
13
  DATA_VIZ_MAGENTA_500,
14
- } from '../../../../dist/tokens/js/tokens';
14
+ } from '../../../tokens/build/js/tokens';
15
15
  import readme from './stacked_column.md';
16
16
 
17
17
  const template = `
@@ -1,2 +1,2 @@
1
- @import '../../dist/tokens/css/tokens';
2
- @import '../../dist/tokens/css/tokens.dark';
1
+ @import '../tokens/build/css/tokens';
2
+ @import '../tokens/build/css/tokens.dark';
@@ -1,5 +1,5 @@
1
1
  @import 'functions';
2
- @import '../../dist/tokens/scss/tokens';
2
+ @import '../tokens/build/scss/tokens';
3
3
 
4
4
  // Layout
5
5
  $grid-size: px-to-rem(8px);
@@ -4,14 +4,6 @@
4
4
  */
5
5
 
6
6
  :root {
7
- --gl-text-color-disabled: #89888d; /* Used for disabled text. */
8
- --gl-text-color-success: #217645; /* Used for text indicating success or validity. */
9
- --gl-text-color-danger: #c91c00; /* Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination. */
10
- --gl-text-color-link: #0b5cad; /* Used for default text links. */
11
- --gl-text-color-heading: #1f1e24; /* Used for headings level 1-6. */
12
- --gl-text-color-strong: #1f1e24; /* Used for text with the highest contrast. */
13
- --gl-text-color-subtle: #626168; /* Used for supplemental text that doesn't need to be as prominent as other text. */
14
- --gl-text-color-default: #434248; /* Used for the default text color. */
15
7
  --gl-text-tertiary: #89888d; /* Use text.color.disabled instead */
16
8
  --gl-text-secondary: #737278; /* Use text.color.subtle instead */
17
9
  --gl-text-primary: #333238; /* Use text.color.default instead */
@@ -245,4 +237,81 @@
245
237
  --data-viz-green-200: #b0d97b;
246
238
  --data-viz-green-100: #c6ed94;
247
239
  --data-viz-green-50: #ddfab7;
240
+ --gl-color-red-950: #4d0a00;
241
+ --gl-color-red-900: #660e00;
242
+ --gl-color-red-800: #8d1300;
243
+ --gl-color-red-700: #ae1800;
244
+ --gl-color-red-600: #c91c00;
245
+ --gl-color-red-500: #dd2b0e;
246
+ --gl-color-red-400: #ec5941;
247
+ --gl-color-red-300: #f57f6c;
248
+ --gl-color-red-200: #fcb5aa;
249
+ --gl-color-red-100: #fdd4cd;
250
+ --gl-color-red-50: #fcf1ef;
251
+ --gl-color-purple-950: #232150;
252
+ --gl-color-purple-900: #2f2a6b;
253
+ --gl-color-purple-800: #453894;
254
+ --gl-color-purple-700: #5943b6;
255
+ --gl-color-purple-600: #694cc0;
256
+ --gl-color-purple-500: #7b58cf;
257
+ --gl-color-purple-400: #9475db;
258
+ --gl-color-purple-300: #ac93e6;
259
+ --gl-color-purple-200: #cbbbf2;
260
+ --gl-color-purple-100: #e1d8f9;
261
+ --gl-color-purple-50: #f4f0ff;
262
+ --gl-color-orange-950: #421f00;
263
+ --gl-color-orange-900: #5c2900;
264
+ --gl-color-orange-800: #703800;
265
+ --gl-color-orange-700: #8f4700;
266
+ --gl-color-orange-600: #9e5400;
267
+ --gl-color-orange-500: #ab6100;
268
+ --gl-color-orange-400: #c17d10;
269
+ --gl-color-orange-300: #d99530;
270
+ --gl-color-orange-200: #e9be74;
271
+ --gl-color-orange-100: #f5d9a8;
272
+ --gl-color-orange-50: #fdf1dd;
273
+ --gl-color-green-950: #072b15;
274
+ --gl-color-green-900: #0a4020;
275
+ --gl-color-green-800: #0d532a;
276
+ --gl-color-green-700: #24663b;
277
+ --gl-color-green-600: #217645;
278
+ --gl-color-green-500: #108548;
279
+ --gl-color-green-400: #2da160;
280
+ --gl-color-green-300: #52b87a;
281
+ --gl-color-green-200: #91d4a8;
282
+ --gl-color-green-100: #c3e6cd;
283
+ --gl-color-green-50: #ecf4ee;
284
+ --gl-color-neutral-1000: #000;
285
+ --gl-color-neutral-950: #1f1e24;
286
+ --gl-color-neutral-900: #333238;
287
+ --gl-color-neutral-800: #434248;
288
+ --gl-color-neutral-700: #535158;
289
+ --gl-color-neutral-600: #626168;
290
+ --gl-color-neutral-500: #737278;
291
+ --gl-color-neutral-400: #89888d;
292
+ --gl-color-neutral-300: #a4a3a8;
293
+ --gl-color-neutral-200: #bfbfc3;
294
+ --gl-color-neutral-100: #dcdcde;
295
+ --gl-color-neutral-50: #ececef;
296
+ --gl-color-neutral-10: #fbfafd;
297
+ --gl-color-neutral-0: #fff;
298
+ --gl-color-blue-950: #002850;
299
+ --gl-color-blue-900: #033464;
300
+ --gl-color-blue-800: #064787;
301
+ --gl-color-blue-700: #0b5cad;
302
+ --gl-color-blue-600: #1068bf;
303
+ --gl-color-blue-500: #1f75cb;
304
+ --gl-color-blue-400: #428fdc;
305
+ --gl-color-blue-300: #63a6e9;
306
+ --gl-color-blue-200: #9dc7f1;
307
+ --gl-color-blue-100: #cbe2f9;
308
+ --gl-color-blue-50: #e9f3fc;
309
+ --gl-text-color-disabled: var(--gl-color-neutral-400); /* Used for disabled text. */
310
+ --gl-text-color-success: var(--gl-color-green-600); /* Used for text indicating success or validity. */
311
+ --gl-text-color-danger: var(--gl-color-red-600); /* Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination. */
312
+ --gl-text-color-link: var(--gl-color-blue-700); /* Used for default text links. */
313
+ --gl-text-color-heading: var(--gl-color-neutral-950); /* Used for headings level 1-6. */
314
+ --gl-text-color-strong: var(--gl-color-neutral-950); /* Used for text with the highest contrast. */
315
+ --gl-text-color-subtle: var(--gl-color-neutral-600); /* Used for supplemental text that doesn't need to be as prominent as other text. */
316
+ --gl-text-color-default: var(--gl-color-neutral-800); /* Used for the default text color. */
248
317
  }
@@ -4,15 +4,43 @@
4
4
  */
5
5
 
6
6
  :root.gl-dark {
7
- --gl-text-color-disabled: #89888d; /* Used for disabled text. */
8
- --gl-text-color-link: #63a6e9; /* Used for default text links. */
9
- --gl-text-color-heading: #fff; /* Used for headings level 1-6. */
10
- --gl-text-color-strong: #fff; /* Used for text with the highest contrast. */
11
- --gl-text-color-subtle: #bfbfc3; /* Used for supplemental text that doesn't need to be as prominent as other text. */
12
- --gl-text-color-default: #ececef; /* Used for the default text color. */
13
7
  --gl-text-tertiary: #737278; /* Use text.color.disabled instead */
14
8
  --gl-text-secondary: #89888d; /* Use text.color.subtle instead */
15
9
  --gl-text-primary: #ececef; /* Use text.color.default instead */
10
+ --gl-line-height-52: 3.25rem;
11
+ --gl-line-height-44: 2.75rem;
12
+ --gl-line-height-42: 2.625rem;
13
+ --gl-line-height-36: 2.25rem;
14
+ --gl-line-height-32: 2rem;
15
+ --gl-line-height-28: 1.75rem;
16
+ --gl-line-height-24: 1.5rem;
17
+ --gl-line-height-20: 1.25rem;
18
+ --gl-line-height-16: 1rem;
19
+ --gl-line-height-12: 0.75rem;
20
+ --t-white-a-08: rgba(255, 255, 255, 0.08);
21
+ --t-white-a-06: rgba(255, 255, 255, 0.06);
22
+ --t-white-a-04: rgba(255, 255, 255, 0.04);
23
+ --t-white-a-02: rgba(255, 255, 255, 0.02);
24
+ --t-white-a-36: rgba(255, 255, 255, 0.36);
25
+ --t-white-a-24: rgba(255, 255, 255, 0.24);
26
+ --t-white-a-16: rgba(255, 255, 255, 0.16);
27
+ --t-gray-a-08: rgba(31, 30, 36, 0.08);
28
+ --t-gray-a-06: rgba(31, 30, 36, 0.06);
29
+ --t-gray-a-04: rgba(31, 30, 36, 0.04);
30
+ --t-gray-a-02: rgba(31, 30, 36, 0.02);
31
+ --t-gray-a-24: rgba(31, 30, 36, 0.24);
32
+ --t-gray-a-16: rgba(31, 30, 36, 0.16);
33
+ --brand-gray-05: #2b2838;
34
+ --brand-gray-04: #45424d;
35
+ --brand-gray-03: #74717a;
36
+ --brand-gray-02: #a2a1a6;
37
+ --brand-gray-01: #d1d0d3;
38
+ --brand-purple-02: #7759c2;
39
+ --brand-purple-01: #a989f5;
40
+ --brand-orange-03: #e24329;
41
+ --brand-orange-02: #fc6d26;
42
+ --brand-orange-01: #fca326;
43
+ --brand-charcoal: #171321;
16
44
  --red-950: #fff4f3;
17
45
  --red-900: #fcf1ef;
18
46
  --red-800: #fdd4cd;
@@ -209,4 +237,81 @@
209
237
  --data-viz-green-200: #275600;
210
238
  --data-viz-green-100: #1a4500;
211
239
  --data-viz-green-50: #133a03;
240
+ --gl-color-red-950: #4d0a00;
241
+ --gl-color-red-900: #660e00;
242
+ --gl-color-red-800: #8d1300;
243
+ --gl-color-red-700: #ae1800;
244
+ --gl-color-red-600: #c91c00;
245
+ --gl-color-red-500: #dd2b0e;
246
+ --gl-color-red-400: #ec5941;
247
+ --gl-color-red-300: #f57f6c;
248
+ --gl-color-red-200: #fcb5aa;
249
+ --gl-color-red-100: #fdd4cd;
250
+ --gl-color-red-50: #fcf1ef;
251
+ --gl-color-purple-950: #232150;
252
+ --gl-color-purple-900: #2f2a6b;
253
+ --gl-color-purple-800: #453894;
254
+ --gl-color-purple-700: #5943b6;
255
+ --gl-color-purple-600: #694cc0;
256
+ --gl-color-purple-500: #7b58cf;
257
+ --gl-color-purple-400: #9475db;
258
+ --gl-color-purple-300: #ac93e6;
259
+ --gl-color-purple-200: #cbbbf2;
260
+ --gl-color-purple-100: #e1d8f9;
261
+ --gl-color-purple-50: #f4f0ff;
262
+ --gl-color-orange-950: #421f00;
263
+ --gl-color-orange-900: #5c2900;
264
+ --gl-color-orange-800: #703800;
265
+ --gl-color-orange-700: #8f4700;
266
+ --gl-color-orange-600: #9e5400;
267
+ --gl-color-orange-500: #ab6100;
268
+ --gl-color-orange-400: #c17d10;
269
+ --gl-color-orange-300: #d99530;
270
+ --gl-color-orange-200: #e9be74;
271
+ --gl-color-orange-100: #f5d9a8;
272
+ --gl-color-orange-50: #fdf1dd;
273
+ --gl-color-green-950: #072b15;
274
+ --gl-color-green-900: #0a4020;
275
+ --gl-color-green-800: #0d532a;
276
+ --gl-color-green-700: #24663b;
277
+ --gl-color-green-600: #217645;
278
+ --gl-color-green-500: #108548;
279
+ --gl-color-green-400: #2da160;
280
+ --gl-color-green-300: #52b87a;
281
+ --gl-color-green-200: #91d4a8;
282
+ --gl-color-green-100: #c3e6cd;
283
+ --gl-color-green-50: #ecf4ee;
284
+ --gl-color-neutral-1000: #000;
285
+ --gl-color-neutral-950: #1f1e24;
286
+ --gl-color-neutral-900: #333238;
287
+ --gl-color-neutral-800: #434248;
288
+ --gl-color-neutral-700: #535158;
289
+ --gl-color-neutral-600: #626168;
290
+ --gl-color-neutral-500: #737278;
291
+ --gl-color-neutral-400: #89888d;
292
+ --gl-color-neutral-300: #a4a3a8;
293
+ --gl-color-neutral-200: #bfbfc3;
294
+ --gl-color-neutral-100: #dcdcde;
295
+ --gl-color-neutral-50: #ececef;
296
+ --gl-color-neutral-10: #fbfafd;
297
+ --gl-color-neutral-0: #fff;
298
+ --gl-color-blue-950: #002850;
299
+ --gl-color-blue-900: #033464;
300
+ --gl-color-blue-800: #064787;
301
+ --gl-color-blue-700: #0b5cad;
302
+ --gl-color-blue-600: #1068bf;
303
+ --gl-color-blue-500: #1f75cb;
304
+ --gl-color-blue-400: #428fdc;
305
+ --gl-color-blue-300: #63a6e9;
306
+ --gl-color-blue-200: #9dc7f1;
307
+ --gl-color-blue-100: #cbe2f9;
308
+ --gl-color-blue-50: #e9f3fc;
309
+ --gl-text-color-disabled: var(--gl-color-neutral-400); /* Used for disabled text. */
310
+ --gl-text-color-success: var(--gl-color-green-300); /* Used for text indicating success or validity. */
311
+ --gl-text-color-danger: var(--gl-color-red-300); /* Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination. */
312
+ --gl-text-color-link: var(--gl-color-blue-300); /* Used for default text links. */
313
+ --gl-text-color-heading: var(--gl-color-neutral-0); /* Used for headings level 1-6. */
314
+ --gl-text-color-strong: var(--gl-color-neutral-0); /* Used for text with the highest contrast. */
315
+ --gl-text-color-subtle: var(--gl-color-neutral-200); /* Used for supplemental text that doesn't need to be as prominent as other text. */
316
+ --gl-text-color-default: var(--gl-color-neutral-50); /* Used for the default text color. */
212
317
  }
@@ -3,6 +3,75 @@
3
3
  * Do not edit directly
4
4
  */
5
5
 
6
+ export const GL_COLOR_BLUE_50 = '#e9f3fc';
7
+ export const GL_COLOR_BLUE_100 = '#cbe2f9';
8
+ export const GL_COLOR_BLUE_200 = '#9dc7f1';
9
+ export const GL_COLOR_BLUE_300 = '#63a6e9';
10
+ export const GL_COLOR_BLUE_400 = '#428fdc';
11
+ export const GL_COLOR_BLUE_500 = '#1f75cb';
12
+ export const GL_COLOR_BLUE_600 = '#1068bf';
13
+ export const GL_COLOR_BLUE_700 = '#0b5cad';
14
+ export const GL_COLOR_BLUE_800 = '#064787';
15
+ export const GL_COLOR_BLUE_900 = '#033464';
16
+ export const GL_COLOR_BLUE_950 = '#002850';
17
+ export const GL_COLOR_NEUTRAL_0 = '#fff';
18
+ export const GL_COLOR_NEUTRAL_10 = '#fbfafd';
19
+ export const GL_COLOR_NEUTRAL_50 = '#ececef';
20
+ export const GL_COLOR_NEUTRAL_100 = '#dcdcde';
21
+ export const GL_COLOR_NEUTRAL_200 = '#bfbfc3';
22
+ export const GL_COLOR_NEUTRAL_300 = '#a4a3a8';
23
+ export const GL_COLOR_NEUTRAL_400 = '#89888d';
24
+ export const GL_COLOR_NEUTRAL_500 = '#737278';
25
+ export const GL_COLOR_NEUTRAL_600 = '#626168';
26
+ export const GL_COLOR_NEUTRAL_700 = '#535158';
27
+ export const GL_COLOR_NEUTRAL_800 = '#434248';
28
+ export const GL_COLOR_NEUTRAL_900 = '#333238';
29
+ export const GL_COLOR_NEUTRAL_950 = '#1f1e24';
30
+ export const GL_COLOR_NEUTRAL_1000 = '#000';
31
+ export const GL_COLOR_GREEN_50 = '#ecf4ee';
32
+ export const GL_COLOR_GREEN_100 = '#c3e6cd';
33
+ export const GL_COLOR_GREEN_200 = '#91d4a8';
34
+ export const GL_COLOR_GREEN_300 = '#52b87a';
35
+ export const GL_COLOR_GREEN_400 = '#2da160';
36
+ export const GL_COLOR_GREEN_500 = '#108548';
37
+ export const GL_COLOR_GREEN_600 = '#217645';
38
+ export const GL_COLOR_GREEN_700 = '#24663b';
39
+ export const GL_COLOR_GREEN_800 = '#0d532a';
40
+ export const GL_COLOR_GREEN_900 = '#0a4020';
41
+ export const GL_COLOR_GREEN_950 = '#072b15';
42
+ export const GL_COLOR_ORANGE_50 = '#fdf1dd';
43
+ export const GL_COLOR_ORANGE_100 = '#f5d9a8';
44
+ export const GL_COLOR_ORANGE_200 = '#e9be74';
45
+ export const GL_COLOR_ORANGE_300 = '#d99530';
46
+ export const GL_COLOR_ORANGE_400 = '#c17d10';
47
+ export const GL_COLOR_ORANGE_500 = '#ab6100';
48
+ export const GL_COLOR_ORANGE_600 = '#9e5400';
49
+ export const GL_COLOR_ORANGE_700 = '#8f4700';
50
+ export const GL_COLOR_ORANGE_800 = '#703800';
51
+ export const GL_COLOR_ORANGE_900 = '#5c2900';
52
+ export const GL_COLOR_ORANGE_950 = '#421f00';
53
+ export const GL_COLOR_PURPLE_50 = '#f4f0ff';
54
+ export const GL_COLOR_PURPLE_100 = '#e1d8f9';
55
+ export const GL_COLOR_PURPLE_200 = '#cbbbf2';
56
+ export const GL_COLOR_PURPLE_300 = '#ac93e6';
57
+ export const GL_COLOR_PURPLE_400 = '#9475db';
58
+ export const GL_COLOR_PURPLE_500 = '#7b58cf';
59
+ export const GL_COLOR_PURPLE_600 = '#694cc0';
60
+ export const GL_COLOR_PURPLE_700 = '#5943b6';
61
+ export const GL_COLOR_PURPLE_800 = '#453894';
62
+ export const GL_COLOR_PURPLE_900 = '#2f2a6b';
63
+ export const GL_COLOR_PURPLE_950 = '#232150';
64
+ export const GL_COLOR_RED_50 = '#fcf1ef';
65
+ export const GL_COLOR_RED_100 = '#fdd4cd';
66
+ export const GL_COLOR_RED_200 = '#fcb5aa';
67
+ export const GL_COLOR_RED_300 = '#f57f6c';
68
+ export const GL_COLOR_RED_400 = '#ec5941';
69
+ export const GL_COLOR_RED_500 = '#dd2b0e';
70
+ export const GL_COLOR_RED_600 = '#c91c00';
71
+ export const GL_COLOR_RED_700 = '#ae1800';
72
+ export const GL_COLOR_RED_800 = '#8d1300';
73
+ export const GL_COLOR_RED_900 = '#660e00';
74
+ export const GL_COLOR_RED_950 = '#4d0a00';
6
75
  export const DATA_VIZ_GREEN_50 = '#133a03';
7
76
  export const DATA_VIZ_GREEN_100 = '#1a4500';
8
77
  export const DATA_VIZ_GREEN_200 = '#275600';
@@ -199,6 +268,40 @@ export const RED_700 = '#fcb5aa';
199
268
  export const RED_800 = '#fdd4cd';
200
269
  export const RED_900 = '#fcf1ef';
201
270
  export const RED_950 = '#fff4f3';
271
+ export const BRAND_CHARCOAL = '#171321';
272
+ export const BRAND_ORANGE_01 = '#fca326';
273
+ export const BRAND_ORANGE_02 = '#fc6d26';
274
+ export const BRAND_ORANGE_03 = '#e24329';
275
+ export const BRAND_PURPLE_01 = '#a989f5';
276
+ export const BRAND_PURPLE_02 = '#7759c2';
277
+ export const BRAND_GRAY_01 = '#d1d0d3';
278
+ export const BRAND_GRAY_02 = '#a2a1a6';
279
+ export const BRAND_GRAY_03 = '#74717a';
280
+ export const BRAND_GRAY_04 = '#45424d';
281
+ export const BRAND_GRAY_05 = '#2b2838';
282
+ export const T_GRAY_A_16 = 'rgba(31, 30, 36, 0.16)';
283
+ export const T_GRAY_A_24 = 'rgba(31, 30, 36, 0.24)';
284
+ export const T_GRAY_A_02 = 'rgba(31, 30, 36, 0.02)';
285
+ export const T_GRAY_A_04 = 'rgba(31, 30, 36, 0.04)';
286
+ export const T_GRAY_A_06 = 'rgba(31, 30, 36, 0.06)';
287
+ export const T_GRAY_A_08 = 'rgba(31, 30, 36, 0.08)';
288
+ export const T_WHITE_A_16 = 'rgba(255, 255, 255, 0.16)';
289
+ export const T_WHITE_A_24 = 'rgba(255, 255, 255, 0.24)';
290
+ export const T_WHITE_A_36 = 'rgba(255, 255, 255, 0.36)';
291
+ export const T_WHITE_A_02 = 'rgba(255, 255, 255, 0.02)';
292
+ export const T_WHITE_A_04 = 'rgba(255, 255, 255, 0.04)';
293
+ export const T_WHITE_A_06 = 'rgba(255, 255, 255, 0.06)';
294
+ export const T_WHITE_A_08 = 'rgba(255, 255, 255, 0.08)';
295
+ export const GL_LINE_HEIGHT_12 = '0.75rem';
296
+ export const GL_LINE_HEIGHT_16 = '1rem';
297
+ export const GL_LINE_HEIGHT_20 = '1.25rem';
298
+ export const GL_LINE_HEIGHT_24 = '1.5rem';
299
+ export const GL_LINE_HEIGHT_28 = '1.75rem';
300
+ export const GL_LINE_HEIGHT_32 = '2rem';
301
+ export const GL_LINE_HEIGHT_36 = '2.25rem';
302
+ export const GL_LINE_HEIGHT_42 = '2.625rem';
303
+ export const GL_LINE_HEIGHT_44 = '2.75rem';
304
+ export const GL_LINE_HEIGHT_52 = '3.25rem';
202
305
  export const GL_TEXT_PRIMARY = '#ececef'; // Use text.color.default instead
203
306
  export const GL_TEXT_SECONDARY = '#89888d'; // Use text.color.subtle instead
204
307
  export const GL_TEXT_TERTIARY = '#737278'; // Use text.color.disabled instead
@@ -207,4 +310,6 @@ export const GL_TEXT_COLOR_SUBTLE = '#bfbfc3'; // Used for supplemental text tha
207
310
  export const GL_TEXT_COLOR_STRONG = '#fff'; // Used for text with the highest contrast.
208
311
  export const GL_TEXT_COLOR_HEADING = '#fff'; // Used for headings level 1-6.
209
312
  export const GL_TEXT_COLOR_LINK = '#63a6e9'; // Used for default text links.
313
+ export const GL_TEXT_COLOR_DANGER = '#f57f6c'; // Used for text indicating a problem, critical state, destructive action, error, failure, removal, stop, or declination.
314
+ export const GL_TEXT_COLOR_SUCCESS = '#52b87a'; // Used for text indicating success or validity.
210
315
  export const GL_TEXT_COLOR_DISABLED = '#89888d'; // Used for disabled text.