@gitlab/ui 122.14.0 → 123.1.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 (39) hide show
  1. package/dist/components/base/avatar/avatar.js +22 -12
  2. package/dist/components/base/avatar/utils.js +17 -0
  3. package/dist/components/base/avatar_labeled/avatar_labeled.js +83 -2
  4. package/dist/index.css +2 -2
  5. package/dist/index.css.map +1 -1
  6. package/dist/tokens/build/js/tokens.dark.js +53 -2
  7. package/dist/tokens/build/js/tokens.js +53 -2
  8. package/dist/tokens/css/tokens.css +4 -1
  9. package/dist/tokens/css/tokens.dark.css +4 -1
  10. package/dist/tokens/docs/tokens-tailwind-docs.dark.json +201 -0
  11. package/dist/tokens/docs/tokens-tailwind-docs.json +201 -0
  12. package/dist/tokens/figma/constants.tokens.json +85 -0
  13. package/dist/tokens/js/tokens.dark.js +63 -1
  14. package/dist/tokens/js/tokens.js +63 -1
  15. package/dist/tokens/json/tokens.dark.json +234 -38
  16. package/dist/tokens/json/tokens.json +234 -38
  17. package/dist/tokens/scss/_tokens.dark.scss +4 -1
  18. package/dist/tokens/scss/_tokens.scss +4 -1
  19. package/dist/tokens/scss/_tokens_custom_properties.scss +4 -1
  20. package/dist/tokens/tailwind/tokens.cjs +2 -0
  21. package/package.json +2 -5
  22. package/src/components/base/avatar/avatar.vue +22 -16
  23. package/src/components/base/avatar/utils.js +19 -0
  24. package/src/components/base/avatar_labeled/avatar_labeled.vue +83 -2
  25. package/src/tokens/build/css/tokens.css +4 -1
  26. package/src/tokens/build/css/tokens.dark.css +4 -1
  27. package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +201 -0
  28. package/src/tokens/build/docs/tokens-tailwind-docs.json +201 -0
  29. package/src/tokens/build/figma/constants.tokens.json +85 -0
  30. package/src/tokens/build/js/tokens.dark.js +63 -1
  31. package/src/tokens/build/js/tokens.js +63 -1
  32. package/src/tokens/build/json/tokens.dark.json +234 -38
  33. package/src/tokens/build/json/tokens.json +234 -38
  34. package/src/tokens/build/scss/_tokens.dark.scss +4 -1
  35. package/src/tokens/build/scss/_tokens.scss +4 -1
  36. package/src/tokens/build/scss/_tokens_custom_properties.scss +4 -1
  37. package/src/tokens/build/tailwind/tokens.cjs +6 -0
  38. package/src/tokens/constant/shadow.tokens.json +87 -0
  39. package/tailwind.defaults.js +3 -5
@@ -6702,6 +6702,240 @@
6702
6702
  ]
6703
6703
  }
6704
6704
  },
6705
+ "shadow": {
6706
+ "sm": {
6707
+ "key": "{shadow.sm}",
6708
+ "$value": [
6709
+ {
6710
+ "color": "rgba(05, 05, 06, 0.4)",
6711
+ "offsetX": 0,
6712
+ "offsetY": 0,
6713
+ "blur": "2px",
6714
+ "spread": 0
6715
+ },
6716
+ {
6717
+ "color": "rgba(05, 05, 06, 0.4)",
6718
+ "offsetX": 0,
6719
+ "offsetY": "1px",
6720
+ "blur": "4px",
6721
+ "spread": 0
6722
+ }
6723
+ ],
6724
+ "$type": "shadow",
6725
+ "$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
6726
+ "$extensions": {
6727
+ "com.figma.scope": []
6728
+ },
6729
+ "filePath": "src/tokens/constant/shadow.tokens.json",
6730
+ "isSource": true,
6731
+ "original": {
6732
+ "$value": [
6733
+ {
6734
+ "color": "{shadow.color.default}",
6735
+ "offsetX": 0,
6736
+ "offsetY": 0,
6737
+ "blur": "2px",
6738
+ "spread": 0
6739
+ },
6740
+ {
6741
+ "color": "{shadow.color.default}",
6742
+ "offsetX": 0,
6743
+ "offsetY": "1px",
6744
+ "blur": "4px",
6745
+ "spread": 0
6746
+ }
6747
+ ],
6748
+ "$type": "shadow",
6749
+ "$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
6750
+ "$extensions": {
6751
+ "com.figma.scope": []
6752
+ },
6753
+ "key": "{shadow.sm}"
6754
+ },
6755
+ "name": "SHADOW_SM",
6756
+ "attributes": {},
6757
+ "path": [
6758
+ "shadow",
6759
+ "sm"
6760
+ ]
6761
+ },
6762
+ "md": {
6763
+ "key": "{shadow.md}",
6764
+ "$value": [
6765
+ {
6766
+ "color": "rgba(05, 05, 06, 0.4)",
6767
+ "offsetX": 0,
6768
+ "offsetY": 0,
6769
+ "blur": "1px",
6770
+ "spread": 0
6771
+ },
6772
+ {
6773
+ "color": "rgba(05, 05, 06, 0.4)",
6774
+ "offsetX": 0,
6775
+ "offsetY": 0,
6776
+ "blur": "2px",
6777
+ "spread": 0
6778
+ },
6779
+ {
6780
+ "color": "rgba(05, 05, 06, 0.4)",
6781
+ "offsetX": 0,
6782
+ "offsetY": "2px",
6783
+ "blur": "8px",
6784
+ "spread": 0
6785
+ }
6786
+ ],
6787
+ "$type": "shadow",
6788
+ "$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
6789
+ "$extensions": {
6790
+ "com.figma.scope": []
6791
+ },
6792
+ "filePath": "src/tokens/constant/shadow.tokens.json",
6793
+ "isSource": true,
6794
+ "original": {
6795
+ "$value": [
6796
+ {
6797
+ "color": "{shadow.color.default}",
6798
+ "offsetX": 0,
6799
+ "offsetY": 0,
6800
+ "blur": "1px",
6801
+ "spread": 0
6802
+ },
6803
+ {
6804
+ "color": "{shadow.color.default}",
6805
+ "offsetX": 0,
6806
+ "offsetY": 0,
6807
+ "blur": "2px",
6808
+ "spread": 0
6809
+ },
6810
+ {
6811
+ "color": "{shadow.color.default}",
6812
+ "offsetX": 0,
6813
+ "offsetY": "2px",
6814
+ "blur": "8px",
6815
+ "spread": 0
6816
+ }
6817
+ ],
6818
+ "$type": "shadow",
6819
+ "$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
6820
+ "$extensions": {
6821
+ "com.figma.scope": []
6822
+ },
6823
+ "key": "{shadow.md}"
6824
+ },
6825
+ "name": "SHADOW_MD",
6826
+ "attributes": {},
6827
+ "path": [
6828
+ "shadow",
6829
+ "md"
6830
+ ]
6831
+ },
6832
+ "lg": {
6833
+ "key": "{shadow.lg}",
6834
+ "$value": [
6835
+ {
6836
+ "color": "rgba(05, 05, 06, 0.4)",
6837
+ "offsetX": 0,
6838
+ "offsetY": 0,
6839
+ "blur": "2px",
6840
+ "spread": 0
6841
+ },
6842
+ {
6843
+ "color": "rgba(05, 05, 06, 0.4)",
6844
+ "offsetX": 0,
6845
+ "offsetY": 0,
6846
+ "blur": "2px",
6847
+ "spread": 0
6848
+ },
6849
+ {
6850
+ "color": "rgba(05, 05, 06, 0.4)",
6851
+ "offsetX": 0,
6852
+ "offsetY": "4px",
6853
+ "blur": "12px",
6854
+ "spread": 0
6855
+ }
6856
+ ],
6857
+ "$type": "shadow",
6858
+ "$description": "Used for large surfaces that present additional context to the user.",
6859
+ "$extensions": {
6860
+ "com.figma.scope": []
6861
+ },
6862
+ "filePath": "src/tokens/constant/shadow.tokens.json",
6863
+ "isSource": true,
6864
+ "original": {
6865
+ "$value": [
6866
+ {
6867
+ "color": "{shadow.color.default}",
6868
+ "offsetX": 0,
6869
+ "offsetY": 0,
6870
+ "blur": "2px",
6871
+ "spread": 0
6872
+ },
6873
+ {
6874
+ "color": "{shadow.color.default}",
6875
+ "offsetX": 0,
6876
+ "offsetY": 0,
6877
+ "blur": "2px",
6878
+ "spread": 0
6879
+ },
6880
+ {
6881
+ "color": "{shadow.color.default}",
6882
+ "offsetX": 0,
6883
+ "offsetY": "4px",
6884
+ "blur": "12px",
6885
+ "spread": 0
6886
+ }
6887
+ ],
6888
+ "$type": "shadow",
6889
+ "$description": "Used for large surfaces that present additional context to the user.",
6890
+ "$extensions": {
6891
+ "com.figma.scope": []
6892
+ },
6893
+ "key": "{shadow.lg}"
6894
+ },
6895
+ "name": "SHADOW_LG",
6896
+ "attributes": {},
6897
+ "path": [
6898
+ "shadow",
6899
+ "lg"
6900
+ ]
6901
+ },
6902
+ "color": {
6903
+ "default": {
6904
+ "key": "{shadow.color.default}",
6905
+ "$value": "rgba(05, 05, 06, 0.4)",
6906
+ "$type": "color",
6907
+ "$description": "Used for the default shadow color.",
6908
+ "$extensions": {
6909
+ "com.figma.scope": [
6910
+ "EFFECT_COLOR"
6911
+ ]
6912
+ },
6913
+ "filePath": "src/tokens/semantic/shadow.tokens.json",
6914
+ "isSource": true,
6915
+ "original": {
6916
+ "$value": {
6917
+ "default": "{color.alpha.dark.16}",
6918
+ "dark": "{color.alpha.dark.40}"
6919
+ },
6920
+ "$type": "color",
6921
+ "$description": "Used for the default shadow color.",
6922
+ "$extensions": {
6923
+ "com.figma.scope": [
6924
+ "EFFECT_COLOR"
6925
+ ]
6926
+ },
6927
+ "key": "{shadow.color.default}"
6928
+ },
6929
+ "name": "SHADOW_COLOR_DEFAULT",
6930
+ "attributes": {},
6931
+ "path": [
6932
+ "shadow",
6933
+ "color",
6934
+ "default"
6935
+ ]
6936
+ }
6937
+ }
6938
+ },
6705
6939
  "spacing-scale": {
6706
6940
  "0": {
6707
6941
  "key": "{spacing-scale.0}",
@@ -36057,44 +36291,6 @@
36057
36291
  }
36058
36292
  }
36059
36293
  },
36060
- "shadow": {
36061
- "color": {
36062
- "default": {
36063
- "key": "{shadow.color.default}",
36064
- "$value": "rgba(05, 05, 06, 0.4)",
36065
- "$type": "color",
36066
- "$description": "Used for the default shadow color.",
36067
- "$extensions": {
36068
- "com.figma.scope": [
36069
- "EFFECT_COLOR"
36070
- ]
36071
- },
36072
- "filePath": "src/tokens/semantic/shadow.tokens.json",
36073
- "isSource": true,
36074
- "original": {
36075
- "$value": {
36076
- "default": "{color.alpha.dark.16}",
36077
- "dark": "{color.alpha.dark.40}"
36078
- },
36079
- "$type": "color",
36080
- "$description": "Used for the default shadow color.",
36081
- "$extensions": {
36082
- "com.figma.scope": [
36083
- "EFFECT_COLOR"
36084
- ]
36085
- },
36086
- "key": "{shadow.color.default}"
36087
- },
36088
- "name": "SHADOW_COLOR_DEFAULT",
36089
- "attributes": {},
36090
- "path": [
36091
- "shadow",
36092
- "color",
36093
- "default"
36094
- ]
36095
- }
36096
- }
36097
- },
36098
36294
  "status": {
36099
36295
  "neutral": {
36100
36296
  "background": {
@@ -6702,6 +6702,240 @@
6702
6702
  ]
6703
6703
  }
6704
6704
  },
6705
+ "shadow": {
6706
+ "sm": {
6707
+ "key": "{shadow.sm}",
6708
+ "$value": [
6709
+ {
6710
+ "color": "rgba(05, 05, 06, 0.16)",
6711
+ "offsetX": 0,
6712
+ "offsetY": 0,
6713
+ "blur": "2px",
6714
+ "spread": 0
6715
+ },
6716
+ {
6717
+ "color": "rgba(05, 05, 06, 0.16)",
6718
+ "offsetX": 0,
6719
+ "offsetY": "1px",
6720
+ "blur": "4px",
6721
+ "spread": 0
6722
+ }
6723
+ ],
6724
+ "$type": "shadow",
6725
+ "$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
6726
+ "$extensions": {
6727
+ "com.figma.scope": []
6728
+ },
6729
+ "filePath": "src/tokens/constant/shadow.tokens.json",
6730
+ "isSource": true,
6731
+ "original": {
6732
+ "$value": [
6733
+ {
6734
+ "color": "{shadow.color.default}",
6735
+ "offsetX": 0,
6736
+ "offsetY": 0,
6737
+ "blur": "2px",
6738
+ "spread": 0
6739
+ },
6740
+ {
6741
+ "color": "{shadow.color.default}",
6742
+ "offsetX": 0,
6743
+ "offsetY": "1px",
6744
+ "blur": "4px",
6745
+ "spread": 0
6746
+ }
6747
+ ],
6748
+ "$type": "shadow",
6749
+ "$description": "Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.",
6750
+ "$extensions": {
6751
+ "com.figma.scope": []
6752
+ },
6753
+ "key": "{shadow.sm}"
6754
+ },
6755
+ "name": "SHADOW_SM",
6756
+ "attributes": {},
6757
+ "path": [
6758
+ "shadow",
6759
+ "sm"
6760
+ ]
6761
+ },
6762
+ "md": {
6763
+ "key": "{shadow.md}",
6764
+ "$value": [
6765
+ {
6766
+ "color": "rgba(05, 05, 06, 0.16)",
6767
+ "offsetX": 0,
6768
+ "offsetY": 0,
6769
+ "blur": "1px",
6770
+ "spread": 0
6771
+ },
6772
+ {
6773
+ "color": "rgba(05, 05, 06, 0.16)",
6774
+ "offsetX": 0,
6775
+ "offsetY": 0,
6776
+ "blur": "2px",
6777
+ "spread": 0
6778
+ },
6779
+ {
6780
+ "color": "rgba(05, 05, 06, 0.16)",
6781
+ "offsetX": 0,
6782
+ "offsetY": "2px",
6783
+ "blur": "8px",
6784
+ "spread": 0
6785
+ }
6786
+ ],
6787
+ "$type": "shadow",
6788
+ "$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
6789
+ "$extensions": {
6790
+ "com.figma.scope": []
6791
+ },
6792
+ "filePath": "src/tokens/constant/shadow.tokens.json",
6793
+ "isSource": true,
6794
+ "original": {
6795
+ "$value": [
6796
+ {
6797
+ "color": "{shadow.color.default}",
6798
+ "offsetX": 0,
6799
+ "offsetY": 0,
6800
+ "blur": "1px",
6801
+ "spread": 0
6802
+ },
6803
+ {
6804
+ "color": "{shadow.color.default}",
6805
+ "offsetX": 0,
6806
+ "offsetY": 0,
6807
+ "blur": "2px",
6808
+ "spread": 0
6809
+ },
6810
+ {
6811
+ "color": "{shadow.color.default}",
6812
+ "offsetX": 0,
6813
+ "offsetY": "2px",
6814
+ "blur": "8px",
6815
+ "spread": 0
6816
+ }
6817
+ ],
6818
+ "$type": "shadow",
6819
+ "$description": "Used for surfaces that need boundary definition and appear on hover. For example, popovers.",
6820
+ "$extensions": {
6821
+ "com.figma.scope": []
6822
+ },
6823
+ "key": "{shadow.md}"
6824
+ },
6825
+ "name": "SHADOW_MD",
6826
+ "attributes": {},
6827
+ "path": [
6828
+ "shadow",
6829
+ "md"
6830
+ ]
6831
+ },
6832
+ "lg": {
6833
+ "key": "{shadow.lg}",
6834
+ "$value": [
6835
+ {
6836
+ "color": "rgba(05, 05, 06, 0.16)",
6837
+ "offsetX": 0,
6838
+ "offsetY": 0,
6839
+ "blur": "2px",
6840
+ "spread": 0
6841
+ },
6842
+ {
6843
+ "color": "rgba(05, 05, 06, 0.16)",
6844
+ "offsetX": 0,
6845
+ "offsetY": 0,
6846
+ "blur": "2px",
6847
+ "spread": 0
6848
+ },
6849
+ {
6850
+ "color": "rgba(05, 05, 06, 0.16)",
6851
+ "offsetX": 0,
6852
+ "offsetY": "4px",
6853
+ "blur": "12px",
6854
+ "spread": 0
6855
+ }
6856
+ ],
6857
+ "$type": "shadow",
6858
+ "$description": "Used for large surfaces that present additional context to the user.",
6859
+ "$extensions": {
6860
+ "com.figma.scope": []
6861
+ },
6862
+ "filePath": "src/tokens/constant/shadow.tokens.json",
6863
+ "isSource": true,
6864
+ "original": {
6865
+ "$value": [
6866
+ {
6867
+ "color": "{shadow.color.default}",
6868
+ "offsetX": 0,
6869
+ "offsetY": 0,
6870
+ "blur": "2px",
6871
+ "spread": 0
6872
+ },
6873
+ {
6874
+ "color": "{shadow.color.default}",
6875
+ "offsetX": 0,
6876
+ "offsetY": 0,
6877
+ "blur": "2px",
6878
+ "spread": 0
6879
+ },
6880
+ {
6881
+ "color": "{shadow.color.default}",
6882
+ "offsetX": 0,
6883
+ "offsetY": "4px",
6884
+ "blur": "12px",
6885
+ "spread": 0
6886
+ }
6887
+ ],
6888
+ "$type": "shadow",
6889
+ "$description": "Used for large surfaces that present additional context to the user.",
6890
+ "$extensions": {
6891
+ "com.figma.scope": []
6892
+ },
6893
+ "key": "{shadow.lg}"
6894
+ },
6895
+ "name": "SHADOW_LG",
6896
+ "attributes": {},
6897
+ "path": [
6898
+ "shadow",
6899
+ "lg"
6900
+ ]
6901
+ },
6902
+ "color": {
6903
+ "default": {
6904
+ "key": "{shadow.color.default}",
6905
+ "$value": "rgba(05, 05, 06, 0.16)",
6906
+ "$type": "color",
6907
+ "$description": "Used for the default shadow color.",
6908
+ "$extensions": {
6909
+ "com.figma.scope": [
6910
+ "EFFECT_COLOR"
6911
+ ]
6912
+ },
6913
+ "filePath": "src/tokens/semantic/shadow.tokens.json",
6914
+ "isSource": true,
6915
+ "original": {
6916
+ "$value": {
6917
+ "default": "{color.alpha.dark.16}",
6918
+ "dark": "{color.alpha.dark.40}"
6919
+ },
6920
+ "$type": "color",
6921
+ "$description": "Used for the default shadow color.",
6922
+ "$extensions": {
6923
+ "com.figma.scope": [
6924
+ "EFFECT_COLOR"
6925
+ ]
6926
+ },
6927
+ "key": "{shadow.color.default}"
6928
+ },
6929
+ "name": "SHADOW_COLOR_DEFAULT",
6930
+ "attributes": {},
6931
+ "path": [
6932
+ "shadow",
6933
+ "color",
6934
+ "default"
6935
+ ]
6936
+ }
6937
+ }
6938
+ },
6705
6939
  "spacing-scale": {
6706
6940
  "0": {
6707
6941
  "key": "{spacing-scale.0}",
@@ -36057,44 +36291,6 @@
36057
36291
  }
36058
36292
  }
36059
36293
  },
36060
- "shadow": {
36061
- "color": {
36062
- "default": {
36063
- "key": "{shadow.color.default}",
36064
- "$value": "rgba(05, 05, 06, 0.16)",
36065
- "$type": "color",
36066
- "$description": "Used for the default shadow color.",
36067
- "$extensions": {
36068
- "com.figma.scope": [
36069
- "EFFECT_COLOR"
36070
- ]
36071
- },
36072
- "filePath": "src/tokens/semantic/shadow.tokens.json",
36073
- "isSource": true,
36074
- "original": {
36075
- "$value": {
36076
- "default": "{color.alpha.dark.16}",
36077
- "dark": "{color.alpha.dark.40}"
36078
- },
36079
- "$type": "color",
36080
- "$description": "Used for the default shadow color.",
36081
- "$extensions": {
36082
- "com.figma.scope": [
36083
- "EFFECT_COLOR"
36084
- ]
36085
- },
36086
- "key": "{shadow.color.default}"
36087
- },
36088
- "name": "SHADOW_COLOR_DEFAULT",
36089
- "attributes": {},
36090
- "path": [
36091
- "shadow",
36092
- "color",
36093
- "default"
36094
- ]
36095
- }
36096
- }
36097
- },
36098
36294
  "status": {
36099
36295
  "neutral": {
36100
36296
  "background": {
@@ -571,6 +571,7 @@ $gl-border-color-default: $gl-color-neutral-700; // Used for the default border
571
571
  $gl-border-color-subtle: $gl-color-neutral-800; // Used for a subtle border in combination with the default background.
572
572
  $gl-border-color-strong: $gl-color-neutral-600; // Used for a distinct border that emphasizes an edge or boundaries.
573
573
  $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
574
+ $gl-shadow-color-default: $gl-color-alpha-dark-40; // Used for the default shadow color.
574
575
  $gl-alert-neutral-border-top-color: $gl-color-neutral-400; // Used for the border center color of a neutral alert.
575
576
  $gl-alert-neutral-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a neutral alert.
576
577
  $gl-alert-info-border-top-color: $gl-color-blue-400; // Used for the border color of an info alert.
@@ -893,7 +894,6 @@ $gl-highlight-match-text-color: $gl-color-neutral-950; // Used for text within t
893
894
  $gl-highlight-target-background-color: $gl-color-blue-950; // Used for temporary visual emphasis for backgrounds of referenced elements (for example URL anchors, hover states) or to show relationships between content without implying status or requiring action.
894
895
  $gl-highlight-target-border-color: $gl-color-blue-700; // Used to provide additional visual emphasis for borders of temporarily targeted elements or when visualizing connections between related content, distinct from persistent states.
895
896
  $gl-icon-color-info: $gl-color-blue-200; // Used for an icon associated with information or help.
896
- $gl-shadow-color-default: $gl-color-alpha-dark-40; // Used for the default shadow color.
897
897
  $gl-status-neutral-background-color: $gl-color-neutral-800; // Used for the background of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state.
898
898
  $gl-status-neutral-text-color: $gl-color-neutral-200; // Used for the text of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state.
899
899
  $gl-status-neutral-icon-color: $gl-color-neutral-300; // Used for the icon of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state.
@@ -923,6 +923,9 @@ $gl-text-color-success: $gl-color-green-300; // Used for text indicating success
923
923
  $gl-text-color-disabled: $gl-color-neutral-400; // Used for disabled text.
924
924
  $gl-border-radius-default: $gl-border-radius-md;
925
925
  $gl-border-color-section: $gl-background-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
926
+ $gl-shadow-sm: 0 0 2px $gl-shadow-color-default, 0 1px 4px $gl-shadow-color-default; // Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.
927
+ $gl-shadow-md: 0 0 1px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 2px 8px $gl-shadow-color-default; // Used for surfaces that need boundary definition and appear on hover. For example, popovers.
928
+ $gl-shadow-lg: 0 0 2px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 4px 12px $gl-shadow-color-default; // Used for large surfaces that present additional context to the user.
926
929
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
927
930
  $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
928
931
  $gl-alert-info-title-color: $gl-color-blue-300; // Used for the title color of an info alert.
@@ -571,6 +571,7 @@ $gl-border-color-default: $gl-color-neutral-100; // Used for the default border
571
571
  $gl-border-color-subtle: $gl-color-neutral-50; // Used for a subtle border in combination with the default background.
572
572
  $gl-border-color-strong: $gl-color-neutral-200; // Used for a distinct border that emphasizes an edge or boundaries.
573
573
  $gl-border-color-transparent: $gl-color-alpha-0; // Used when a border needs to be present, but not visibly perceived.
574
+ $gl-shadow-color-default: $gl-color-alpha-dark-16; // Used for the default shadow color.
574
575
  $gl-alert-neutral-border-top-color: $gl-color-alpha-0; // Used for the border center color of a neutral alert.
575
576
  $gl-alert-neutral-border-bottom-color: $gl-color-alpha-0; // Used for the border bottom color of a neutral alert.
576
577
  $gl-alert-info-border-top-color: $gl-color-alpha-0; // Used for the border color of an info alert.
@@ -893,7 +894,6 @@ $gl-highlight-match-text-color: $gl-color-neutral-0; // Used for text within tem
893
894
  $gl-highlight-target-background-color: $gl-color-blue-50; // Used for temporary visual emphasis for backgrounds of referenced elements (for example URL anchors, hover states) or to show relationships between content without implying status or requiring action.
894
895
  $gl-highlight-target-border-color: $gl-color-blue-200; // Used to provide additional visual emphasis for borders of temporarily targeted elements or when visualizing connections between related content, distinct from persistent states.
895
896
  $gl-icon-color-info: $gl-color-blue-700; // Used for an icon associated with information or help.
896
- $gl-shadow-color-default: $gl-color-alpha-dark-16; // Used for the default shadow color.
897
897
  $gl-status-neutral-background-color: $gl-color-neutral-100; // Used for the background of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state.
898
898
  $gl-status-neutral-text-color: $gl-color-neutral-700; // Used for the text of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state.
899
899
  $gl-status-neutral-icon-color: $gl-color-neutral-500; // Used for the icon of a neutral status item when the status is neither positive nor negative, or when indicating a special but stable state.
@@ -923,6 +923,9 @@ $gl-text-color-success: $gl-color-green-600; // Used for text indicating success
923
923
  $gl-text-color-disabled: $gl-color-neutral-400; // Used for disabled text.
924
924
  $gl-border-radius-default: $gl-border-radius-md;
925
925
  $gl-border-color-section: $gl-border-color-default; // Used for the border color that surrounds content or elements when they appear as a closed container or closed section of the page.
926
+ $gl-shadow-sm: 0 0 2px $gl-shadow-color-default, 0 1px 4px $gl-shadow-color-default; // Used for surfaces that need to indicate users can manually interact with them. For example, cards in issue board.
927
+ $gl-shadow-md: 0 0 1px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 2px 8px $gl-shadow-color-default; // Used for surfaces that need boundary definition and appear on hover. For example, popovers.
928
+ $gl-shadow-lg: 0 0 2px $gl-shadow-color-default, 0 0 2px $gl-shadow-color-default, 0 4px 12px $gl-shadow-color-default; // Used for large surfaces that present additional context to the user.
926
929
  $gl-alert-neutral-title-color: $gl-text-color-heading; // Used for the title color of a neutral alert.
927
930
  $gl-alert-neutral-background-color: $gl-feedback-neutral-background-color; // Used for the background color of a neutral alert.
928
931
  $gl-alert-info-title-color: $gl-text-color-heading; // Used for the title color of an info alert.
@@ -264,6 +264,10 @@ $gl-opacity-7: var(--gl-opacity-7);
264
264
  $gl-opacity-8: var(--gl-opacity-8);
265
265
  $gl-opacity-9: var(--gl-opacity-9);
266
266
  $gl-opacity-10: var(--gl-opacity-10);
267
+ $gl-shadow-sm: var(--gl-shadow-sm);
268
+ $gl-shadow-md: var(--gl-shadow-md);
269
+ $gl-shadow-lg: var(--gl-shadow-lg);
270
+ $gl-shadow-color-default: var(--gl-shadow-color-default);
267
271
  $gl-spacing-scale-0: var(--gl-spacing-scale-0);
268
272
  $gl-spacing-scale-1: var(--gl-spacing-scale-1);
269
273
  $gl-spacing-scale-2: var(--gl-spacing-scale-2);
@@ -1086,7 +1090,6 @@ $gl-icon-color-info: var(--gl-icon-color-info);
1086
1090
  $gl-icon-color-warning: var(--gl-icon-color-warning);
1087
1091
  $gl-icon-color-danger: var(--gl-icon-color-danger);
1088
1092
  $gl-icon-color-success: var(--gl-icon-color-success);
1089
- $gl-shadow-color-default: var(--gl-shadow-color-default);
1090
1093
  $gl-status-neutral-background-color: var(--gl-status-neutral-background-color);
1091
1094
  $gl-status-neutral-text-color: var(--gl-status-neutral-text-color);
1092
1095
  $gl-status-neutral-icon-color: var(--gl-status-neutral-icon-color);
@@ -421,6 +421,11 @@ const zindexes = {
421
421
  200: 'var(--gl-zindex-200, 200)',
422
422
  9999: 'var(--gl-zindex-9999, 9999)',
423
423
  };
424
+ const boxShadow = {
425
+ sm: 'var(--gl-shadow-sm)',
426
+ md: 'var(--gl-shadow-md)',
427
+ lg: 'var(--gl-shadow-lg)',
428
+ };
424
429
 
425
430
  const colors = {
426
431
  inherit: 'inherit',
@@ -506,4 +511,5 @@ module.exports = {
506
511
  borderRadius,
507
512
  opacity,
508
513
  zIndex: zindexes,
514
+ boxShadow,
509
515
  };