@gitlab/ui 123.7.0 → 123.9.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 (48) hide show
  1. package/dist/index.css +2 -2
  2. package/dist/index.css.map +1 -1
  3. package/dist/tailwind.css +1 -1
  4. package/dist/tailwind.css.map +1 -1
  5. package/dist/tokens/build/js/tokens.dark.js +19 -6
  6. package/dist/tokens/build/js/tokens.js +19 -6
  7. package/dist/tokens/css/tokens.css +18 -5
  8. package/dist/tokens/css/tokens.dark.css +18 -5
  9. package/dist/tokens/docs/tokens-tailwind-docs.dark.json +746 -2
  10. package/dist/tokens/docs/tokens-tailwind-docs.json +746 -2
  11. package/dist/tokens/figma/constants.tokens.json +164 -10
  12. package/dist/tokens/figma/contextual.tokens.json +14 -2
  13. package/dist/tokens/figma/semantic.tokens.json +15 -2
  14. package/dist/tokens/js/tokens.dark.js +45 -5
  15. package/dist/tokens/js/tokens.js +45 -5
  16. package/dist/tokens/json/tokens.dark.json +513 -29
  17. package/dist/tokens/json/tokens.json +513 -29
  18. package/dist/tokens/scss/_tokens.dark.scss +18 -5
  19. package/dist/tokens/scss/_tokens.scss +18 -5
  20. package/dist/tokens/scss/_tokens_custom_properties.scss +13 -0
  21. package/dist/tokens/tailwind/tokens.cjs +9 -1
  22. package/package.json +2 -2
  23. package/src/components/base/button/button.scss +2 -1
  24. package/src/scss/variables.scss +0 -3
  25. package/src/tokens/build/css/tokens.css +18 -5
  26. package/src/tokens/build/css/tokens.dark.css +18 -5
  27. package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +746 -2
  28. package/src/tokens/build/docs/tokens-tailwind-docs.json +746 -2
  29. package/src/tokens/build/figma/constants.tokens.json +164 -10
  30. package/src/tokens/build/figma/contextual.tokens.json +14 -2
  31. package/src/tokens/build/figma/semantic.tokens.json +15 -2
  32. package/src/tokens/build/js/tokens.dark.js +45 -5
  33. package/src/tokens/build/js/tokens.js +45 -5
  34. package/src/tokens/build/json/tokens.dark.json +513 -29
  35. package/src/tokens/build/json/tokens.json +513 -29
  36. package/src/tokens/build/scss/_tokens.dark.scss +18 -5
  37. package/src/tokens/build/scss/_tokens.scss +18 -5
  38. package/src/tokens/build/scss/_tokens_custom_properties.scss +13 -0
  39. package/src/tokens/build/tailwind/tokens.cjs +35 -0
  40. package/src/tokens/constant/font.tokens.json +136 -0
  41. package/src/tokens/constant/line_height.tokens.json +30 -10
  42. package/src/tokens/contextual/button.tokens.json +12 -0
  43. package/src/tokens/contextual/card.tokens.json +1 -1
  44. package/src/tokens/contextual/modal.tokens.json +1 -1
  45. package/src/tokens/semantic/action.tokens.json +1 -1
  46. package/src/tokens/semantic/control.tokens.json +1 -1
  47. package/src/tokens/semantic/font.tokens.json +15 -0
  48. package/tailwind.defaults.js +8 -21
@@ -228,6 +228,17 @@ $gl-color-brand-gray-03: #74717a;
228
228
  $gl-color-brand-gray-04: #45424d;
229
229
  $gl-color-brand-gray-05: #2b2838;
230
230
  $gl-color-brand-pink-01g: #ffb9c9;
231
+ $gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
232
+ $gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
233
+ $gl-font-size-xs: 0.625rem;
234
+ $gl-font-size-sm: 0.75rem;
235
+ $gl-font-size-md: 0.875rem;
236
+ $gl-font-size-lg: 1rem;
237
+ $gl-font-weight-100: 100;
238
+ $gl-font-weight-300: 300;
239
+ $gl-font-weight-normal: 400;
240
+ $gl-font-weight-semibold: 500;
241
+ $gl-font-weight-bold: 600;
231
242
  $gl-line-height-12: 0.75rem;
232
243
  $gl-line-height-16: 1rem;
233
244
  $gl-line-height-20: 1.25rem;
@@ -582,6 +593,7 @@ $gl-border-color-default: $gl-color-neutral-700; // Used for the default border
582
593
  $gl-border-color-subtle: $gl-color-neutral-800; // Used for a subtle border in combination with the default background.
583
594
  $gl-border-color-strong: $gl-color-neutral-600; // Used for a distinct border that emphasizes an edge or boundaries.
584
595
  $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
596
+ $gl-font-size-base: $gl-font-size-md;
585
597
  $gl-shadow-color-default: $gl-color-alpha-dark-40; // Used for the default shadow color.
586
598
  $gl-alert-neutral-border-top-color: $gl-color-neutral-400; // Used for the border center color of a neutral alert.
587
599
  $gl-alert-neutral-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a neutral alert.
@@ -1004,8 +1016,10 @@ $gl-button-danger-tertiary-background-color-focus: $gl-action-danger-background-
1004
1016
  $gl-button-danger-tertiary-border-color-default: $gl-action-danger-border-color-default; // Used for the border of a borderless, tertiary danger (destructive) button in the default state.
1005
1017
  $gl-button-dashed-border-color-hover: $gl-button-dashed-border-color-default; // Used for the border of a dashed button in the hover state.
1006
1018
  $gl-button-dashed-border-color-focus: $gl-button-dashed-border-color-default; // Used for the border of a dashed button in the focus state.
1019
+ $gl-button-link-border-radius: $gl-border-radius-md; // Used for link button border radius.
1007
1020
  $gl-button-link-text-color-default: $gl-text-color-link; // Used for the text of a link button in the default state.
1008
1021
  $gl-button-selected-border-color-focus: $gl-button-selected-border-color-hover; // Used for the border of a selected button in the focus state.
1022
+ $gl-card-border-radius: $gl-border-radius-lg; // Used for card border radius.
1009
1023
  $gl-chart-axis-text-color: $gl-text-color-subtle; // Used in charts for the text color of axis titles and labels.
1010
1024
  $gl-datepicker-date-text-color-selected: $gl-control-indicator-color-selected; // Used for the datepicker date text color state indicators.
1011
1025
  $gl-dropdown-background-color: $gl-background-color-overlap; // Used for the background of a dropdown.
@@ -1020,6 +1034,7 @@ $gl-dropdown-option-indicator-color-selected-focus: $gl-control-background-color
1020
1034
  $gl-dropdown-option-indicator-color-selected-active: $gl-control-background-color-selected-focus; // Used for the dropdown selected option indicator in the active state.
1021
1035
  $gl-dropdown-option-background-color-unselected-focus: $gl-action-neutral-background-color-focus; // Used for the background of an unselected dropdown option in the focus state.
1022
1036
  $gl-dropdown-option-background-color-selected-focus: $gl-dropdown-option-background-color-selected-hover; // Used for the background of a selected dropdown option in the focus state.
1037
+ $gl-modal-border-radius: $gl-border-radius-lg; // Used for modal border radius.
1023
1038
  $gl-progress-bar-indicator-color-default: $gl-status-info-icon-color; // Used for the indicator color for the primary progress-bar variant.
1024
1039
  $gl-progress-bar-indicator-color-success: $gl-status-success-icon-color; // Used for the indicator color for the success progress-bar variant.
1025
1040
  $gl-progress-bar-indicator-color-warning: $gl-status-warning-icon-color; // Used for the indicator color for the warning progress-bar variant.
@@ -1034,6 +1049,7 @@ $gl-toggle-switch-icon-color-checked-hover: $gl-action-strong-confirm-background
1034
1049
  $gl-toggle-switch-icon-color-checked-active: $gl-action-strong-confirm-background-color-active; // Used for the icon color of a checked toggle switch in the active state.
1035
1050
  $gl-toggle-switch-icon-color-disabled: $gl-action-disabled-background-color; // Used for the icon color of a disabled toggle switch.
1036
1051
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
1052
+ $gl-action-border-radius: $gl-border-radius-lg; // Used for the border radius of an action.
1037
1053
  $gl-action-selected-foreground-color-hover: $gl-action-selected-foreground-color-default; // Used for the foreground of a selected action in the hover state.
1038
1054
  $gl-action-selected-background-color-focus: $gl-action-selected-background-color-hover; // Used for the background of a selected action in the focus state.
1039
1055
  $gl-action-selected-border-color-default: $gl-action-selected-background-color-default; // Used for the border of a selected action in the default state.
@@ -1058,6 +1074,7 @@ $gl-action-strong-confirm-foreground-color-hover: $gl-action-strong-confirm-fore
1058
1074
  $gl-action-strong-confirm-border-color-hover: $gl-action-strong-confirm-border-color-default; // Used for the border of a strong confirm action in the hover state.
1059
1075
  $gl-action-strong-neutral-background-color-focus: $gl-action-strong-neutral-background-color-hover; // Used for the background of a strong neutral action in the focus state.
1060
1076
  $gl-action-strong-neutral-border-color-hover: $gl-action-strong-neutral-border-color-default; // Used for the border of a strong neutral action in the hover state.
1077
+ $gl-control-border-radius: $gl-border-radius-lg; // Used for form control (input, radio button, checkbox, textarea) default border radius.
1061
1078
  $gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text when the input is invalid.
1062
1079
  $gl-control-text-color-valid: $gl-text-color-success; // Used for the helper text when the input is valid.
1063
1080
  $gl-control-placeholder-color: $gl-text-color-disabled; // Used for placeholder text within inputs.
@@ -1079,6 +1096,7 @@ $gl-badge-warning-background-color-focus: $gl-badge-warning-background-color-hov
1079
1096
  $gl-badge-danger-background-color-focus: $gl-badge-danger-background-color-hover; // Used for the background of a danger badge in the focus state.
1080
1097
  $gl-badge-tier-background-color-focus: $gl-badge-tier-background-color-hover; // Used for the background of a tier related badge in the focus state.
1081
1098
  $gl-broadcast-banner-border-radius: $gl-border-radius-default; // Used for broadcast banner border radius.
1099
+ $gl-button-border-radius: $gl-action-border-radius; // Used for button border radius.
1082
1100
  $gl-button-default-tertiary-foreground-color-hover: $gl-action-neutral-foreground-color-hover; // Used for the foreground of a default borderless, tertiary button in the hover state.
1083
1101
  $gl-button-default-tertiary-foreground-color-focus: $gl-action-neutral-foreground-color-focus; // Used for the foreground of a default borderless, tertiary button in the focus state.
1084
1102
  $gl-button-default-tertiary-foreground-color-active: $gl-action-neutral-foreground-color-active; // Used for the foreground of a default borderless, tertiary button in the active state.
@@ -1098,23 +1116,18 @@ $gl-button-danger-tertiary-border-color-active: $gl-action-danger-border-color-a
1098
1116
  $gl-button-link-text-color-hover: $gl-button-link-text-color-default; // Used for the text of a link button in the hover state.
1099
1117
  $gl-button-link-text-color-focus: $gl-button-link-text-color-default; // Used for the text of a link button in the focus state.
1100
1118
  $gl-button-link-text-color-active: $gl-button-link-text-color-default; // Used for the text of a link button in the active state.
1101
- $gl-card-border-radius: $gl-border-radius-default; // Used for card border radius.
1102
1119
  $gl-chart-axis-pointer-color: $gl-icon-color-subtle; // Used in charts for the color of the reference line and axis value under mouse pointer.
1103
1120
  $gl-chart-zoom-handle-color: $gl-icon-color-subtle; // Used in charts for the handle color when zooming in on a specific area of data.
1104
1121
  $gl-dropdown-option-text-color-hover: $gl-action-neutral-foreground-color-hover; // Used for the text of a dropdown option in the hover state.
1105
1122
  $gl-dropdown-option-text-color-focus: $gl-action-neutral-foreground-color-focus; // Used for the text of a dropdown option in the focus state.
1106
1123
  $gl-dropdown-option-text-color-active: $gl-action-neutral-foreground-color-active; // Used for the text of a dropdown option in the active state.
1107
- $gl-modal-border-radius: $gl-border-radius-default; // Used for modal border radius.
1108
1124
  $gl-toggle-switch-icon-color-unchecked-focus: $gl-action-strong-neutral-background-color-focus; // Used for the icon color of an unchecked toggle switch in the focus state.
1109
1125
  $gl-toggle-switch-icon-color-checked-focus: $gl-action-strong-confirm-background-color-focus; // Used for the icon color of a checked toggle switch in the focus state.
1110
- $gl-action-border-radius: $gl-border-radius-default; // Used for the border radius of an action.
1111
1126
  $gl-action-selected-foreground-color-focus: $gl-action-selected-foreground-color-hover; // Used for the foreground of a selected action in the focus state.
1112
1127
  $gl-action-selected-border-color-focus: $gl-action-selected-background-color-focus; // Used for the border of a selected action in the focus state.
1113
1128
  $gl-action-strong-confirm-foreground-color-focus: $gl-action-strong-confirm-foreground-color-hover; // Used for the foreground of a strong confirm action in the focus state.
1114
1129
  $gl-action-strong-confirm-border-color-focus: $gl-action-strong-confirm-border-color-hover; // Used for the border of a strong confirm action in the focus state.
1115
1130
  $gl-action-strong-neutral-border-color-focus: $gl-action-strong-neutral-border-color-hover; // Used for the border of a strong neutral action in the focus state.
1116
- $gl-control-border-radius: $gl-border-radius-default; // Used for form control (input, radio button, checkbox, textarea) default border radius.
1117
- $gl-button-border-radius: $gl-action-border-radius; // Used for button border radius.
1118
1131
  $gl-button-confirm-primary-foreground-color-focus: $gl-action-strong-confirm-foreground-color-focus; // Used for the foreground of a confirm (positive) primary button in the focus state.
1119
1132
  $gl-action-selected-foreground-color-active: $gl-action-selected-foreground-color-focus; // Used for the foreground of a selected action in the active state.
1120
1133
  $gl-action-strong-confirm-foreground-color-active: $gl-action-strong-confirm-foreground-color-focus; // Used for the foreground of a strong confirm action in the active state.
@@ -228,6 +228,17 @@ $gl-color-brand-gray-03: #74717a;
228
228
  $gl-color-brand-gray-04: #45424d;
229
229
  $gl-color-brand-gray-05: #2b2838;
230
230
  $gl-color-brand-pink-01g: #ffb9c9;
231
+ $gl-font-family-regular: var(--default-regular-font, 'GitLab Sans'),-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans',Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
232
+ $gl-font-family-monospace: var(--default-mono-font, 'GitLab Mono'),'JetBrains Mono',Menlo,'DejaVu Sans Mono','Liberation Mono',Consolas,'Ubuntu Mono','Courier New','andale mono','lucida console',monospace;
233
+ $gl-font-size-xs: 0.625rem;
234
+ $gl-font-size-sm: 0.75rem;
235
+ $gl-font-size-md: 0.875rem;
236
+ $gl-font-size-lg: 1rem;
237
+ $gl-font-weight-100: 100;
238
+ $gl-font-weight-300: 300;
239
+ $gl-font-weight-normal: 400;
240
+ $gl-font-weight-semibold: 500;
241
+ $gl-font-weight-bold: 600;
231
242
  $gl-line-height-12: 0.75rem;
232
243
  $gl-line-height-16: 1rem;
233
244
  $gl-line-height-20: 1.25rem;
@@ -571,6 +582,7 @@ $gl-border-color-default: $gl-color-neutral-100; // Used for the default border
571
582
  $gl-border-color-subtle: $gl-color-neutral-50; // Used for a subtle border in combination with the default background.
572
583
  $gl-border-color-strong: $gl-color-neutral-200; // Used for a distinct border that emphasizes an edge or boundaries.
573
584
  $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
585
+ $gl-font-size-base: $gl-font-size-md;
574
586
  $gl-shadow-color-default: $gl-color-alpha-dark-16; // Used for the default shadow color.
575
587
  $gl-alert-neutral-border-top-color: $gl-color-alpha-0; // Used for the border center color of a neutral alert.
576
588
  $gl-alert-neutral-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a neutral alert.
@@ -994,11 +1006,13 @@ $gl-button-danger-tertiary-background-color-focus: $gl-action-danger-background-
994
1006
  $gl-button-danger-tertiary-border-color-default: $gl-action-danger-border-color-default; // Used for the border of a borderless, tertiary danger (destructive) button in the default state.
995
1007
  $gl-button-dashed-border-color-hover: $gl-button-dashed-border-color-default; // Used for the border of a dashed button in the hover state.
996
1008
  $gl-button-dashed-border-color-focus: $gl-button-dashed-border-color-default; // Used for the border of a dashed button in the focus state.
1009
+ $gl-button-link-border-radius: $gl-border-radius-md; // Used for link button border radius.
997
1010
  $gl-button-link-text-color-default: $gl-text-color-link; // Used for the text of a link button in the default state.
998
1011
  $gl-button-selected-foreground-color-default: $gl-button-default-primary-foreground-color-default; // Used for the foreground of a selected button in the default state.
999
1012
  $gl-button-selected-background-color-hover: $gl-button-default-primary-background-color-hover; // Used for the background of a selected button in the hover state.
1000
1013
  $gl-button-selected-background-color-active: $gl-button-default-primary-background-color-active; // Used for the background of a selected button in the active state.
1001
1014
  $gl-button-selected-border-color-focus: $gl-button-selected-border-color-hover; // Used for the border of a selected button in the focus state.
1015
+ $gl-card-border-radius: $gl-border-radius-lg; // Used for card border radius.
1002
1016
  $gl-chart-axis-text-color: $gl-text-color-subtle; // Used in charts for the text color of axis titles and labels.
1003
1017
  $gl-datepicker-date-text-color-selected: $gl-control-indicator-color-selected; // Used for the datepicker date text color state indicators.
1004
1018
  $gl-dropdown-background-color: $gl-background-color-overlap; // Used for the background of a dropdown.
@@ -1013,6 +1027,7 @@ $gl-dropdown-option-indicator-color-selected-focus: $gl-control-background-color
1013
1027
  $gl-dropdown-option-indicator-color-selected-active: $gl-control-background-color-selected-focus; // Used for the dropdown selected option indicator in the active state.
1014
1028
  $gl-dropdown-option-background-color-unselected-focus: $gl-action-neutral-background-color-focus; // Used for the background of an unselected dropdown option in the focus state.
1015
1029
  $gl-dropdown-option-background-color-selected-focus: $gl-dropdown-option-background-color-selected-hover; // Used for the background of a selected dropdown option in the focus state.
1030
+ $gl-modal-border-radius: $gl-border-radius-lg; // Used for modal border radius.
1016
1031
  $gl-progress-bar-indicator-color-default: $gl-status-info-icon-color; // Used for the indicator color for the primary progress-bar variant.
1017
1032
  $gl-progress-bar-indicator-color-success: $gl-status-success-icon-color; // Used for the indicator color for the success progress-bar variant.
1018
1033
  $gl-progress-bar-indicator-color-warning: $gl-status-warning-icon-color; // Used for the indicator color for the warning progress-bar variant.
@@ -1027,6 +1042,7 @@ $gl-toggle-switch-icon-color-checked-hover: $gl-action-strong-confirm-background
1027
1042
  $gl-toggle-switch-icon-color-checked-active: $gl-action-strong-confirm-background-color-active; // Used for the icon color of a checked toggle switch in the active state.
1028
1043
  $gl-toggle-switch-icon-color-disabled: $gl-action-disabled-background-color; // Used for the icon color of a disabled toggle switch.
1029
1044
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
1045
+ $gl-action-border-radius: $gl-border-radius-lg; // Used for the border radius of an action.
1030
1046
  $gl-action-selected-foreground-color-hover: $gl-action-selected-foreground-color-default; // Used for the foreground of a selected action in the hover state.
1031
1047
  $gl-action-selected-background-color-focus: $gl-action-selected-background-color-hover; // Used for the background of a selected action in the focus state.
1032
1048
  $gl-action-selected-border-color-default: $gl-action-selected-background-color-default; // Used for the border of a selected action in the default state.
@@ -1052,6 +1068,7 @@ $gl-action-strong-confirm-border-color-hover: $gl-action-strong-confirm-border-c
1052
1068
  $gl-action-strong-neutral-background-color-focus: $gl-action-strong-neutral-background-color-hover; // Used for the background of a strong neutral action in the focus state.
1053
1069
  $gl-action-strong-neutral-foreground-color-hover: $gl-action-strong-neutral-foreground-color-default; // Used for the foreground of a strong neutral action in the hover state.
1054
1070
  $gl-action-strong-neutral-border-color-hover: $gl-action-strong-neutral-border-color-default; // Used for the border of a strong neutral action in the hover state.
1071
+ $gl-control-border-radius: $gl-border-radius-lg; // Used for form control (input, radio button, checkbox, textarea) default border radius.
1055
1072
  $gl-control-text-color-error: $gl-text-color-danger; // Used for the helper text when the input is invalid.
1056
1073
  $gl-control-text-color-valid: $gl-text-color-success; // Used for the helper text when the input is valid.
1057
1074
  $gl-control-placeholder-color: $gl-text-color-disabled; // Used for placeholder text within inputs.
@@ -1073,6 +1090,7 @@ $gl-badge-warning-background-color-focus: $gl-badge-warning-background-color-hov
1073
1090
  $gl-badge-danger-background-color-focus: $gl-badge-danger-background-color-hover; // Used for the background of a danger badge in the focus state.
1074
1091
  $gl-badge-tier-background-color-focus: $gl-badge-tier-background-color-hover; // Used for the background of a tier related badge in the focus state.
1075
1092
  $gl-broadcast-banner-border-radius: $gl-border-radius-default; // Used for broadcast banner border radius.
1093
+ $gl-button-border-radius: $gl-action-border-radius; // Used for button border radius.
1076
1094
  $gl-button-default-tertiary-foreground-color-hover: $gl-action-neutral-foreground-color-hover; // Used for the foreground of a default borderless, tertiary button in the hover state.
1077
1095
  $gl-button-default-tertiary-foreground-color-focus: $gl-action-neutral-foreground-color-focus; // Used for the foreground of a default borderless, tertiary button in the focus state.
1078
1096
  $gl-button-default-tertiary-foreground-color-active: $gl-action-neutral-foreground-color-active; // Used for the foreground of a default borderless, tertiary button in the active state.
@@ -1096,24 +1114,19 @@ $gl-button-selected-foreground-color-hover: $gl-button-default-primary-foregroun
1096
1114
  $gl-button-selected-foreground-color-focus: $gl-button-default-primary-foreground-color-focus; // Used for the foreground of a selected button in the focus state.
1097
1115
  $gl-button-selected-foreground-color-active: $gl-button-default-primary-foreground-color-active; // Used for the foreground of a selected button in the active state.
1098
1116
  $gl-button-selected-background-color-focus: $gl-button-default-primary-background-color-focus; // Used for the background of a selected button in the focus state.
1099
- $gl-card-border-radius: $gl-border-radius-default; // Used for card border radius.
1100
1117
  $gl-chart-axis-pointer-color: $gl-icon-color-subtle; // Used in charts for the color of the reference line and axis value under mouse pointer.
1101
1118
  $gl-chart-zoom-handle-color: $gl-icon-color-subtle; // Used in charts for the handle color when zooming in on a specific area of data.
1102
1119
  $gl-dropdown-option-text-color-hover: $gl-action-neutral-foreground-color-hover; // Used for the text of a dropdown option in the hover state.
1103
1120
  $gl-dropdown-option-text-color-focus: $gl-action-neutral-foreground-color-focus; // Used for the text of a dropdown option in the focus state.
1104
1121
  $gl-dropdown-option-text-color-active: $gl-action-neutral-foreground-color-active; // Used for the text of a dropdown option in the active state.
1105
- $gl-modal-border-radius: $gl-border-radius-default; // Used for modal border radius.
1106
1122
  $gl-toggle-switch-icon-color-unchecked-focus: $gl-action-strong-neutral-background-color-focus; // Used for the icon color of an unchecked toggle switch in the focus state.
1107
1123
  $gl-toggle-switch-icon-color-checked-focus: $gl-action-strong-confirm-background-color-focus; // Used for the icon color of a checked toggle switch in the focus state.
1108
- $gl-action-border-radius: $gl-border-radius-default; // Used for the border radius of an action.
1109
1124
  $gl-action-selected-foreground-color-focus: $gl-action-selected-foreground-color-hover; // Used for the foreground of a selected action in the focus state.
1110
1125
  $gl-action-selected-border-color-focus: $gl-action-selected-background-color-focus; // Used for the border of a selected action in the focus state.
1111
1126
  $gl-action-strong-confirm-foreground-color-focus: $gl-action-strong-confirm-foreground-color-hover; // Used for the foreground of a strong confirm action in the focus state.
1112
1127
  $gl-action-strong-confirm-border-color-focus: $gl-action-strong-confirm-border-color-hover; // Used for the border of a strong confirm action in the focus state.
1113
1128
  $gl-action-strong-neutral-foreground-color-focus: $gl-action-strong-neutral-foreground-color-hover; // Used for the foreground of a strong neutral action in the focus state.
1114
1129
  $gl-action-strong-neutral-border-color-focus: $gl-action-strong-neutral-border-color-hover; // Used for the border of a strong neutral action in the focus state.
1115
- $gl-control-border-radius: $gl-border-radius-default; // Used for form control (input, radio button, checkbox, textarea) default border radius.
1116
- $gl-button-border-radius: $gl-action-border-radius; // Used for button border radius.
1117
1130
  $gl-button-confirm-primary-foreground-color-focus: $gl-action-strong-confirm-foreground-color-focus; // Used for the foreground of a confirm (positive) primary button in the focus state.
1118
1131
  $gl-action-selected-foreground-color-active: $gl-action-selected-foreground-color-focus; // Used for the foreground of a selected action in the active state.
1119
1132
  $gl-action-strong-confirm-foreground-color-active: $gl-action-strong-confirm-foreground-color-focus; // Used for the foreground of a strong confirm action in the active state.
@@ -243,6 +243,18 @@ $gl-color-brand-gray-03: var(--gl-color-brand-gray-03);
243
243
  $gl-color-brand-gray-04: var(--gl-color-brand-gray-04);
244
244
  $gl-color-brand-gray-05: var(--gl-color-brand-gray-05);
245
245
  $gl-color-brand-pink-01g: var(--gl-color-brand-pink-01g);
246
+ $gl-font-family-regular: var(--gl-font-family-regular);
247
+ $gl-font-family-monospace: var(--gl-font-family-monospace);
248
+ $gl-font-size-xs: var(--gl-font-size-xs);
249
+ $gl-font-size-sm: var(--gl-font-size-sm);
250
+ $gl-font-size-md: var(--gl-font-size-md);
251
+ $gl-font-size-lg: var(--gl-font-size-lg);
252
+ $gl-font-size-base: var(--gl-font-size-base);
253
+ $gl-font-weight-100: var(--gl-font-weight-100);
254
+ $gl-font-weight-300: var(--gl-font-weight-300);
255
+ $gl-font-weight-normal: var(--gl-font-weight-normal);
256
+ $gl-font-weight-semibold: var(--gl-font-weight-semibold);
257
+ $gl-font-weight-bold: var(--gl-font-weight-bold);
246
258
  $gl-line-height-12: var(--gl-line-height-12);
247
259
  $gl-line-height-16: var(--gl-line-height-16);
248
260
  $gl-line-height-20: var(--gl-line-height-20);
@@ -600,6 +612,7 @@ $gl-button-dashed-border-color-default: var(--gl-button-dashed-border-color-defa
600
612
  $gl-button-dashed-border-color-hover: var(--gl-button-dashed-border-color-hover);
601
613
  $gl-button-dashed-border-color-focus: var(--gl-button-dashed-border-color-focus);
602
614
  $gl-button-dashed-border-color-active: var(--gl-button-dashed-border-color-active);
615
+ $gl-button-link-border-radius: var(--gl-button-link-border-radius);
603
616
  $gl-button-link-text-color-default: var(--gl-button-link-text-color-default);
604
617
  $gl-button-link-text-color-hover: var(--gl-button-link-text-color-hover);
605
618
  $gl-button-link-text-color-focus: var(--gl-button-link-text-color-focus);
@@ -390,6 +390,7 @@ const borderRadius = {
390
390
  '3xl': 'var(--gl-border-radius-3xl)',
391
391
  full: 'var(--gl-border-radius-full)',
392
392
  default: 'var(--gl-border-radius-default)',
393
+ action: 'var(--gl-action-border-radius)',
393
394
  control: 'var(--gl-control-border-radius)',
394
395
  feedback: 'var(--gl-feedback-border-radius)',
395
396
  };
@@ -420,6 +421,36 @@ const boxShadow = {
420
421
  md: 'var(--gl-shadow-md)',
421
422
  lg: 'var(--gl-shadow-lg)',
422
423
  };
424
+ const lineHeight = {
425
+ 12: 'var(--gl-line-height-12)',
426
+ 16: 'var(--gl-line-height-16)',
427
+ 20: 'var(--gl-line-height-20)',
428
+ 24: 'var(--gl-line-height-24)',
429
+ 28: 'var(--gl-line-height-28)',
430
+ 32: 'var(--gl-line-height-32)',
431
+ 36: 'var(--gl-line-height-36)',
432
+ 42: 'var(--gl-line-height-42)',
433
+ 44: 'var(--gl-line-height-44)',
434
+ 52: 'var(--gl-line-height-52)',
435
+ };
436
+ const fontFamily = {
437
+ regular: 'var(--gl-font-family-regular)',
438
+ monospace: 'var(--gl-font-family-monospace)',
439
+ };
440
+ const fontSize = {
441
+ xs: 'var(--gl-font-size-xs)',
442
+ sm: 'var(--gl-font-size-sm)',
443
+ md: 'var(--gl-font-size-md)',
444
+ lg: 'var(--gl-font-size-lg)',
445
+ base: 'var(--gl-font-size-base)',
446
+ };
447
+ const fontWeight = {
448
+ 100: 'var(--gl-font-weight-100)',
449
+ 300: 'var(--gl-font-weight-300)',
450
+ normal: 'var(--gl-font-weight-normal)',
451
+ semibold: 'var(--gl-font-weight-semibold)',
452
+ bold: 'var(--gl-font-weight-bold)',
453
+ };
423
454
 
424
455
  const colors = {
425
456
  inherit: 'inherit',
@@ -504,4 +535,8 @@ module.exports = {
504
535
  opacity,
505
536
  zIndex: zindexes,
506
537
  boxShadow,
538
+ lineHeight,
539
+ fontFamily,
540
+ fontSize,
541
+ fontWeight,
507
542
  };
@@ -0,0 +1,136 @@
1
+ {
2
+ "font": {
3
+ "family": {
4
+ "regular": {
5
+ "$value": [
6
+ "var(--default-regular-font, 'GitLab Sans')",
7
+ "-apple-system",
8
+ "BlinkMacSystemFont",
9
+ "'Segoe UI'",
10
+ "Roboto",
11
+ "'Noto Sans'",
12
+ "Ubuntu",
13
+ "Cantarell",
14
+ "'Helvetica Neue'",
15
+ "sans-serif",
16
+ "'Apple Color Emoji'",
17
+ "'Segoe UI Emoji'",
18
+ "'Segoe UI Symbol'",
19
+ "'Noto Color Emoji'"
20
+ ],
21
+ "$type": "fontFamily",
22
+ "$extensions": {
23
+ "com.figma.scope": [
24
+ "FONT_FAMILY"
25
+ ]
26
+ }
27
+ },
28
+ "monospace": {
29
+ "$value": [
30
+ "var(--default-mono-font, 'GitLab Mono')",
31
+ "'JetBrains Mono'",
32
+ "Menlo",
33
+ "'DejaVu Sans Mono'",
34
+ "'Liberation Mono'",
35
+ "Consolas",
36
+ "'Ubuntu Mono'",
37
+ "'Courier New'",
38
+ "'andale mono'",
39
+ "'lucida console'",
40
+ "monospace"
41
+ ],
42
+ "$type": "fontFamily",
43
+ "$extensions": {
44
+ "com.figma.scope": [
45
+ "FONT_FAMILY"
46
+ ]
47
+ }
48
+ }
49
+ },
50
+ "size": {
51
+ "xs": {
52
+ "$value": "0.625rem",
53
+ "$type": "dimension",
54
+ "$extensions": {
55
+ "com.figma.scope": [
56
+ "FONT_SIZE"
57
+ ]
58
+ }
59
+ },
60
+ "sm": {
61
+ "$value": "0.75rem",
62
+ "$type": "dimension",
63
+ "$extensions": {
64
+ "com.figma.scope": [
65
+ "FONT_SIZE"
66
+ ]
67
+ }
68
+ },
69
+ "md": {
70
+ "$value": "0.875rem",
71
+ "$type": "dimension",
72
+ "$extensions": {
73
+ "com.figma.scope": [
74
+ "FONT_SIZE"
75
+ ]
76
+ }
77
+ },
78
+ "lg": {
79
+ "$value": "1rem",
80
+ "$type": "dimension",
81
+ "$extensions": {
82
+ "com.figma.scope": [
83
+ "FONT_SIZE"
84
+ ]
85
+ }
86
+ }
87
+ },
88
+ "weight": {
89
+ "100": {
90
+ "$value": "100",
91
+ "$type": "fontWeight",
92
+ "$extensions": {
93
+ "com.figma.scope": [
94
+ "FONT_WEIGHT"
95
+ ]
96
+ }
97
+ },
98
+ "300": {
99
+ "$value": "300",
100
+ "$type": "fontWeight",
101
+ "$extensions": {
102
+ "com.figma.scope": [
103
+ "FONT_WEIGHT"
104
+ ]
105
+ }
106
+ },
107
+ "normal": {
108
+ "$value": "400",
109
+ "$type": "fontWeight",
110
+ "$extensions": {
111
+ "com.figma.scope": [
112
+ "FONT_WEIGHT"
113
+ ]
114
+ }
115
+ },
116
+ "semibold": {
117
+ "$value": "500",
118
+ "$type": "fontWeight",
119
+ "$extensions": {
120
+ "com.figma.scope": [
121
+ "FONT_WEIGHT"
122
+ ]
123
+ }
124
+ },
125
+ "bold": {
126
+ "$value": "600",
127
+ "$type": "fontWeight",
128
+ "$extensions": {
129
+ "com.figma.scope": [
130
+ "FONT_WEIGHT"
131
+ ]
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
@@ -7,7 +7,9 @@
7
7
  },
8
8
  "$type": "dimension",
9
9
  "$extensions": {
10
- "com.figma.scope": []
10
+ "com.figma.scope": [
11
+ "LINE_HEIGHT"
12
+ ]
11
13
  }
12
14
  },
13
15
  "16": {
@@ -17,7 +19,9 @@
17
19
  },
18
20
  "$type": "dimension",
19
21
  "$extensions": {
20
- "com.figma.scope": []
22
+ "com.figma.scope": [
23
+ "LINE_HEIGHT"
24
+ ]
21
25
  }
22
26
  },
23
27
  "20": {
@@ -27,7 +31,9 @@
27
31
  },
28
32
  "$type": "dimension",
29
33
  "$extensions": {
30
- "com.figma.scope": []
34
+ "com.figma.scope": [
35
+ "LINE_HEIGHT"
36
+ ]
31
37
  }
32
38
  },
33
39
  "24": {
@@ -37,7 +43,9 @@
37
43
  },
38
44
  "$type": "dimension",
39
45
  "$extensions": {
40
- "com.figma.scope": []
46
+ "com.figma.scope": [
47
+ "LINE_HEIGHT"
48
+ ]
41
49
  }
42
50
  },
43
51
  "28": {
@@ -47,7 +55,9 @@
47
55
  },
48
56
  "$type": "dimension",
49
57
  "$extensions": {
50
- "com.figma.scope": []
58
+ "com.figma.scope": [
59
+ "LINE_HEIGHT"
60
+ ]
51
61
  }
52
62
  },
53
63
  "32": {
@@ -57,7 +67,9 @@
57
67
  },
58
68
  "$type": "dimension",
59
69
  "$extensions": {
60
- "com.figma.scope": []
70
+ "com.figma.scope": [
71
+ "LINE_HEIGHT"
72
+ ]
61
73
  }
62
74
  },
63
75
  "36": {
@@ -67,7 +79,9 @@
67
79
  },
68
80
  "$type": "dimension",
69
81
  "$extensions": {
70
- "com.figma.scope": []
82
+ "com.figma.scope": [
83
+ "LINE_HEIGHT"
84
+ ]
71
85
  }
72
86
  },
73
87
  "42": {
@@ -77,7 +91,9 @@
77
91
  },
78
92
  "$type": "dimension",
79
93
  "$extensions": {
80
- "com.figma.scope": []
94
+ "com.figma.scope": [
95
+ "LINE_HEIGHT"
96
+ ]
81
97
  }
82
98
  },
83
99
  "44": {
@@ -87,7 +103,9 @@
87
103
  },
88
104
  "$type": "dimension",
89
105
  "$extensions": {
90
- "com.figma.scope": []
106
+ "com.figma.scope": [
107
+ "LINE_HEIGHT"
108
+ ]
91
109
  }
92
110
  },
93
111
  "52": {
@@ -97,7 +115,9 @@
97
115
  },
98
116
  "$type": "dimension",
99
117
  "$extensions": {
100
- "com.figma.scope": []
118
+ "com.figma.scope": [
119
+ "LINE_HEIGHT"
120
+ ]
101
121
  }
102
122
  }
103
123
  }
@@ -1319,6 +1319,18 @@
1319
1319
  }
1320
1320
  },
1321
1321
  "link": {
1322
+ "border": {
1323
+ "radius": {
1324
+ "$value": "{border.radius.md}",
1325
+ "$type": "dimension",
1326
+ "$description": "Used for link button border radius.",
1327
+ "$extensions": {
1328
+ "com.figma.scope": [
1329
+ "CORNER_RADIUS"
1330
+ ]
1331
+ }
1332
+ }
1333
+ },
1322
1334
  "text": {
1323
1335
  "color": {
1324
1336
  "default": {
@@ -2,7 +2,7 @@
2
2
  "card": {
3
3
  "border": {
4
4
  "radius": {
5
- "$value": "{border.radius.default}",
5
+ "$value": "{border.radius.lg}",
6
6
  "$type": "dimension",
7
7
  "$description": "Used for card border radius.",
8
8
  "$extensions": {
@@ -2,7 +2,7 @@
2
2
  "modal": {
3
3
  "border": {
4
4
  "radius": {
5
- "$value": "{border.radius.default}",
5
+ "$value": "{border.radius.lg}",
6
6
  "$type": "dimension",
7
7
  "$description": "Used for modal border radius.",
8
8
  "$extensions": {
@@ -2,7 +2,7 @@
2
2
  "action": {
3
3
  "border": {
4
4
  "radius": {
5
- "$value": "{border.radius.default}",
5
+ "$value": "{border.radius.lg}",
6
6
  "$type": "dimension",
7
7
  "$description": "Used for the border radius of an action.",
8
8
  "$extensions": {
@@ -214,7 +214,7 @@
214
214
  }
215
215
  },
216
216
  "radius": {
217
- "$value": "{border.radius.default}",
217
+ "$value": "{border.radius.lg}",
218
218
  "$type": "dimension",
219
219
  "$description": "Used for form control (input, radio button, checkbox, textarea) default border radius.",
220
220
  "$extensions": {
@@ -0,0 +1,15 @@
1
+ {
2
+ "font": {
3
+ "size": {
4
+ "base": {
5
+ "$value": "{font.size.md}",
6
+ "$type": "dimension",
7
+ "$extensions": {
8
+ "com.figma.scope": [
9
+ "FONT_SIZE"
10
+ ]
11
+ }
12
+ }
13
+ }
14
+ }
15
+ }
@@ -13,6 +13,10 @@ const {
13
13
  opacity,
14
14
  zIndex,
15
15
  boxShadow,
16
+ lineHeight,
17
+ fontFamily,
18
+ fontSize,
19
+ fontWeight,
16
20
  } = require('./src/tokens/build/tailwind/tokens.cjs');
17
21
 
18
22
  const buildCQs = Boolean(process.env.USE_TAILWIND_CONTAINER_QUERIES);
@@ -526,15 +530,9 @@ module.exports = {
526
530
  ],
527
531
  },
528
532
  fill,
529
- fontFamily: {
530
- regular:
531
- 'var(--default-regular-font, "GitLab Sans"), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
532
- },
533
+ fontFamily,
533
534
  fontSize: {
534
- xs: '0.625rem',
535
- sm: '0.75rem',
536
- base: '0.875rem',
537
- lg: '1rem',
535
+ ...fontSize,
538
536
  'size-h-display': '1.75rem',
539
537
  'size-h1': '1.4375rem',
540
538
  'size-h2': '1.1875rem',
@@ -542,24 +540,13 @@ module.exports = {
542
540
  'size-h2-xl': '1.4375rem',
543
541
  'size-reset': 'inherit',
544
542
  },
545
- fontWeight: {
546
- 100: 100,
547
- 300: 300,
548
- normal: 400,
549
- semibold: 500,
550
- bold: 600,
551
- },
543
+ fontWeight,
552
544
  lineHeight: {
553
545
  reset: 'inherit',
554
546
  0: '0',
555
547
  1: '1',
556
548
  normal: '1rem',
557
- 20: '1.25rem',
558
- 24: '1.5rem',
559
- 28: '1.75rem',
560
- 32: '2rem',
561
- 36: '2.25rem',
562
- 42: '2.625rem',
549
+ ...lineHeight,
563
550
  },
564
551
  opacity,
565
552
  outlineColor,