@rocket.chat/fuselage-tokens 0.28.0 → 0.30.1
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/LICENSE +1 -1
- package/breakpoints.js +42 -7
- package/breakpoints.mjs +42 -7
- package/package.json +14 -9
- package/typography.js +42 -7
- package/typography.mjs +42 -7
package/LICENSE
CHANGED
package/breakpoints.js
CHANGED
|
@@ -1,11 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
xs: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
xs: {
|
|
5
|
+
name: 'xs',
|
|
6
|
+
minViewportWidth: null,
|
|
7
|
+
columns: 4,
|
|
8
|
+
gutterWidth: 16,
|
|
9
|
+
},
|
|
10
|
+
sm: {
|
|
11
|
+
name: 'sm',
|
|
12
|
+
minViewportWidth: 600,
|
|
13
|
+
columns: 8,
|
|
14
|
+
gutterWidth: 16,
|
|
15
|
+
},
|
|
16
|
+
md: {
|
|
17
|
+
name: 'md',
|
|
18
|
+
minViewportWidth: 768,
|
|
19
|
+
columns: 8,
|
|
20
|
+
gutterWidth: 24,
|
|
21
|
+
},
|
|
22
|
+
lg: {
|
|
23
|
+
name: 'lg',
|
|
24
|
+
minViewportWidth: 1024,
|
|
25
|
+
columns: 12,
|
|
26
|
+
gutterWidth: 24,
|
|
27
|
+
},
|
|
28
|
+
xl: {
|
|
29
|
+
name: 'xl',
|
|
30
|
+
minViewportWidth: 1280,
|
|
31
|
+
columns: 12,
|
|
32
|
+
gutterWidth: 24,
|
|
33
|
+
},
|
|
34
|
+
xxl: {
|
|
35
|
+
name: 'xxl',
|
|
36
|
+
minViewportWidth: 1600,
|
|
37
|
+
columns: 12,
|
|
38
|
+
gutterWidth: 24,
|
|
39
|
+
},
|
|
40
|
+
xxxl: {
|
|
41
|
+
name: 'xxxl',
|
|
42
|
+
minViewportWidth: 1920,
|
|
43
|
+
columns: 12,
|
|
44
|
+
gutterWidth: 24,
|
|
45
|
+
},
|
|
11
46
|
};
|
package/breakpoints.mjs
CHANGED
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
xs: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
xs: {
|
|
3
|
+
name: 'xs',
|
|
4
|
+
minViewportWidth: null,
|
|
5
|
+
columns: 4,
|
|
6
|
+
gutterWidth: 16,
|
|
7
|
+
},
|
|
8
|
+
sm: {
|
|
9
|
+
name: 'sm',
|
|
10
|
+
minViewportWidth: 600,
|
|
11
|
+
columns: 8,
|
|
12
|
+
gutterWidth: 16,
|
|
13
|
+
},
|
|
14
|
+
md: {
|
|
15
|
+
name: 'md',
|
|
16
|
+
minViewportWidth: 768,
|
|
17
|
+
columns: 8,
|
|
18
|
+
gutterWidth: 24,
|
|
19
|
+
},
|
|
20
|
+
lg: {
|
|
21
|
+
name: 'lg',
|
|
22
|
+
minViewportWidth: 1024,
|
|
23
|
+
columns: 12,
|
|
24
|
+
gutterWidth: 24,
|
|
25
|
+
},
|
|
26
|
+
xl: {
|
|
27
|
+
name: 'xl',
|
|
28
|
+
minViewportWidth: 1280,
|
|
29
|
+
columns: 12,
|
|
30
|
+
gutterWidth: 24,
|
|
31
|
+
},
|
|
32
|
+
xxl: {
|
|
33
|
+
name: 'xxl',
|
|
34
|
+
minViewportWidth: 1600,
|
|
35
|
+
columns: 12,
|
|
36
|
+
gutterWidth: 24,
|
|
37
|
+
},
|
|
38
|
+
xxxl: {
|
|
39
|
+
name: 'xxxl',
|
|
40
|
+
minViewportWidth: 1920,
|
|
41
|
+
columns: 12,
|
|
42
|
+
gutterWidth: 24,
|
|
43
|
+
},
|
|
9
44
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocket.chat/fuselage-tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "Design tokens for Fuselage, Rocket.Chat's design system",
|
|
5
5
|
"homepage": "https://rocketchat.github.io/Rocket.Chat.Fuselage/",
|
|
6
6
|
"author": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "
|
|
34
|
+
"build": "build-design-tokens",
|
|
35
35
|
"lint": "run-s .:lint:eslint .:lint:prettier",
|
|
36
36
|
".:lint:eslint": "eslint .",
|
|
37
37
|
".:lint:prettier": "prettier --check '**/*.{json,scss}'",
|
|
@@ -41,15 +41,20 @@
|
|
|
41
41
|
"lint-staged": "lint-staged"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@rocket.chat/eslint-config-alt": "^0.
|
|
45
|
-
"@rocket.chat/prettier-config": "^0.
|
|
46
|
-
"
|
|
44
|
+
"@rocket.chat/eslint-config-alt": "^0.30.0",
|
|
45
|
+
"@rocket.chat/prettier-config": "^0.30.0",
|
|
46
|
+
"build-design-tokens": "^0.30.0",
|
|
47
|
+
"eslint": "^7.32.0",
|
|
47
48
|
"eslint-config-prettier": "^8.3.0",
|
|
48
|
-
"eslint-plugin-import": "^2.
|
|
49
|
-
"eslint-plugin-prettier": "^
|
|
49
|
+
"eslint-plugin-import": "^2.24.2",
|
|
50
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
50
51
|
"lint-staged": "^11.0.0",
|
|
51
52
|
"npm-run-all": "^4.1.5",
|
|
52
|
-
"prettier": "^2.3.2"
|
|
53
|
+
"prettier": "^2.3.2",
|
|
54
|
+
"stylelint": "^13.13.1",
|
|
55
|
+
"stylelint-order": "^4.1.0",
|
|
56
|
+
"stylelint-prettier": "^1.2.0",
|
|
57
|
+
"stylelint-scss": "^3.21.0"
|
|
53
58
|
},
|
|
54
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "0cbfad9f3508f5cddbfc50eb7c4cb7ea4aba4aa2"
|
|
55
60
|
}
|
package/typography.js
CHANGED
|
@@ -29,13 +29,48 @@ module.exports = {
|
|
|
29
29
|
],
|
|
30
30
|
},
|
|
31
31
|
fontScales: {
|
|
32
|
-
h1: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
h1: {
|
|
33
|
+
fontSize: 22,
|
|
34
|
+
fontWeight: 400,
|
|
35
|
+
letterSpacing: 0,
|
|
36
|
+
lineHeight: 32,
|
|
37
|
+
},
|
|
38
|
+
s1: {
|
|
39
|
+
fontSize: 16,
|
|
40
|
+
fontWeight: 400,
|
|
41
|
+
letterSpacing: 0,
|
|
42
|
+
lineHeight: 22,
|
|
43
|
+
},
|
|
44
|
+
s2: {
|
|
45
|
+
fontSize: 16,
|
|
46
|
+
fontWeight: 500,
|
|
47
|
+
letterSpacing: 0,
|
|
48
|
+
lineHeight: 22,
|
|
49
|
+
},
|
|
50
|
+
p1: {
|
|
51
|
+
fontSize: 14,
|
|
52
|
+
fontWeight: 400,
|
|
53
|
+
letterSpacing: 0,
|
|
54
|
+
lineHeight: 20,
|
|
55
|
+
},
|
|
56
|
+
p2: {
|
|
57
|
+
fontSize: 14,
|
|
58
|
+
fontWeight: 500,
|
|
59
|
+
letterSpacing: 0,
|
|
60
|
+
lineHeight: 20,
|
|
61
|
+
},
|
|
62
|
+
c1: {
|
|
63
|
+
fontSize: 12,
|
|
64
|
+
fontWeight: 400,
|
|
65
|
+
letterSpacing: 0,
|
|
66
|
+
lineHeight: 16,
|
|
67
|
+
},
|
|
68
|
+
c2: {
|
|
69
|
+
fontSize: 12,
|
|
70
|
+
fontWeight: 600,
|
|
71
|
+
letterSpacing: 0,
|
|
72
|
+
lineHeight: 16,
|
|
73
|
+
},
|
|
39
74
|
micro: {
|
|
40
75
|
fontSize: 10,
|
|
41
76
|
fontWeight: 600,
|
package/typography.mjs
CHANGED
|
@@ -27,13 +27,48 @@ export default {
|
|
|
27
27
|
],
|
|
28
28
|
},
|
|
29
29
|
fontScales: {
|
|
30
|
-
h1: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
h1: {
|
|
31
|
+
fontSize: 22,
|
|
32
|
+
fontWeight: 400,
|
|
33
|
+
letterSpacing: 0,
|
|
34
|
+
lineHeight: 32,
|
|
35
|
+
},
|
|
36
|
+
s1: {
|
|
37
|
+
fontSize: 16,
|
|
38
|
+
fontWeight: 400,
|
|
39
|
+
letterSpacing: 0,
|
|
40
|
+
lineHeight: 22,
|
|
41
|
+
},
|
|
42
|
+
s2: {
|
|
43
|
+
fontSize: 16,
|
|
44
|
+
fontWeight: 500,
|
|
45
|
+
letterSpacing: 0,
|
|
46
|
+
lineHeight: 22,
|
|
47
|
+
},
|
|
48
|
+
p1: {
|
|
49
|
+
fontSize: 14,
|
|
50
|
+
fontWeight: 400,
|
|
51
|
+
letterSpacing: 0,
|
|
52
|
+
lineHeight: 20,
|
|
53
|
+
},
|
|
54
|
+
p2: {
|
|
55
|
+
fontSize: 14,
|
|
56
|
+
fontWeight: 500,
|
|
57
|
+
letterSpacing: 0,
|
|
58
|
+
lineHeight: 20,
|
|
59
|
+
},
|
|
60
|
+
c1: {
|
|
61
|
+
fontSize: 12,
|
|
62
|
+
fontWeight: 400,
|
|
63
|
+
letterSpacing: 0,
|
|
64
|
+
lineHeight: 16,
|
|
65
|
+
},
|
|
66
|
+
c2: {
|
|
67
|
+
fontSize: 12,
|
|
68
|
+
fontWeight: 600,
|
|
69
|
+
letterSpacing: 0,
|
|
70
|
+
lineHeight: 16,
|
|
71
|
+
},
|
|
37
72
|
micro: {
|
|
38
73
|
fontSize: 10,
|
|
39
74
|
fontWeight: 600,
|