@gitlab/ui 123.7.0 → 123.8.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 (40) 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 +13 -1
  6. package/dist/tokens/build/js/tokens.js +13 -1
  7. package/dist/tokens/css/tokens.css +12 -0
  8. package/dist/tokens/css/tokens.dark.css +12 -0
  9. package/dist/tokens/docs/tokens-tailwind-docs.dark.json +712 -0
  10. package/dist/tokens/docs/tokens-tailwind-docs.json +712 -0
  11. package/dist/tokens/figma/constants.tokens.json +164 -10
  12. package/dist/tokens/figma/semantic.tokens.json +13 -0
  13. package/dist/tokens/js/tokens.dark.js +39 -0
  14. package/dist/tokens/js/tokens.js +39 -0
  15. package/dist/tokens/json/tokens.dark.json +470 -20
  16. package/dist/tokens/json/tokens.json +470 -20
  17. package/dist/tokens/scss/_tokens.dark.scss +12 -0
  18. package/dist/tokens/scss/_tokens.scss +12 -0
  19. package/dist/tokens/scss/_tokens_custom_properties.scss +12 -0
  20. package/dist/tokens/tailwind/tokens.cjs +8 -0
  21. package/package.json +2 -2
  22. package/src/scss/variables.scss +0 -3
  23. package/src/tokens/build/css/tokens.css +12 -0
  24. package/src/tokens/build/css/tokens.dark.css +12 -0
  25. package/src/tokens/build/docs/tokens-tailwind-docs.dark.json +712 -0
  26. package/src/tokens/build/docs/tokens-tailwind-docs.json +712 -0
  27. package/src/tokens/build/figma/constants.tokens.json +164 -10
  28. package/src/tokens/build/figma/semantic.tokens.json +13 -0
  29. package/src/tokens/build/js/tokens.dark.js +39 -0
  30. package/src/tokens/build/js/tokens.js +39 -0
  31. package/src/tokens/build/json/tokens.dark.json +470 -20
  32. package/src/tokens/build/json/tokens.json +470 -20
  33. package/src/tokens/build/scss/_tokens.dark.scss +12 -0
  34. package/src/tokens/build/scss/_tokens.scss +12 -0
  35. package/src/tokens/build/scss/_tokens_custom_properties.scss +12 -0
  36. package/src/tokens/build/tailwind/tokens.cjs +34 -0
  37. package/src/tokens/constant/font.tokens.json +136 -0
  38. package/src/tokens/constant/line_height.tokens.json +30 -10
  39. package/src/tokens/semantic/font.tokens.json +15 -0
  40. package/tailwind.defaults.js +8 -21
@@ -420,6 +420,36 @@ const boxShadow = {
420
420
  md: 'var(--gl-shadow-md)',
421
421
  lg: 'var(--gl-shadow-lg)',
422
422
  };
423
+ const lineHeight = {
424
+ 12: 'var(--gl-line-height-12)',
425
+ 16: 'var(--gl-line-height-16)',
426
+ 20: 'var(--gl-line-height-20)',
427
+ 24: 'var(--gl-line-height-24)',
428
+ 28: 'var(--gl-line-height-28)',
429
+ 32: 'var(--gl-line-height-32)',
430
+ 36: 'var(--gl-line-height-36)',
431
+ 42: 'var(--gl-line-height-42)',
432
+ 44: 'var(--gl-line-height-44)',
433
+ 52: 'var(--gl-line-height-52)',
434
+ };
435
+ const fontFamily = {
436
+ regular: 'var(--gl-font-family-regular)',
437
+ monospace: 'var(--gl-font-family-monospace)',
438
+ };
439
+ const fontSize = {
440
+ xs: 'var(--gl-font-size-xs)',
441
+ sm: 'var(--gl-font-size-sm)',
442
+ md: 'var(--gl-font-size-md)',
443
+ lg: 'var(--gl-font-size-lg)',
444
+ base: 'var(--gl-font-size-base)',
445
+ };
446
+ const fontWeight = {
447
+ 100: 'var(--gl-font-weight-100)',
448
+ 300: 'var(--gl-font-weight-300)',
449
+ normal: 'var(--gl-font-weight-normal)',
450
+ semibold: 'var(--gl-font-weight-semibold)',
451
+ bold: 'var(--gl-font-weight-bold)',
452
+ };
423
453
 
424
454
  const colors = {
425
455
  inherit: 'inherit',
@@ -504,4 +534,8 @@ module.exports = {
504
534
  opacity,
505
535
  zIndex: zindexes,
506
536
  boxShadow,
537
+ lineHeight,
538
+ fontFamily,
539
+ fontSize,
540
+ fontWeight,
507
541
  };
@@ -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
  }
@@ -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,