@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);
@@ -21,10 +21,14 @@
21
21
  const feedbackTextColors = {"feedback-strong":"var(--gl-feedback-strong-text-color)","feedback-neutral":"var(--gl-feedback-neutral-text-color)","feedback-info":"var(--gl-feedback-info-text-color)","feedback-success":"var(--gl-feedback-success-text-color)","feedback-warning":"var(--gl-feedback-warning-text-color)","feedback-danger":"var(--gl-feedback-danger-text-color)"};
22
22
  const feedbackIconColors = {"feedback-strong":"var(--gl-feedback-strong-icon-color)","feedback-neutral":"var(--gl-feedback-neutral-icon-color)","feedback-info":"var(--gl-feedback-info-icon-color)","feedback-success":"var(--gl-feedback-success-icon-color)","feedback-warning":"var(--gl-feedback-warning-icon-color)","feedback-danger":"var(--gl-feedback-danger-icon-color)"};
23
23
  const spacingScale = {"0":"var(--gl-spacing-scale-0)","1":"var(--gl-spacing-scale-1)","2":"var(--gl-spacing-scale-2)","3":"var(--gl-spacing-scale-3)","4":"var(--gl-spacing-scale-4)","5":"var(--gl-spacing-scale-5)","6":"var(--gl-spacing-scale-6)","7":"var(--gl-spacing-scale-7)","8":"var(--gl-spacing-scale-8)","9":"var(--gl-spacing-scale-9)","10":"var(--gl-spacing-scale-10)","11":"var(--gl-spacing-scale-11)","12":"var(--gl-spacing-scale-12)","13":"var(--gl-spacing-scale-13)","15":"var(--gl-spacing-scale-15)","18":"var(--gl-spacing-scale-18)","20":"var(--gl-spacing-scale-20)","26":"var(--gl-spacing-scale-26)","28":"var(--gl-spacing-scale-28)","30":"var(--gl-spacing-scale-30)","31":"var(--gl-spacing-scale-31)","33":"var(--gl-spacing-scale-33)","34":"var(--gl-spacing-scale-34)","37":"var(--gl-spacing-scale-37)","48":"var(--gl-spacing-scale-48)","62":"var(--gl-spacing-scale-62)","75":"var(--gl-spacing-scale-75)","80":"var(--gl-spacing-scale-80)","88":"var(--gl-spacing-scale-88)","px":"var(--gl-spacing-scale-px)","2-5":"var(--gl-spacing-scale-2-5)","11-5":"var(--gl-spacing-scale-11-5)"};
24
- const borderRadius = {"none":"var(--gl-border-radius-none)","xs":"var(--gl-border-radius-xs)","sm":"var(--gl-border-radius-sm)","md":"var(--gl-border-radius-md)","lg":"var(--gl-border-radius-lg)","xl":"var(--gl-border-radius-xl)","2xl":"var(--gl-border-radius-2xl)","3xl":"var(--gl-border-radius-3xl)","full":"var(--gl-border-radius-full)","default":"var(--gl-border-radius-default)","control":"var(--gl-control-border-radius)","feedback":"var(--gl-feedback-border-radius)"};
24
+ const borderRadius = {"none":"var(--gl-border-radius-none)","xs":"var(--gl-border-radius-xs)","sm":"var(--gl-border-radius-sm)","md":"var(--gl-border-radius-md)","lg":"var(--gl-border-radius-lg)","xl":"var(--gl-border-radius-xl)","2xl":"var(--gl-border-radius-2xl)","3xl":"var(--gl-border-radius-3xl)","full":"var(--gl-border-radius-full)","default":"var(--gl-border-radius-default)","action":"var(--gl-action-border-radius)","control":"var(--gl-control-border-radius)","feedback":"var(--gl-feedback-border-radius)"};
25
25
  const opacity = {"0":"var(--gl-opacity-0)","1":"var(--gl-opacity-1)","2":"var(--gl-opacity-2)","3":"var(--gl-opacity-3)","4":"var(--gl-opacity-4)","5":"var(--gl-opacity-5)","6":"var(--gl-opacity-6)","7":"var(--gl-opacity-7)","8":"var(--gl-opacity-8)","9":"var(--gl-opacity-9)","10":"var(--gl-opacity-10)"};
26
26
  const zindexes = {"0":"var(--gl-zindex-0)","1":"var(--gl-zindex-1)","2":"var(--gl-zindex-2)","3":"var(--gl-zindex-3)","4":"var(--gl-zindex-4)","200":"var(--gl-zindex-200)","9999":"var(--gl-zindex-9999)"};
27
27
  const boxShadow = {"sm":"var(--gl-shadow-sm)","md":"var(--gl-shadow-md)","lg":"var(--gl-shadow-lg)"};
28
+ const lineHeight = {"12":"var(--gl-line-height-12)","16":"var(--gl-line-height-16)","20":"var(--gl-line-height-20)","24":"var(--gl-line-height-24)","28":"var(--gl-line-height-28)","32":"var(--gl-line-height-32)","36":"var(--gl-line-height-36)","42":"var(--gl-line-height-42)","44":"var(--gl-line-height-44)","52":"var(--gl-line-height-52)"};
29
+ const fontFamily = {"regular":"var(--gl-font-family-regular)","monospace":"var(--gl-font-family-monospace)"};
30
+ const fontSize = {"xs":"var(--gl-font-size-xs)","sm":"var(--gl-font-size-sm)","md":"var(--gl-font-size-md)","lg":"var(--gl-font-size-lg)","base":"var(--gl-font-size-base)"};
31
+ const fontWeight = {"100":"var(--gl-font-weight-100)","300":"var(--gl-font-weight-300)","normal":"var(--gl-font-weight-normal)","semibold":"var(--gl-font-weight-semibold)","bold":"var(--gl-font-weight-bold)"};
28
32
 
29
33
  const colors = {
30
34
  inherit: 'inherit',
@@ -109,5 +113,9 @@
109
113
  opacity,
110
114
  zIndex: zindexes,
111
115
  boxShadow,
116
+ lineHeight,
117
+ fontFamily,
118
+ fontSize,
119
+ fontWeight,
112
120
  }
113
121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "123.7.0",
3
+ "version": "123.9.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -104,7 +104,7 @@
104
104
  "@gitlab/svgs": "3.147.0",
105
105
  "@jest/test-sequencer": "30.2.0",
106
106
  "@rollup/plugin-commonjs": "^28.0.6",
107
- "@rollup/plugin-node-resolve": "^16.0.1",
107
+ "@rollup/plugin-node-resolve": "^16.0.2",
108
108
  "@rollup/plugin-replace": "^6.0.2",
109
109
  "@storybook/addon-a11y": "^7.6.20",
110
110
  "@storybook/addon-docs": "^7.6.20",
@@ -415,8 +415,9 @@
415
415
  @apply gl-border-0;
416
416
  @apply gl-text-base;
417
417
  @apply gl-leading-normal;
418
- color: var(--gl-button-link-text-color-default);
419
418
  @apply gl-px-0;
419
+ border-radius: var(--gl-button-link-border-radius);
420
+ color: var(--gl-button-link-text-color-default);
420
421
  min-height: auto;
421
422
  min-width: auto;
422
423
  text-decoration-thickness: auto;
@@ -111,9 +111,6 @@ $gl-text-wrap-heading: pretty;
111
111
 
112
112
  // default (min-width: 0)
113
113
  $gl-font-size: px-to-rem(14px);
114
- $gl-font-size-xs: px-to-rem(10px);
115
- $gl-font-size-sm: px-to-rem(12px);
116
- $gl-font-size-lg: px-to-rem(16px);
117
114
 
118
115
  $gl-font-size-h-display: px-to-rem(28px);
119
116
  $gl-font-size-h1: px-to-rem(23px);
@@ -230,6 +230,17 @@
230
230
  --gl-color-brand-gray-04: #45424d;
231
231
  --gl-color-brand-gray-05: #2b2838;
232
232
  --gl-color-brand-pink-01g: #ffb9c9;
233
+ --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';
234
+ --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;
235
+ --gl-font-size-xs: 0.625rem;
236
+ --gl-font-size-sm: 0.75rem;
237
+ --gl-font-size-md: 0.875rem;
238
+ --gl-font-size-lg: 1rem;
239
+ --gl-font-weight-100: 100;
240
+ --gl-font-weight-300: 300;
241
+ --gl-font-weight-normal: 400;
242
+ --gl-font-weight-semibold: 500;
243
+ --gl-font-weight-bold: 600;
233
244
  --gl-line-height-12: 0.75rem;
234
245
  --gl-line-height-16: 1rem;
235
246
  --gl-line-height-20: 1.25rem;
@@ -573,6 +584,7 @@
573
584
  --gl-border-color-subtle: var(--gl-color-neutral-50); /** Used for a subtle border in combination with the default background. */
574
585
  --gl-border-color-strong: var(--gl-color-neutral-200); /** Used for a distinct border that emphasizes an edge or boundaries. */
575
586
  --gl-border-color-transparent: var(--gl-color-alpha-0); /** Used when a border needs to be present, but not visibly perceived. */
587
+ --gl-font-size-base: var(--gl-font-size-md);
576
588
  --gl-shadow-color-default: var(--gl-color-alpha-dark-16); /** Used for the default shadow color. */
577
589
  --gl-alert-neutral-border-top-color: var(--gl-color-alpha-0); /** Used for the border center color of a neutral alert. */
578
590
  --gl-alert-neutral-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a neutral alert. */
@@ -996,11 +1008,13 @@
996
1008
  --gl-button-danger-tertiary-border-color-default: var(--gl-action-danger-border-color-default); /** Used for the border of a borderless, tertiary danger (destructive) button in the default state. */
997
1009
  --gl-button-dashed-border-color-hover: var(--gl-button-dashed-border-color-default); /** Used for the border of a dashed button in the hover state. */
998
1010
  --gl-button-dashed-border-color-focus: var(--gl-button-dashed-border-color-default); /** Used for the border of a dashed button in the focus state. */
1011
+ --gl-button-link-border-radius: var(--gl-border-radius-md); /** Used for link button border radius. */
999
1012
  --gl-button-link-text-color-default: var(--gl-text-color-link); /** Used for the text of a link button in the default state. */
1000
1013
  --gl-button-selected-foreground-color-default: var(--gl-button-default-primary-foreground-color-default); /** Used for the foreground of a selected button in the default state. */
1001
1014
  --gl-button-selected-background-color-hover: var(--gl-button-default-primary-background-color-hover); /** Used for the background of a selected button in the hover state. */
1002
1015
  --gl-button-selected-background-color-active: var(--gl-button-default-primary-background-color-active); /** Used for the background of a selected button in the active state. */
1003
1016
  --gl-button-selected-border-color-focus: var(--gl-button-selected-border-color-hover); /** Used for the border of a selected button in the focus state. */
1017
+ --gl-card-border-radius: var(--gl-border-radius-lg); /** Used for card border radius. */
1004
1018
  --gl-chart-axis-text-color: var(--gl-text-color-subtle); /** Used in charts for the text color of axis titles and labels. */
1005
1019
  --gl-datepicker-date-text-color-selected: var(--gl-control-indicator-color-selected); /** Used for the datepicker date text color state indicators. */
1006
1020
  --gl-dropdown-background-color: var(--gl-background-color-overlap); /** Used for the background of a dropdown. */
@@ -1015,6 +1029,7 @@
1015
1029
  --gl-dropdown-option-indicator-color-selected-active: var(--gl-control-background-color-selected-focus); /** Used for the dropdown selected option indicator in the active state. */
1016
1030
  --gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of an unselected dropdown option in the focus state. */
1017
1031
  --gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /** Used for the background of a selected dropdown option in the focus state. */
1032
+ --gl-modal-border-radius: var(--gl-border-radius-lg); /** Used for modal border radius. */
1018
1033
  --gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /** Used for the indicator color for the primary progress-bar variant. */
1019
1034
  --gl-progress-bar-indicator-color-success: var(--gl-status-success-icon-color); /** Used for the indicator color for the success progress-bar variant. */
1020
1035
  --gl-progress-bar-indicator-color-warning: var(--gl-status-warning-icon-color); /** Used for the indicator color for the warning progress-bar variant. */
@@ -1029,6 +1044,7 @@
1029
1044
  --gl-toggle-switch-icon-color-checked-active: var(--gl-action-strong-confirm-background-color-active); /** Used for the icon color of a checked toggle switch in the active state. */
1030
1045
  --gl-toggle-switch-icon-color-disabled: var(--gl-action-disabled-background-color); /** Used for the icon color of a disabled toggle switch. */
1031
1046
  --gl-token-foreground-color: var(--gl-text-color-default); /** Used for the token foreground color. */
1047
+ --gl-action-border-radius: var(--gl-border-radius-lg); /** Used for the border radius of an action. */
1032
1048
  --gl-action-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-default); /** Used for the foreground of a selected action in the hover state. */
1033
1049
  --gl-action-selected-background-color-focus: var(--gl-action-selected-background-color-hover); /** Used for the background of a selected action in the focus state. */
1034
1050
  --gl-action-selected-border-color-default: var(--gl-action-selected-background-color-default); /** Used for the border of a selected action in the default state. */
@@ -1054,6 +1070,7 @@
1054
1070
  --gl-action-strong-neutral-background-color-focus: var(--gl-action-strong-neutral-background-color-hover); /** Used for the background of a strong neutral action in the focus state. */
1055
1071
  --gl-action-strong-neutral-foreground-color-hover: var(--gl-action-strong-neutral-foreground-color-default); /** Used for the foreground of a strong neutral action in the hover state. */
1056
1072
  --gl-action-strong-neutral-border-color-hover: var(--gl-action-strong-neutral-border-color-default); /** Used for the border of a strong neutral action in the hover state. */
1073
+ --gl-control-border-radius: var(--gl-border-radius-lg); /** Used for form control (input, radio button, checkbox, textarea) default border radius. */
1057
1074
  --gl-control-text-color-error: var(--gl-text-color-danger); /** Used for the helper text when the input is invalid. */
1058
1075
  --gl-control-text-color-valid: var(--gl-text-color-success); /** Used for the helper text when the input is valid. */
1059
1076
  --gl-control-placeholder-color: var(--gl-text-color-disabled); /** Used for placeholder text within inputs. */
@@ -1075,6 +1092,7 @@
1075
1092
  --gl-badge-danger-background-color-focus: var(--gl-badge-danger-background-color-hover); /** Used for the background of a danger badge in the focus state. */
1076
1093
  --gl-badge-tier-background-color-focus: var(--gl-badge-tier-background-color-hover); /** Used for the background of a tier related badge in the focus state. */
1077
1094
  --gl-broadcast-banner-border-radius: var(--gl-border-radius-default); /** Used for broadcast banner border radius. */
1095
+ --gl-button-border-radius: var(--gl-action-border-radius); /** Used for button border radius. */
1078
1096
  --gl-button-default-tertiary-foreground-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the foreground of a default borderless, tertiary button in the hover state. */
1079
1097
  --gl-button-default-tertiary-foreground-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the foreground of a default borderless, tertiary button in the focus state. */
1080
1098
  --gl-button-default-tertiary-foreground-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the foreground of a default borderless, tertiary button in the active state. */
@@ -1098,24 +1116,19 @@
1098
1116
  --gl-button-selected-foreground-color-focus: var(--gl-button-default-primary-foreground-color-focus); /** Used for the foreground of a selected button in the focus state. */
1099
1117
  --gl-button-selected-foreground-color-active: var(--gl-button-default-primary-foreground-color-active); /** Used for the foreground of a selected button in the active state. */
1100
1118
  --gl-button-selected-background-color-focus: var(--gl-button-default-primary-background-color-focus); /** Used for the background of a selected button in the focus state. */
1101
- --gl-card-border-radius: var(--gl-border-radius-default); /** Used for card border radius. */
1102
1119
  --gl-chart-axis-pointer-color: var(--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: var(--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: var(--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: var(--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: var(--gl-action-neutral-foreground-color-active); /** Used for the text of a dropdown option in the active state. */
1107
- --gl-modal-border-radius: var(--gl-border-radius-default); /** Used for modal border radius. */
1108
1124
  --gl-toggle-switch-icon-color-unchecked-focus: var(--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: var(--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: var(--gl-border-radius-default); /** Used for the border radius of an action. */
1111
1126
  --gl-action-selected-foreground-color-focus: var(--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: var(--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: var(--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: var(--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-foreground-color-focus: var(--gl-action-strong-neutral-foreground-color-hover); /** Used for the foreground of a strong neutral action in the focus state. */
1116
1131
  --gl-action-strong-neutral-border-color-focus: var(--gl-action-strong-neutral-border-color-hover); /** Used for the border of a strong neutral action in the focus state. */
1117
- --gl-control-border-radius: var(--gl-border-radius-default); /** Used for form control (input, radio button, checkbox, textarea) default border radius. */
1118
- --gl-button-border-radius: var(--gl-action-border-radius); /** Used for button border radius. */
1119
1132
  --gl-button-confirm-primary-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a confirm (positive) primary button in the focus state. */
1120
1133
  --gl-action-selected-foreground-color-active: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected action in the active state. */
1121
1134
  --gl-action-strong-confirm-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a strong confirm action in the active state. */
@@ -230,6 +230,17 @@
230
230
  --gl-color-brand-gray-04: #45424d;
231
231
  --gl-color-brand-gray-05: #2b2838;
232
232
  --gl-color-brand-pink-01g: #ffb9c9;
233
+ --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';
234
+ --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;
235
+ --gl-font-size-xs: 0.625rem;
236
+ --gl-font-size-sm: 0.75rem;
237
+ --gl-font-size-md: 0.875rem;
238
+ --gl-font-size-lg: 1rem;
239
+ --gl-font-weight-100: 100;
240
+ --gl-font-weight-300: 300;
241
+ --gl-font-weight-normal: 400;
242
+ --gl-font-weight-semibold: 500;
243
+ --gl-font-weight-bold: 600;
233
244
  --gl-line-height-12: 0.75rem;
234
245
  --gl-line-height-16: 1rem;
235
246
  --gl-line-height-20: 1.25rem;
@@ -584,6 +595,7 @@
584
595
  --gl-border-color-subtle: var(--gl-color-neutral-800); /** Used for a subtle border in combination with the default background. */
585
596
  --gl-border-color-strong: var(--gl-color-neutral-600); /** Used for a distinct border that emphasizes an edge or boundaries. */
586
597
  --gl-border-color-transparent: var(--gl-color-alpha-0); /** Used when a border needs to be present, but not visibly perceived. */
598
+ --gl-font-size-base: var(--gl-font-size-md);
587
599
  --gl-shadow-color-default: var(--gl-color-alpha-dark-40); /** Used for the default shadow color. */
588
600
  --gl-alert-neutral-border-top-color: var(--gl-color-neutral-400); /** Used for the border center color of a neutral alert. */
589
601
  --gl-alert-neutral-border-bottom-color: var(--gl-color-alpha-0); /** Used for the border bottom color of a neutral alert. */
@@ -1006,8 +1018,10 @@
1006
1018
  --gl-button-danger-tertiary-border-color-default: var(--gl-action-danger-border-color-default); /** Used for the border of a borderless, tertiary danger (destructive) button in the default state. */
1007
1019
  --gl-button-dashed-border-color-hover: var(--gl-button-dashed-border-color-default); /** Used for the border of a dashed button in the hover state. */
1008
1020
  --gl-button-dashed-border-color-focus: var(--gl-button-dashed-border-color-default); /** Used for the border of a dashed button in the focus state. */
1021
+ --gl-button-link-border-radius: var(--gl-border-radius-md); /** Used for link button border radius. */
1009
1022
  --gl-button-link-text-color-default: var(--gl-text-color-link); /** Used for the text of a link button in the default state. */
1010
1023
  --gl-button-selected-border-color-focus: var(--gl-button-selected-border-color-hover); /** Used for the border of a selected button in the focus state. */
1024
+ --gl-card-border-radius: var(--gl-border-radius-lg); /** Used for card border radius. */
1011
1025
  --gl-chart-axis-text-color: var(--gl-text-color-subtle); /** Used in charts for the text color of axis titles and labels. */
1012
1026
  --gl-datepicker-date-text-color-selected: var(--gl-control-indicator-color-selected); /** Used for the datepicker date text color state indicators. */
1013
1027
  --gl-dropdown-background-color: var(--gl-background-color-overlap); /** Used for the background of a dropdown. */
@@ -1022,6 +1036,7 @@
1022
1036
  --gl-dropdown-option-indicator-color-selected-active: var(--gl-control-background-color-selected-focus); /** Used for the dropdown selected option indicator in the active state. */
1023
1037
  --gl-dropdown-option-background-color-unselected-focus: var(--gl-action-neutral-background-color-focus); /** Used for the background of an unselected dropdown option in the focus state. */
1024
1038
  --gl-dropdown-option-background-color-selected-focus: var(--gl-dropdown-option-background-color-selected-hover); /** Used for the background of a selected dropdown option in the focus state. */
1039
+ --gl-modal-border-radius: var(--gl-border-radius-lg); /** Used for modal border radius. */
1025
1040
  --gl-progress-bar-indicator-color-default: var(--gl-status-info-icon-color); /** Used for the indicator color for the primary progress-bar variant. */
1026
1041
  --gl-progress-bar-indicator-color-success: var(--gl-status-success-icon-color); /** Used for the indicator color for the success progress-bar variant. */
1027
1042
  --gl-progress-bar-indicator-color-warning: var(--gl-status-warning-icon-color); /** Used for the indicator color for the warning progress-bar variant. */
@@ -1036,6 +1051,7 @@
1036
1051
  --gl-toggle-switch-icon-color-checked-active: var(--gl-action-strong-confirm-background-color-active); /** Used for the icon color of a checked toggle switch in the active state. */
1037
1052
  --gl-toggle-switch-icon-color-disabled: var(--gl-action-disabled-background-color); /** Used for the icon color of a disabled toggle switch. */
1038
1053
  --gl-token-foreground-color: var(--gl-text-color-default); /** Used for the token foreground color. */
1054
+ --gl-action-border-radius: var(--gl-border-radius-lg); /** Used for the border radius of an action. */
1039
1055
  --gl-action-selected-foreground-color-hover: var(--gl-action-selected-foreground-color-default); /** Used for the foreground of a selected action in the hover state. */
1040
1056
  --gl-action-selected-background-color-focus: var(--gl-action-selected-background-color-hover); /** Used for the background of a selected action in the focus state. */
1041
1057
  --gl-action-selected-border-color-default: var(--gl-action-selected-background-color-default); /** Used for the border of a selected action in the default state. */
@@ -1060,6 +1076,7 @@
1060
1076
  --gl-action-strong-confirm-border-color-hover: var(--gl-action-strong-confirm-border-color-default); /** Used for the border of a strong confirm action in the hover state. */
1061
1077
  --gl-action-strong-neutral-background-color-focus: var(--gl-action-strong-neutral-background-color-hover); /** Used for the background of a strong neutral action in the focus state. */
1062
1078
  --gl-action-strong-neutral-border-color-hover: var(--gl-action-strong-neutral-border-color-default); /** Used for the border of a strong neutral action in the hover state. */
1079
+ --gl-control-border-radius: var(--gl-border-radius-lg); /** Used for form control (input, radio button, checkbox, textarea) default border radius. */
1063
1080
  --gl-control-text-color-error: var(--gl-text-color-danger); /** Used for the helper text when the input is invalid. */
1064
1081
  --gl-control-text-color-valid: var(--gl-text-color-success); /** Used for the helper text when the input is valid. */
1065
1082
  --gl-control-placeholder-color: var(--gl-text-color-disabled); /** Used for placeholder text within inputs. */
@@ -1081,6 +1098,7 @@
1081
1098
  --gl-badge-danger-background-color-focus: var(--gl-badge-danger-background-color-hover); /** Used for the background of a danger badge in the focus state. */
1082
1099
  --gl-badge-tier-background-color-focus: var(--gl-badge-tier-background-color-hover); /** Used for the background of a tier related badge in the focus state. */
1083
1100
  --gl-broadcast-banner-border-radius: var(--gl-border-radius-default); /** Used for broadcast banner border radius. */
1101
+ --gl-button-border-radius: var(--gl-action-border-radius); /** Used for button border radius. */
1084
1102
  --gl-button-default-tertiary-foreground-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the foreground of a default borderless, tertiary button in the hover state. */
1085
1103
  --gl-button-default-tertiary-foreground-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the foreground of a default borderless, tertiary button in the focus state. */
1086
1104
  --gl-button-default-tertiary-foreground-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the foreground of a default borderless, tertiary button in the active state. */
@@ -1100,23 +1118,18 @@
1100
1118
  --gl-button-link-text-color-hover: var(--gl-button-link-text-color-default); /** Used for the text of a link button in the hover state. */
1101
1119
  --gl-button-link-text-color-focus: var(--gl-button-link-text-color-default); /** Used for the text of a link button in the focus state. */
1102
1120
  --gl-button-link-text-color-active: var(--gl-button-link-text-color-default); /** Used for the text of a link button in the active state. */
1103
- --gl-card-border-radius: var(--gl-border-radius-default); /** Used for card border radius. */
1104
1121
  --gl-chart-axis-pointer-color: var(--gl-icon-color-subtle); /** Used in charts for the color of the reference line and axis value under mouse pointer. */
1105
1122
  --gl-chart-zoom-handle-color: var(--gl-icon-color-subtle); /** Used in charts for the handle color when zooming in on a specific area of data. */
1106
1123
  --gl-dropdown-option-text-color-hover: var(--gl-action-neutral-foreground-color-hover); /** Used for the text of a dropdown option in the hover state. */
1107
1124
  --gl-dropdown-option-text-color-focus: var(--gl-action-neutral-foreground-color-focus); /** Used for the text of a dropdown option in the focus state. */
1108
1125
  --gl-dropdown-option-text-color-active: var(--gl-action-neutral-foreground-color-active); /** Used for the text of a dropdown option in the active state. */
1109
- --gl-modal-border-radius: var(--gl-border-radius-default); /** Used for modal border radius. */
1110
1126
  --gl-toggle-switch-icon-color-unchecked-focus: var(--gl-action-strong-neutral-background-color-focus); /** Used for the icon color of an unchecked toggle switch in the focus state. */
1111
1127
  --gl-toggle-switch-icon-color-checked-focus: var(--gl-action-strong-confirm-background-color-focus); /** Used for the icon color of a checked toggle switch in the focus state. */
1112
- --gl-action-border-radius: var(--gl-border-radius-default); /** Used for the border radius of an action. */
1113
1128
  --gl-action-selected-foreground-color-focus: var(--gl-action-selected-foreground-color-hover); /** Used for the foreground of a selected action in the focus state. */
1114
1129
  --gl-action-selected-border-color-focus: var(--gl-action-selected-background-color-focus); /** Used for the border of a selected action in the focus state. */
1115
1130
  --gl-action-strong-confirm-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-hover); /** Used for the foreground of a strong confirm action in the focus state. */
1116
1131
  --gl-action-strong-confirm-border-color-focus: var(--gl-action-strong-confirm-border-color-hover); /** Used for the border of a strong confirm action in the focus state. */
1117
1132
  --gl-action-strong-neutral-border-color-focus: var(--gl-action-strong-neutral-border-color-hover); /** Used for the border of a strong neutral action in the focus state. */
1118
- --gl-control-border-radius: var(--gl-border-radius-default); /** Used for form control (input, radio button, checkbox, textarea) default border radius. */
1119
- --gl-button-border-radius: var(--gl-action-border-radius); /** Used for button border radius. */
1120
1133
  --gl-button-confirm-primary-foreground-color-focus: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a confirm (positive) primary button in the focus state. */
1121
1134
  --gl-action-selected-foreground-color-active: var(--gl-action-selected-foreground-color-focus); /** Used for the foreground of a selected action in the active state. */
1122
1135
  --gl-action-strong-confirm-foreground-color-active: var(--gl-action-strong-confirm-foreground-color-focus); /** Used for the foreground of a strong confirm action in the active state. */