@gitlab/ui 80.15.2 → 80.16.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/base/breadcrumb/breadcrumb.js +1 -0
  3. package/dist/components/base/icon/icon.js +14 -2
  4. package/dist/index.css +1 -1
  5. package/dist/index.css.map +1 -1
  6. package/dist/tailwind.css +1 -1
  7. package/dist/tailwind.css.map +1 -1
  8. package/dist/tokens/build/js/tokens.dark.js +10 -1
  9. package/dist/tokens/build/js/tokens.js +10 -1
  10. package/dist/tokens/css/tokens.css +9 -0
  11. package/dist/tokens/css/tokens.dark.css +9 -0
  12. package/dist/tokens/js/tokens.dark.js +9 -0
  13. package/dist/tokens/js/tokens.js +9 -0
  14. package/dist/tokens/json/tokens.dark.json +202 -0
  15. package/dist/tokens/json/tokens.json +202 -0
  16. package/dist/tokens/scss/_tokens.dark.scss +9 -0
  17. package/dist/tokens/scss/_tokens.scss +9 -0
  18. package/dist/tokens/scss/_tokens_custom_properties.scss +9 -0
  19. package/dist/tokens/tailwind/tokens.cjs +20 -0
  20. package/dist/utils/constants.js +13 -1
  21. package/package.json +3 -3
  22. package/src/components/base/breadcrumb/breadcrumb.vue +3 -0
  23. package/src/components/base/icon/icon.scss +0 -1
  24. package/src/components/base/icon/icon.vue +14 -2
  25. package/src/tokens/build/css/tokens.css +9 -0
  26. package/src/tokens/build/css/tokens.dark.css +9 -0
  27. package/src/tokens/build/js/tokens.dark.js +9 -0
  28. package/src/tokens/build/js/tokens.js +9 -0
  29. package/src/tokens/build/json/tokens.dark.json +202 -0
  30. package/src/tokens/build/json/tokens.json +202 -0
  31. package/src/tokens/build/scss/_tokens.dark.scss +9 -0
  32. package/src/tokens/build/scss/_tokens.scss +9 -0
  33. package/src/tokens/build/scss/_tokens_custom_properties.scss +9 -0
  34. package/src/tokens/build/tailwind/tokens.cjs +20 -0
  35. package/src/tokens/icon.tokens.json +78 -0
  36. package/src/utils/constants.js +13 -0
  37. package/tailwind.defaults.js +7 -1
@@ -224,6 +224,18 @@ const backgroundColors = {
224
224
  disabled:
225
225
  'var(--gl-background-color-disabled, var(--gl-color-neutral-10, #fbfafd))',
226
226
  };
227
+ const iconColors = {
228
+ default: 'var(--gl-icon-color-default, var(--gl-color-neutral-700, #535158))',
229
+ subtle: 'var(--gl-icon-color-subtle, var(--gl-color-neutral-500, #737278))',
230
+ strong: 'var(--gl-icon-color-strong, var(--gl-color-neutral-900, #333238))',
231
+ disabled:
232
+ 'var(--gl-icon-color-disabled, var(--gl-color-neutral-300, #a4a3a8))',
233
+ link: 'var(--gl-icon-color-link, var(--gl-color-blue-600, #1068bf))',
234
+ info: 'var(--gl-icon-color-info, var(--gl-color-blue-600, #1068bf))',
235
+ warning: 'var(--gl-icon-color-warning, var(--gl-color-orange-600, #9e5400))',
236
+ danger: 'var(--gl-icon-color-danger, var(--gl-color-red-600, #c91c00))',
237
+ success: 'var(--gl-icon-color-success, var(--gl-color-green-600, #217645))',
238
+ };
227
239
 
228
240
  const colors = {
229
241
  inherit: 'inherit',
@@ -241,6 +253,13 @@ const backgroundColor = {
241
253
  ...backgroundColors,
242
254
  };
243
255
 
256
+ const fill = {
257
+ ...colors,
258
+ icon: {
259
+ ...iconColors,
260
+ },
261
+ };
262
+
244
263
  const textColor = {
245
264
  ...colors,
246
265
  ...textColors,
@@ -253,4 +272,5 @@ module.exports = {
253
272
  colors,
254
273
  backgroundColor,
255
274
  textColor,
275
+ fill,
256
276
  };
@@ -153,6 +153,18 @@ const datepickerWidthOptionsMap = {
153
153
 
154
154
  // size options all have corresponding styles (e.g. .s12 defined in icon.scss)
155
155
  const iconSizeOptions = [8, 12, 14, 16, 24, 32, 48, 72];
156
+ const iconVariantOptions = {
157
+ current: 'gl-fill-current',
158
+ default: 'gl-fill-icon-default',
159
+ subtle: 'gl-fill-icon-subtle',
160
+ strong: 'gl-fill-icon-strong',
161
+ disabled: 'gl-fill-icon-disabled',
162
+ link: 'gl-fill-icon-link',
163
+ info: 'gl-fill-icon-info',
164
+ warning: 'gl-fill-icon-warning',
165
+ danger: 'gl-fill-icon-danger',
166
+ success: 'gl-fill-icon-success'
167
+ };
156
168
  const triggerVariantOptions = {
157
169
  click: 'click',
158
170
  hover: 'hover',
@@ -294,4 +306,4 @@ const loadingIconVariants = {
294
306
  dots: 'dots'
295
307
  };
296
308
 
297
- export { COMMA, CONTRAST_LEVELS, HEX_REGEX, LEFT_MOUSE_BUTTON, alertVariantIconMap, alertVariantOptions, alignOptions, avatarShapeOptions, avatarSizeOptions, avatarsInlineSizeOptions, badgeForButtonOptions, badgeIconSizeOptions, badgeSizeOptions, badgeVariantOptions, bannerVariants, buttonCategoryOptions, buttonSizeOptions, buttonVariantOptions, colorThemes, columnOptions, datepickerWidthOptionsMap, defaultDateFormat, drawerVariants, dropdownAllowedAutoPlacements, dropdownPlacements, dropdownVariantOptions, focusableTags, formInputWidths, formStateOptions, glThemes, iconSizeOptions, keyboard, labelColorOptions, loadingIconSizes, loadingIconVariants, maxZIndex, modalButtonDefaults, modalSizeOptions, popoverPlacements, resizeDebounceTime, tabsButtonDefaults, targetOptions, toggleLabelPosition, tokenVariants, tooltipActionEvents, tooltipDelay, tooltipPlacements, triggerVariantOptions, truncateOptions, variantCssColorMap, variantOptions, variantOptionsWithNoDefault, viewModeOptions };
309
+ export { COMMA, CONTRAST_LEVELS, HEX_REGEX, LEFT_MOUSE_BUTTON, alertVariantIconMap, alertVariantOptions, alignOptions, avatarShapeOptions, avatarSizeOptions, avatarsInlineSizeOptions, badgeForButtonOptions, badgeIconSizeOptions, badgeSizeOptions, badgeVariantOptions, bannerVariants, buttonCategoryOptions, buttonSizeOptions, buttonVariantOptions, colorThemes, columnOptions, datepickerWidthOptionsMap, defaultDateFormat, drawerVariants, dropdownAllowedAutoPlacements, dropdownPlacements, dropdownVariantOptions, focusableTags, formInputWidths, formStateOptions, glThemes, iconSizeOptions, iconVariantOptions, keyboard, labelColorOptions, loadingIconSizes, loadingIconVariants, maxZIndex, modalButtonDefaults, modalSizeOptions, popoverPlacements, resizeDebounceTime, tabsButtonDefaults, targetOptions, toggleLabelPosition, tokenVariants, tooltipActionEvents, tooltipDelay, tooltipPlacements, triggerVariantOptions, truncateOptions, variantCssColorMap, variantOptions, variantOptionsWithNoDefault, viewModeOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "80.15.2",
3
+ "version": "80.16.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -55,8 +55,8 @@
55
55
  "test:visual": "./bin/run-visual-tests.sh 'test-storybook --browsers firefox --verbose --url http://localhost:9001'",
56
56
  "test:visual:update": "./bin/run-visual-tests.sh 'test-storybook -u --browsers firefox --verbose --url http://localhost:9001'",
57
57
  "test:visual:internal": "NODE_ENV=test IS_VISUAL_TEST=true start-test storybook:run http-get://${STORYBOOK_HOST:-localhost}:9001/iframe.html",
58
- "prettier": "prettier --check '**/*.{js,ts,vue}'",
59
- "prettier:fix": "prettier --write '**/*.{js,ts,vue}'",
58
+ "prettier": "prettier --check '**/*.{js,mjs,ts,vue}'",
59
+ "prettier:fix": "prettier --write '**/*.{js,mjs,ts,vue}'",
60
60
  "eslint": "eslint --max-warnings 0 --ext .js,.vue .",
61
61
  "preeslint": "yarn generate-utilities",
62
62
  "eslint:fix": "yarn eslint --fix",
@@ -128,6 +128,9 @@ export default {
128
128
  await this.$nextTick();
129
129
 
130
130
  this.totalBreadcrumbsWidth = 0;
131
+
132
+ if (!this.$refs.breadcrumbs) return;
133
+
131
134
  this.$refs.breadcrumbs.forEach((b, index) => {
132
135
  const width = b.$el.clientWidth;
133
136
  this.totalBreadcrumbsWidth += width;
@@ -1,5 +1,4 @@
1
1
  .gl-icon {
2
- fill: currentColor;
3
2
  @each $size in $gl-icon-sizes {
4
3
  &.s#{$size} {
5
4
  width: #{$size}px;
@@ -1,7 +1,7 @@
1
1
  <!-- eslint-disable vue/multi-word-component-names -->
2
2
  <script>
3
3
  import iconsPath from '@gitlab/svgs/dist/icons.svg';
4
- import { iconSizeOptions } from '../../../utils/constants';
4
+ import { iconSizeOptions, iconVariantOptions } from '../../../utils/constants';
5
5
 
6
6
  let iconValidator = () => true;
7
7
 
@@ -59,6 +59,15 @@ export default {
59
59
  default: 16,
60
60
  validator: (value) => iconSizeOptions.includes(value),
61
61
  },
62
+ /**
63
+ * Icon variant
64
+ */
65
+ variant: {
66
+ type: String,
67
+ required: false,
68
+ default: 'current',
69
+ validator: (value) => Object.keys(iconVariantOptions).includes(value),
70
+ },
62
71
  },
63
72
  computed: {
64
73
  spriteHref() {
@@ -67,6 +76,9 @@ export default {
67
76
  iconSizeClass() {
68
77
  return this.size ? `s${this.size}` : '';
69
78
  },
79
+ iconVariantClass() {
80
+ return this.variant ? iconVariantOptions[this.variant] : '';
81
+ },
70
82
  },
71
83
  };
72
84
  </script>
@@ -74,7 +86,7 @@ export default {
74
86
  <template>
75
87
  <svg
76
88
  :key="spriteHref"
77
- :class="['gl-icon', iconSizeClass]"
89
+ :class="['gl-icon', iconSizeClass, iconVariantClass]"
78
90
  :data-testid="`${name}-icon`"
79
91
  role="img"
80
92
  :aria-hidden="!ariaLabel"
@@ -314,6 +314,15 @@
314
314
  --gl-text-color-strong: var(--gl-color-neutral-950); /* Used for text with the highest contrast. */
315
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
316
  --gl-text-color-default: var(--gl-color-neutral-800); /* Used for the default text color. */
317
+ --gl-icon-color-success: var(--gl-color-green-600); /* Used for an icon associated with success or validity. */
318
+ --gl-icon-color-danger: var(--gl-color-red-600); /* Used for an icon associated with an error or danger. */
319
+ --gl-icon-color-warning: var(--gl-color-orange-600); /* Used for an icon associated with a warning. */
320
+ --gl-icon-color-info: var(--gl-color-blue-600); /* Used for an icon associated with information or help. */
321
+ --gl-icon-color-link: var(--gl-color-blue-600); /* Used for an icon within a link. */
322
+ --gl-icon-color-disabled: var(--gl-color-neutral-300); /* Used for an icon within a disabled section. */
323
+ --gl-icon-color-strong: var(--gl-color-neutral-900); /* Used for an icon with the highest contrast. */
324
+ --gl-icon-color-subtle: var(--gl-color-neutral-500); /* Used for a static or decorational icon. Can be paired with subtle text. */
325
+ --gl-icon-color-default: var(--gl-color-neutral-700); /* Used for the default icon color. Can be paired with default text. */
317
326
  --gl-background-color-disabled: var(--gl-color-neutral-10); /* Used to identify a disabled section. */
318
327
  --gl-background-color-strong: var(--gl-color-neutral-50); /* Used to make the background easily stand out from the default. */
319
328
  --gl-background-color-subtle: var(--gl-color-neutral-10); /* Used to slightly differentiate the background from the default. */
@@ -314,6 +314,15 @@
314
314
  --gl-text-color-strong: var(--gl-color-neutral-0); /* Used for text with the highest contrast. */
315
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
316
  --gl-text-color-default: var(--gl-color-neutral-50); /* Used for the default text color. */
317
+ --gl-icon-color-success: var(--gl-color-green-300); /* Used for an icon associated with success or validity. */
318
+ --gl-icon-color-danger: var(--gl-color-red-300); /* Used for an icon associated with an error or danger. */
319
+ --gl-icon-color-warning: var(--gl-color-orange-300); /* Used for an icon associated with a warning. */
320
+ --gl-icon-color-info: var(--gl-color-blue-300); /* Used for an icon associated with information or help. */
321
+ --gl-icon-color-link: var(--gl-color-blue-300); /* Used for an icon within a link. */
322
+ --gl-icon-color-disabled: var(--gl-color-neutral-500); /* Used for an icon within a disabled section. */
323
+ --gl-icon-color-strong: var(--gl-color-neutral-10); /* Used for an icon with the highest contrast. */
324
+ --gl-icon-color-subtle: var(--gl-color-neutral-300); /* Used for a static or decorational icon. Can be paired with subtle text. */
325
+ --gl-icon-color-default: var(--gl-color-neutral-100); /* Used for the default icon color. Can be paired with default text. */
317
326
  --gl-background-color-disabled: var(--gl-color-neutral-900); /* Used to identify a disabled section. */
318
327
  --gl-background-color-strong: var(--gl-color-neutral-800); /* Used to make the background easily stand out from the default. */
319
328
  --gl-background-color-subtle: var(--gl-color-neutral-900); /* Used to slightly differentiate the background from the default. */
@@ -296,6 +296,15 @@ export const T_WHITE_A_02 = 'rgba(255, 255, 255, 0.02)';
296
296
  export const T_WHITE_A_04 = 'rgba(255, 255, 255, 0.04)';
297
297
  export const T_WHITE_A_06 = 'rgba(255, 255, 255, 0.06)';
298
298
  export const T_WHITE_A_08 = 'rgba(255, 255, 255, 0.08)';
299
+ export const GL_ICON_COLOR_DEFAULT = '#dcdcde'; // Used for the default icon color. Can be paired with default text.
300
+ export const GL_ICON_COLOR_SUBTLE = '#a4a3a8'; // Used for a static or decorational icon. Can be paired with subtle text.
301
+ export const GL_ICON_COLOR_STRONG = '#fbfafd'; // Used for an icon with the highest contrast.
302
+ export const GL_ICON_COLOR_DISABLED = '#737278'; // Used for an icon within a disabled section.
303
+ export const GL_ICON_COLOR_LINK = '#63a6e9'; // Used for an icon within a link.
304
+ export const GL_ICON_COLOR_INFO = '#63a6e9'; // Used for an icon associated with information or help.
305
+ export const GL_ICON_COLOR_WARNING = '#d99530'; // Used for an icon associated with a warning.
306
+ export const GL_ICON_COLOR_DANGER = '#f57f6c'; // Used for an icon associated with an error or danger.
307
+ export const GL_ICON_COLOR_SUCCESS = '#52b87a'; // Used for an icon associated with success or validity.
299
308
  export const GL_LINE_HEIGHT_12 = '0.75rem';
300
309
  export const GL_LINE_HEIGHT_16 = '1rem';
301
310
  export const GL_LINE_HEIGHT_20 = '1.25rem';
@@ -296,6 +296,15 @@ export const T_WHITE_A_02 = 'rgba(255, 255, 255, 0.02)';
296
296
  export const T_WHITE_A_04 = 'rgba(255, 255, 255, 0.04)';
297
297
  export const T_WHITE_A_06 = 'rgba(255, 255, 255, 0.06)';
298
298
  export const T_WHITE_A_08 = 'rgba(255, 255, 255, 0.08)';
299
+ export const GL_ICON_COLOR_DEFAULT = '#535158'; // Used for the default icon color. Can be paired with default text.
300
+ export const GL_ICON_COLOR_SUBTLE = '#737278'; // Used for a static or decorational icon. Can be paired with subtle text.
301
+ export const GL_ICON_COLOR_STRONG = '#333238'; // Used for an icon with the highest contrast.
302
+ export const GL_ICON_COLOR_DISABLED = '#a4a3a8'; // Used for an icon within a disabled section.
303
+ export const GL_ICON_COLOR_LINK = '#1068bf'; // Used for an icon within a link.
304
+ export const GL_ICON_COLOR_INFO = '#1068bf'; // Used for an icon associated with information or help.
305
+ export const GL_ICON_COLOR_WARNING = '#9e5400'; // Used for an icon associated with a warning.
306
+ export const GL_ICON_COLOR_DANGER = '#c91c00'; // Used for an icon associated with an error or danger.
307
+ export const GL_ICON_COLOR_SUCCESS = '#217645'; // Used for an icon associated with success or validity.
299
308
  export const GL_LINE_HEIGHT_12 = '0.75rem';
300
309
  export const GL_LINE_HEIGHT_16 = '1rem';
301
310
  export const GL_LINE_HEIGHT_20 = '1.25rem';
@@ -6451,6 +6451,208 @@
6451
6451
  ]
6452
6452
  }
6453
6453
  },
6454
+ "icon": {
6455
+ "color": {
6456
+ "default": {
6457
+ "value": "#dcdcde",
6458
+ "$type": "color",
6459
+ "comment": "Used for the default icon color. Can be paired with default text.",
6460
+ "filePath": "src/tokens/icon.tokens.json",
6461
+ "isSource": true,
6462
+ "original": {
6463
+ "value": {
6464
+ "default": "{color.neutral.700}",
6465
+ "dark": "{color.neutral.100}"
6466
+ },
6467
+ "$type": "color",
6468
+ "comment": "Used for the default icon color. Can be paired with default text."
6469
+ },
6470
+ "name": "ICON_COLOR_DEFAULT",
6471
+ "attributes": {},
6472
+ "path": [
6473
+ "icon",
6474
+ "color",
6475
+ "default"
6476
+ ]
6477
+ },
6478
+ "subtle": {
6479
+ "value": "#a4a3a8",
6480
+ "$type": "color",
6481
+ "comment": "Used for a static or decorational icon. Can be paired with subtle text.",
6482
+ "filePath": "src/tokens/icon.tokens.json",
6483
+ "isSource": true,
6484
+ "original": {
6485
+ "value": {
6486
+ "default": "{color.neutral.500}",
6487
+ "dark": "{color.neutral.300}"
6488
+ },
6489
+ "$type": "color",
6490
+ "comment": "Used for a static or decorational icon. Can be paired with subtle text."
6491
+ },
6492
+ "name": "ICON_COLOR_SUBTLE",
6493
+ "attributes": {},
6494
+ "path": [
6495
+ "icon",
6496
+ "color",
6497
+ "subtle"
6498
+ ]
6499
+ },
6500
+ "strong": {
6501
+ "value": "#fbfafd",
6502
+ "$type": "color",
6503
+ "comment": "Used for an icon with the highest contrast.",
6504
+ "filePath": "src/tokens/icon.tokens.json",
6505
+ "isSource": true,
6506
+ "original": {
6507
+ "value": {
6508
+ "default": "{color.neutral.900}",
6509
+ "dark": "{color.neutral.10}"
6510
+ },
6511
+ "$type": "color",
6512
+ "comment": "Used for an icon with the highest contrast."
6513
+ },
6514
+ "name": "ICON_COLOR_STRONG",
6515
+ "attributes": {},
6516
+ "path": [
6517
+ "icon",
6518
+ "color",
6519
+ "strong"
6520
+ ]
6521
+ },
6522
+ "disabled": {
6523
+ "value": "#737278",
6524
+ "$type": "color",
6525
+ "comment": "Used for an icon within a disabled section.",
6526
+ "filePath": "src/tokens/icon.tokens.json",
6527
+ "isSource": true,
6528
+ "original": {
6529
+ "value": {
6530
+ "default": "{color.neutral.300}",
6531
+ "dark": "{color.neutral.500}"
6532
+ },
6533
+ "$type": "color",
6534
+ "comment": "Used for an icon within a disabled section."
6535
+ },
6536
+ "name": "ICON_COLOR_DISABLED",
6537
+ "attributes": {},
6538
+ "path": [
6539
+ "icon",
6540
+ "color",
6541
+ "disabled"
6542
+ ]
6543
+ },
6544
+ "link": {
6545
+ "value": "#63a6e9",
6546
+ "$type": "color",
6547
+ "comment": "Used for an icon within a link.",
6548
+ "filePath": "src/tokens/icon.tokens.json",
6549
+ "isSource": true,
6550
+ "original": {
6551
+ "value": {
6552
+ "default": "{color.blue.600}",
6553
+ "dark": "{color.blue.300}"
6554
+ },
6555
+ "$type": "color",
6556
+ "comment": "Used for an icon within a link."
6557
+ },
6558
+ "name": "ICON_COLOR_LINK",
6559
+ "attributes": {},
6560
+ "path": [
6561
+ "icon",
6562
+ "color",
6563
+ "link"
6564
+ ]
6565
+ },
6566
+ "info": {
6567
+ "value": "#63a6e9",
6568
+ "$type": "color",
6569
+ "comment": "Used for an icon associated with information or help.",
6570
+ "filePath": "src/tokens/icon.tokens.json",
6571
+ "isSource": true,
6572
+ "original": {
6573
+ "value": {
6574
+ "default": "{color.blue.600}",
6575
+ "dark": "{color.blue.300}"
6576
+ },
6577
+ "$type": "color",
6578
+ "comment": "Used for an icon associated with information or help."
6579
+ },
6580
+ "name": "ICON_COLOR_INFO",
6581
+ "attributes": {},
6582
+ "path": [
6583
+ "icon",
6584
+ "color",
6585
+ "info"
6586
+ ]
6587
+ },
6588
+ "warning": {
6589
+ "value": "#d99530",
6590
+ "$type": "color",
6591
+ "comment": "Used for an icon associated with a warning.",
6592
+ "filePath": "src/tokens/icon.tokens.json",
6593
+ "isSource": true,
6594
+ "original": {
6595
+ "value": {
6596
+ "default": "{color.orange.600}",
6597
+ "dark": "{color.orange.300}"
6598
+ },
6599
+ "$type": "color",
6600
+ "comment": "Used for an icon associated with a warning."
6601
+ },
6602
+ "name": "ICON_COLOR_WARNING",
6603
+ "attributes": {},
6604
+ "path": [
6605
+ "icon",
6606
+ "color",
6607
+ "warning"
6608
+ ]
6609
+ },
6610
+ "danger": {
6611
+ "value": "#f57f6c",
6612
+ "$type": "color",
6613
+ "comment": "Used for an icon associated with an error or danger.",
6614
+ "filePath": "src/tokens/icon.tokens.json",
6615
+ "isSource": true,
6616
+ "original": {
6617
+ "value": {
6618
+ "default": "{color.red.600}",
6619
+ "dark": "{color.red.300}"
6620
+ },
6621
+ "$type": "color",
6622
+ "comment": "Used for an icon associated with an error or danger."
6623
+ },
6624
+ "name": "ICON_COLOR_DANGER",
6625
+ "attributes": {},
6626
+ "path": [
6627
+ "icon",
6628
+ "color",
6629
+ "danger"
6630
+ ]
6631
+ },
6632
+ "success": {
6633
+ "value": "#52b87a",
6634
+ "$type": "color",
6635
+ "comment": "Used for an icon associated with success or validity.",
6636
+ "filePath": "src/tokens/icon.tokens.json",
6637
+ "isSource": true,
6638
+ "original": {
6639
+ "value": {
6640
+ "default": "{color.green.600}",
6641
+ "dark": "{color.green.300}"
6642
+ },
6643
+ "$type": "color",
6644
+ "comment": "Used for an icon associated with success or validity."
6645
+ },
6646
+ "name": "ICON_COLOR_SUCCESS",
6647
+ "attributes": {},
6648
+ "path": [
6649
+ "icon",
6650
+ "color",
6651
+ "success"
6652
+ ]
6653
+ }
6654
+ }
6655
+ },
6454
6656
  "line-height": {
6455
6657
  "12": {
6456
6658
  "value": "0.75rem",
@@ -6451,6 +6451,208 @@
6451
6451
  ]
6452
6452
  }
6453
6453
  },
6454
+ "icon": {
6455
+ "color": {
6456
+ "default": {
6457
+ "value": "#535158",
6458
+ "$type": "color",
6459
+ "comment": "Used for the default icon color. Can be paired with default text.",
6460
+ "filePath": "src/tokens/icon.tokens.json",
6461
+ "isSource": true,
6462
+ "original": {
6463
+ "value": {
6464
+ "default": "{color.neutral.700}",
6465
+ "dark": "{color.neutral.100}"
6466
+ },
6467
+ "$type": "color",
6468
+ "comment": "Used for the default icon color. Can be paired with default text."
6469
+ },
6470
+ "name": "ICON_COLOR_DEFAULT",
6471
+ "attributes": {},
6472
+ "path": [
6473
+ "icon",
6474
+ "color",
6475
+ "default"
6476
+ ]
6477
+ },
6478
+ "subtle": {
6479
+ "value": "#737278",
6480
+ "$type": "color",
6481
+ "comment": "Used for a static or decorational icon. Can be paired with subtle text.",
6482
+ "filePath": "src/tokens/icon.tokens.json",
6483
+ "isSource": true,
6484
+ "original": {
6485
+ "value": {
6486
+ "default": "{color.neutral.500}",
6487
+ "dark": "{color.neutral.300}"
6488
+ },
6489
+ "$type": "color",
6490
+ "comment": "Used for a static or decorational icon. Can be paired with subtle text."
6491
+ },
6492
+ "name": "ICON_COLOR_SUBTLE",
6493
+ "attributes": {},
6494
+ "path": [
6495
+ "icon",
6496
+ "color",
6497
+ "subtle"
6498
+ ]
6499
+ },
6500
+ "strong": {
6501
+ "value": "#333238",
6502
+ "$type": "color",
6503
+ "comment": "Used for an icon with the highest contrast.",
6504
+ "filePath": "src/tokens/icon.tokens.json",
6505
+ "isSource": true,
6506
+ "original": {
6507
+ "value": {
6508
+ "default": "{color.neutral.900}",
6509
+ "dark": "{color.neutral.10}"
6510
+ },
6511
+ "$type": "color",
6512
+ "comment": "Used for an icon with the highest contrast."
6513
+ },
6514
+ "name": "ICON_COLOR_STRONG",
6515
+ "attributes": {},
6516
+ "path": [
6517
+ "icon",
6518
+ "color",
6519
+ "strong"
6520
+ ]
6521
+ },
6522
+ "disabled": {
6523
+ "value": "#a4a3a8",
6524
+ "$type": "color",
6525
+ "comment": "Used for an icon within a disabled section.",
6526
+ "filePath": "src/tokens/icon.tokens.json",
6527
+ "isSource": true,
6528
+ "original": {
6529
+ "value": {
6530
+ "default": "{color.neutral.300}",
6531
+ "dark": "{color.neutral.500}"
6532
+ },
6533
+ "$type": "color",
6534
+ "comment": "Used for an icon within a disabled section."
6535
+ },
6536
+ "name": "ICON_COLOR_DISABLED",
6537
+ "attributes": {},
6538
+ "path": [
6539
+ "icon",
6540
+ "color",
6541
+ "disabled"
6542
+ ]
6543
+ },
6544
+ "link": {
6545
+ "value": "#1068bf",
6546
+ "$type": "color",
6547
+ "comment": "Used for an icon within a link.",
6548
+ "filePath": "src/tokens/icon.tokens.json",
6549
+ "isSource": true,
6550
+ "original": {
6551
+ "value": {
6552
+ "default": "{color.blue.600}",
6553
+ "dark": "{color.blue.300}"
6554
+ },
6555
+ "$type": "color",
6556
+ "comment": "Used for an icon within a link."
6557
+ },
6558
+ "name": "ICON_COLOR_LINK",
6559
+ "attributes": {},
6560
+ "path": [
6561
+ "icon",
6562
+ "color",
6563
+ "link"
6564
+ ]
6565
+ },
6566
+ "info": {
6567
+ "value": "#1068bf",
6568
+ "$type": "color",
6569
+ "comment": "Used for an icon associated with information or help.",
6570
+ "filePath": "src/tokens/icon.tokens.json",
6571
+ "isSource": true,
6572
+ "original": {
6573
+ "value": {
6574
+ "default": "{color.blue.600}",
6575
+ "dark": "{color.blue.300}"
6576
+ },
6577
+ "$type": "color",
6578
+ "comment": "Used for an icon associated with information or help."
6579
+ },
6580
+ "name": "ICON_COLOR_INFO",
6581
+ "attributes": {},
6582
+ "path": [
6583
+ "icon",
6584
+ "color",
6585
+ "info"
6586
+ ]
6587
+ },
6588
+ "warning": {
6589
+ "value": "#9e5400",
6590
+ "$type": "color",
6591
+ "comment": "Used for an icon associated with a warning.",
6592
+ "filePath": "src/tokens/icon.tokens.json",
6593
+ "isSource": true,
6594
+ "original": {
6595
+ "value": {
6596
+ "default": "{color.orange.600}",
6597
+ "dark": "{color.orange.300}"
6598
+ },
6599
+ "$type": "color",
6600
+ "comment": "Used for an icon associated with a warning."
6601
+ },
6602
+ "name": "ICON_COLOR_WARNING",
6603
+ "attributes": {},
6604
+ "path": [
6605
+ "icon",
6606
+ "color",
6607
+ "warning"
6608
+ ]
6609
+ },
6610
+ "danger": {
6611
+ "value": "#c91c00",
6612
+ "$type": "color",
6613
+ "comment": "Used for an icon associated with an error or danger.",
6614
+ "filePath": "src/tokens/icon.tokens.json",
6615
+ "isSource": true,
6616
+ "original": {
6617
+ "value": {
6618
+ "default": "{color.red.600}",
6619
+ "dark": "{color.red.300}"
6620
+ },
6621
+ "$type": "color",
6622
+ "comment": "Used for an icon associated with an error or danger."
6623
+ },
6624
+ "name": "ICON_COLOR_DANGER",
6625
+ "attributes": {},
6626
+ "path": [
6627
+ "icon",
6628
+ "color",
6629
+ "danger"
6630
+ ]
6631
+ },
6632
+ "success": {
6633
+ "value": "#217645",
6634
+ "$type": "color",
6635
+ "comment": "Used for an icon associated with success or validity.",
6636
+ "filePath": "src/tokens/icon.tokens.json",
6637
+ "isSource": true,
6638
+ "original": {
6639
+ "value": {
6640
+ "default": "{color.green.600}",
6641
+ "dark": "{color.green.300}"
6642
+ },
6643
+ "$type": "color",
6644
+ "comment": "Used for an icon associated with success or validity."
6645
+ },
6646
+ "name": "ICON_COLOR_SUCCESS",
6647
+ "attributes": {},
6648
+ "path": [
6649
+ "icon",
6650
+ "color",
6651
+ "success"
6652
+ ]
6653
+ }
6654
+ }
6655
+ },
6454
6656
  "line-height": {
6455
6657
  "12": {
6456
6658
  "value": "0.75rem",
@@ -312,6 +312,15 @@ $gl-text-color-heading: $gl-color-neutral-0; // Used for headings level 1-6.
312
312
  $gl-text-color-strong: $gl-color-neutral-0; // Used for text with the highest contrast.
313
313
  $gl-text-color-subtle: $gl-color-neutral-200; // 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; // Used for the default text color.
315
+ $gl-icon-color-success: $gl-color-green-300; // Used for an icon associated with success or validity.
316
+ $gl-icon-color-danger: $gl-color-red-300; // Used for an icon associated with an error or danger.
317
+ $gl-icon-color-warning: $gl-color-orange-300; // Used for an icon associated with a warning.
318
+ $gl-icon-color-info: $gl-color-blue-300; // Used for an icon associated with information or help.
319
+ $gl-icon-color-link: $gl-color-blue-300; // Used for an icon within a link.
320
+ $gl-icon-color-disabled: $gl-color-neutral-500; // Used for an icon within a disabled section.
321
+ $gl-icon-color-strong: $gl-color-neutral-10; // Used for an icon with the highest contrast.
322
+ $gl-icon-color-subtle: $gl-color-neutral-300; // Used for a static or decorational icon. Can be paired with subtle text.
323
+ $gl-icon-color-default: $gl-color-neutral-100; // Used for the default icon color. Can be paired with default text.
315
324
  $gl-background-color-disabled: $gl-color-neutral-900; // Used to identify a disabled section.
316
325
  $gl-background-color-strong: $gl-color-neutral-800; // Used to make the background easily stand out from the default.
317
326
  $gl-background-color-subtle: $gl-color-neutral-900; // Used to slightly differentiate the background from the default.
@@ -312,6 +312,15 @@ $gl-text-color-heading: $gl-color-neutral-950; // Used for headings level 1-6.
312
312
  $gl-text-color-strong: $gl-color-neutral-950; // Used for text with the highest contrast.
313
313
  $gl-text-color-subtle: $gl-color-neutral-600; // 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; // Used for the default text color.
315
+ $gl-icon-color-success: $gl-color-green-600; // Used for an icon associated with success or validity.
316
+ $gl-icon-color-danger: $gl-color-red-600; // Used for an icon associated with an error or danger.
317
+ $gl-icon-color-warning: $gl-color-orange-600; // Used for an icon associated with a warning.
318
+ $gl-icon-color-info: $gl-color-blue-600; // Used for an icon associated with information or help.
319
+ $gl-icon-color-link: $gl-color-blue-600; // Used for an icon within a link.
320
+ $gl-icon-color-disabled: $gl-color-neutral-300; // Used for an icon within a disabled section.
321
+ $gl-icon-color-strong: $gl-color-neutral-900; // Used for an icon with the highest contrast.
322
+ $gl-icon-color-subtle: $gl-color-neutral-500; // Used for a static or decorational icon. Can be paired with subtle text.
323
+ $gl-icon-color-default: $gl-color-neutral-700; // Used for the default icon color. Can be paired with default text.
315
324
  $gl-background-color-disabled: $gl-color-neutral-10; // Used to identify a disabled section.
316
325
  $gl-background-color-strong: $gl-color-neutral-50; // Used to make the background easily stand out from the default.
317
326
  $gl-background-color-subtle: $gl-color-neutral-10; // Used to slightly differentiate the background from the default.