@rocket.chat/fuselage-tokens 0.6.3-dev.46 → 0.6.3-dev.462

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.
package/typography.js CHANGED
@@ -1,66 +1,106 @@
1
- const fontSans = [
2
- 'Inter',
3
- '-apple-system',
4
- 'BlinkMacSystemFont',
5
- 'Segoe UI',
6
- 'Roboto',
7
- 'Oxygen',
8
- 'Ubuntu',
9
- 'Cantarell',
10
- 'Helvetica Neue',
11
- 'Apple Color Emoji',
12
- 'Segoe UI Emoji',
13
- 'Segoe UI Symbol',
14
- 'Meiryo UI',
15
- 'Arial',
16
- 'sans-serif'
17
- ];
1
+ 'use strict';
18
2
 
19
- const fontMono = [
20
- 'Menlo',
21
- 'Monaco',
22
- 'Consolas',
23
- 'Liberation Mono',
24
- 'Courier New',
25
- 'monospace'
26
- ];
27
-
28
- export default {
3
+ module.exports = {
29
4
  fontFamilies: {
30
- sans: fontSans,
31
- mono: fontMono,
5
+ sans: [
6
+ 'Inter',
7
+ '-apple-system',
8
+ 'BlinkMacSystemFont',
9
+ 'Segoe UI',
10
+ 'Roboto',
11
+ 'Oxygen',
12
+ 'Ubuntu',
13
+ 'Cantarell',
14
+ 'Helvetica Neue',
15
+ 'Apple Color Emoji',
16
+ 'Segoe UI Emoji',
17
+ 'Segoe UI Symbol',
18
+ 'Meiryo UI',
19
+ 'Arial',
20
+ 'sans-serif',
21
+ ],
22
+ mono: [
23
+ 'Menlo',
24
+ 'Monaco',
25
+ 'Consolas',
26
+ 'Liberation Mono',
27
+ 'Courier New',
28
+ 'monospace',
29
+ ],
32
30
  },
33
31
  fontScales: {
32
+ hero: {
33
+ fontSize: 48,
34
+ fontWeight: 800,
35
+ letterSpacing: 0,
36
+ lineHeight: 64,
37
+ },
34
38
  h1: {
35
- fontSize: 22,
36
- fontWeight: 400,
39
+ fontSize: 32,
40
+ fontWeight: 700,
41
+ letterSpacing: 0,
42
+ lineHeight: 40,
43
+ },
44
+ h2: {
45
+ fontSize: 24,
46
+ fontWeight: 700,
37
47
  letterSpacing: 0,
38
48
  lineHeight: 32,
39
49
  },
40
- s1: {
50
+ h3: {
51
+ fontSize: 20,
52
+ fontWeight: 700,
53
+ letterSpacing: 0,
54
+ lineHeight: 28,
55
+ },
56
+ h4: {
57
+ fontSize: 16,
58
+ fontWeight: 700,
59
+ letterSpacing: 0,
60
+ lineHeight: 24,
61
+ },
62
+ h5: {
63
+ fontSize: 14,
64
+ fontWeight: 700,
65
+ letterSpacing: 0,
66
+ lineHeight: 20,
67
+ },
68
+ p1: {
41
69
  fontSize: 16,
42
70
  fontWeight: 400,
43
71
  letterSpacing: 0,
44
- lineHeight: 22,
72
+ lineHeight: 24,
45
73
  },
46
- s2: {
74
+ p1m: {
47
75
  fontSize: 16,
48
76
  fontWeight: 500,
49
77
  letterSpacing: 0,
50
- lineHeight: 22,
78
+ lineHeight: 24,
51
79
  },
52
- p1: {
80
+ p1b: {
81
+ fontSize: 16,
82
+ fontWeight: 700,
83
+ letterSpacing: 0,
84
+ lineHeight: 24,
85
+ },
86
+ p2: {
53
87
  fontSize: 14,
54
88
  fontWeight: 400,
55
89
  letterSpacing: 0,
56
90
  lineHeight: 20,
57
91
  },
58
- p2: {
92
+ p2m: {
59
93
  fontSize: 14,
60
94
  fontWeight: 500,
61
95
  letterSpacing: 0,
62
96
  lineHeight: 20,
63
97
  },
98
+ p2b: {
99
+ fontSize: 14,
100
+ fontWeight: 700,
101
+ letterSpacing: 0,
102
+ lineHeight: 20,
103
+ },
64
104
  c1: {
65
105
  fontSize: 12,
66
106
  fontWeight: 400,
@@ -69,15 +109,15 @@ export default {
69
109
  },
70
110
  c2: {
71
111
  fontSize: 12,
72
- fontWeight: 600,
112
+ fontWeight: 700,
73
113
  letterSpacing: 0,
74
114
  lineHeight: 16,
75
115
  },
76
116
  micro: {
77
117
  fontSize: 10,
78
- fontWeight: 600,
79
- letterSpacing: 0.2,
118
+ fontWeight: 700,
119
+ letterSpacing: 0,
80
120
  lineHeight: 12,
81
121
  },
82
122
  },
83
- }
123
+ };
@@ -0,0 +1,121 @@
1
+ {
2
+ "fontFamilies": {
3
+ "sans": [
4
+ "Inter",
5
+ "-apple-system",
6
+ "BlinkMacSystemFont",
7
+ "Segoe UI",
8
+ "Roboto",
9
+ "Oxygen",
10
+ "Ubuntu",
11
+ "Cantarell",
12
+ "Helvetica Neue",
13
+ "Apple Color Emoji",
14
+ "Segoe UI Emoji",
15
+ "Segoe UI Symbol",
16
+ "Meiryo UI",
17
+ "Arial",
18
+ "sans-serif"
19
+ ],
20
+ "mono": [
21
+ "Menlo",
22
+ "Monaco",
23
+ "Consolas",
24
+ "Liberation Mono",
25
+ "Courier New",
26
+ "monospace"
27
+ ]
28
+ },
29
+ "fontScales": {
30
+ "hero": {
31
+ "fontSize": 48,
32
+ "fontWeight": 800,
33
+ "letterSpacing": 0,
34
+ "lineHeight": 64
35
+ },
36
+ "h1": {
37
+ "fontSize": 32,
38
+ "fontWeight": 700,
39
+ "letterSpacing": 0,
40
+ "lineHeight": 40
41
+ },
42
+ "h2": {
43
+ "fontSize": 24,
44
+ "fontWeight": 700,
45
+ "letterSpacing": 0,
46
+ "lineHeight": 32
47
+ },
48
+ "h3": {
49
+ "fontSize": 20,
50
+ "fontWeight": 700,
51
+ "letterSpacing": 0,
52
+ "lineHeight": 28
53
+ },
54
+ "h4": {
55
+ "fontSize": 16,
56
+ "fontWeight": 700,
57
+ "letterSpacing": 0,
58
+ "lineHeight": 24
59
+ },
60
+ "h5": {
61
+ "fontSize": 14,
62
+ "fontWeight": 700,
63
+ "letterSpacing": 0,
64
+ "lineHeight": 20
65
+ },
66
+ "p1": {
67
+ "fontSize": 16,
68
+ "fontWeight": 400,
69
+ "letterSpacing": 0,
70
+ "lineHeight": 24
71
+ },
72
+ "p1m": {
73
+ "fontSize": 16,
74
+ "fontWeight": 500,
75
+ "letterSpacing": 0,
76
+ "lineHeight": 24
77
+ },
78
+ "p1b": {
79
+ "fontSize": 16,
80
+ "fontWeight": 700,
81
+ "letterSpacing": 0,
82
+ "lineHeight": 24
83
+ },
84
+ "p2": {
85
+ "fontSize": 14,
86
+ "fontWeight": 400,
87
+ "letterSpacing": 0,
88
+ "lineHeight": 20
89
+ },
90
+ "p2m": {
91
+ "fontSize": 14,
92
+ "fontWeight": 500,
93
+ "letterSpacing": 0,
94
+ "lineHeight": 20
95
+ },
96
+ "p2b": {
97
+ "fontSize": 14,
98
+ "fontWeight": 700,
99
+ "letterSpacing": 0,
100
+ "lineHeight": 20
101
+ },
102
+ "c1": {
103
+ "fontSize": 12,
104
+ "fontWeight": 400,
105
+ "letterSpacing": 0,
106
+ "lineHeight": 16
107
+ },
108
+ "c2": {
109
+ "fontSize": 12,
110
+ "fontWeight": 700,
111
+ "letterSpacing": 0,
112
+ "lineHeight": 16
113
+ },
114
+ "micro": {
115
+ "fontSize": 10,
116
+ "fontWeight": 700,
117
+ "letterSpacing": 0,
118
+ "lineHeight": 12
119
+ }
120
+ }
121
+ }
package/typography.mjs ADDED
@@ -0,0 +1,121 @@
1
+ export default {
2
+ fontFamilies: {
3
+ sans: [
4
+ 'Inter',
5
+ '-apple-system',
6
+ 'BlinkMacSystemFont',
7
+ 'Segoe UI',
8
+ 'Roboto',
9
+ 'Oxygen',
10
+ 'Ubuntu',
11
+ 'Cantarell',
12
+ 'Helvetica Neue',
13
+ 'Apple Color Emoji',
14
+ 'Segoe UI Emoji',
15
+ 'Segoe UI Symbol',
16
+ 'Meiryo UI',
17
+ 'Arial',
18
+ 'sans-serif',
19
+ ],
20
+ mono: [
21
+ 'Menlo',
22
+ 'Monaco',
23
+ 'Consolas',
24
+ 'Liberation Mono',
25
+ 'Courier New',
26
+ 'monospace',
27
+ ],
28
+ },
29
+ fontScales: {
30
+ hero: {
31
+ fontSize: 48,
32
+ fontWeight: 800,
33
+ letterSpacing: 0,
34
+ lineHeight: 64,
35
+ },
36
+ h1: {
37
+ fontSize: 32,
38
+ fontWeight: 700,
39
+ letterSpacing: 0,
40
+ lineHeight: 40,
41
+ },
42
+ h2: {
43
+ fontSize: 24,
44
+ fontWeight: 700,
45
+ letterSpacing: 0,
46
+ lineHeight: 32,
47
+ },
48
+ h3: {
49
+ fontSize: 20,
50
+ fontWeight: 700,
51
+ letterSpacing: 0,
52
+ lineHeight: 28,
53
+ },
54
+ h4: {
55
+ fontSize: 16,
56
+ fontWeight: 700,
57
+ letterSpacing: 0,
58
+ lineHeight: 24,
59
+ },
60
+ h5: {
61
+ fontSize: 14,
62
+ fontWeight: 700,
63
+ letterSpacing: 0,
64
+ lineHeight: 20,
65
+ },
66
+ p1: {
67
+ fontSize: 16,
68
+ fontWeight: 400,
69
+ letterSpacing: 0,
70
+ lineHeight: 24,
71
+ },
72
+ p1m: {
73
+ fontSize: 16,
74
+ fontWeight: 500,
75
+ letterSpacing: 0,
76
+ lineHeight: 24,
77
+ },
78
+ p1b: {
79
+ fontSize: 16,
80
+ fontWeight: 700,
81
+ letterSpacing: 0,
82
+ lineHeight: 24,
83
+ },
84
+ p2: {
85
+ fontSize: 14,
86
+ fontWeight: 400,
87
+ letterSpacing: 0,
88
+ lineHeight: 20,
89
+ },
90
+ p2m: {
91
+ fontSize: 14,
92
+ fontWeight: 500,
93
+ letterSpacing: 0,
94
+ lineHeight: 20,
95
+ },
96
+ p2b: {
97
+ fontSize: 14,
98
+ fontWeight: 700,
99
+ letterSpacing: 0,
100
+ lineHeight: 20,
101
+ },
102
+ c1: {
103
+ fontSize: 12,
104
+ fontWeight: 400,
105
+ letterSpacing: 0,
106
+ lineHeight: 16,
107
+ },
108
+ c2: {
109
+ fontSize: 12,
110
+ fontWeight: 700,
111
+ letterSpacing: 0,
112
+ lineHeight: 16,
113
+ },
114
+ micro: {
115
+ fontSize: 10,
116
+ fontWeight: 700,
117
+ letterSpacing: 0,
118
+ lineHeight: 12,
119
+ },
120
+ },
121
+ };
package/typography.scss CHANGED
@@ -1,64 +1,103 @@
1
- $-font-sans:
2
- Inter,
3
- -apple-system,
4
- BlinkMacSystemFont,
5
- 'Segoe UI',
6
- Roboto,
7
- Oxygen,
8
- Ubuntu,
9
- Cantarell,
10
- 'Helvetica Neue',
11
- 'Apple Color Emoji',
12
- 'Segoe UI Emoji',
13
- 'Segoe UI Symbol',
14
- 'Meiryo UI',
15
- Arial,
16
- sans-serif;
17
-
18
- $-font-mono:
19
- Menlo,
20
- Monaco,
21
- Consolas,
22
- 'Liberation Mono',
23
- 'Courier New',
24
- monospace;
25
-
26
1
  $font-families: (
27
- sans: $-font-sans,
28
- mono: $-font-mono,
2
+ sans: (
3
+ Inter,
4
+ -apple-system,
5
+ BlinkMacSystemFont,
6
+ 'Segoe UI',
7
+ Roboto,
8
+ Oxygen,
9
+ Ubuntu,
10
+ Cantarell,
11
+ 'Helvetica Neue',
12
+ 'Apple Color Emoji',
13
+ 'Segoe UI Emoji',
14
+ 'Segoe UI Symbol',
15
+ 'Meiryo UI',
16
+ Arial,
17
+ sans-serif,
18
+ ),
19
+ mono: (
20
+ Menlo,
21
+ Monaco,
22
+ Consolas,
23
+ 'Liberation Mono',
24
+ 'Courier New',
25
+ monospace,
26
+ ),
29
27
  );
30
-
31
28
  $font-scales: (
29
+ hero: (
30
+ font-size: 48,
31
+ font-weight: 800,
32
+ letter-spacing: 0,
33
+ line-height: 64,
34
+ ),
32
35
  h1: (
33
- font-size: 22,
34
- font-weight: 400,
36
+ font-size: 32,
37
+ font-weight: 700,
38
+ letter-spacing: 0,
39
+ line-height: 40,
40
+ ),
41
+ h2: (
42
+ font-size: 24,
43
+ font-weight: 700,
35
44
  letter-spacing: 0,
36
45
  line-height: 32,
37
46
  ),
38
- s1: (
47
+ h3: (
48
+ font-size: 20,
49
+ font-weight: 700,
50
+ letter-spacing: 0,
51
+ line-height: 28,
52
+ ),
53
+ h4: (
54
+ font-size: 16,
55
+ font-weight: 700,
56
+ letter-spacing: 0,
57
+ line-height: 24,
58
+ ),
59
+ h5: (
60
+ font-size: 14,
61
+ font-weight: 700,
62
+ letter-spacing: 0,
63
+ line-height: 20,
64
+ ),
65
+ p1: (
39
66
  font-size: 16,
40
67
  font-weight: 400,
41
68
  letter-spacing: 0,
42
- line-height: 22,
69
+ line-height: 24,
43
70
  ),
44
- s2: (
71
+ p1m: (
45
72
  font-size: 16,
46
73
  font-weight: 500,
47
74
  letter-spacing: 0,
48
- line-height: 22,
75
+ line-height: 24,
49
76
  ),
50
- p1: (
77
+ p1b: (
78
+ font-size: 16,
79
+ font-weight: 700,
80
+ letter-spacing: 0,
81
+ line-height: 24,
82
+ ),
83
+ p2: (
51
84
  font-size: 14,
52
85
  font-weight: 400,
53
86
  letter-spacing: 0,
54
87
  line-height: 20,
55
88
  ),
56
- p2: (
89
+ p2m: (
57
90
  font-size: 14,
58
91
  font-weight: 500,
59
92
  letter-spacing: 0,
60
93
  line-height: 20,
61
94
  ),
95
+ p2b: (
96
+ font-size: 14,
97
+ font-weight: 700,
98
+ letter-spacing: 0,
99
+ line-height: 20,
100
+ ),
62
101
  c1: (
63
102
  font-size: 12,
64
103
  font-weight: 400,
@@ -67,14 +106,14 @@ $font-scales: (
67
106
  ),
68
107
  c2: (
69
108
  font-size: 12,
70
- font-weight: 600,
109
+ font-weight: 700,
71
110
  letter-spacing: 0,
72
111
  line-height: 16,
73
112
  ),
74
113
  micro: (
75
114
  font-size: 10,
76
- font-weight: 600,
77
- letter-spacing: 0.2,
115
+ font-weight: 700,
116
+ letter-spacing: 0,
78
117
  line-height: 12,
79
118
  ),
80
119
  );