@rocket.chat/fuselage-tokens 0.31.14-dev.2 → 0.32.0-dev.2

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.
@@ -0,0 +1,121 @@
1
+ module.exports = {
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
+ };
@@ -118,4 +118,4 @@
118
118
  "lineHeight": 12
119
119
  }
120
120
  }
121
- }
121
+ }
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ $font-families:
2
+ (sans:(Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Meiryo UI",Arial,sans-serif),mono:(Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace));$font-scales:
3
+ (hero:(font-size:48,font-weight:800,letter-spacing:0,line-height:64),h1:(font-size:32,font-weight:700,letter-spacing:0,line-height:40),h2:(font-size:24,font-weight:700,letter-spacing:0,line-height:32),h3:(font-size:20,font-weight:700,letter-spacing:0,line-height:28),h4:(font-size:16,font-weight:700,letter-spacing:0,line-height:24),h5:(font-size:14,font-weight:700,letter-spacing:0,line-height:20),p1:(font-size:16,font-weight:400,letter-spacing:0,line-height:24),p1m:(font-size:16,font-weight:500,letter-spacing:0,line-height:24),p1b:(font-size:16,font-weight:700,letter-spacing:0,line-height:24),p2:(font-size:14,font-weight:400,letter-spacing:0,line-height:20),p2m:(font-size:14,font-weight:500,letter-spacing:0,line-height:20),p2b:(font-size:14,font-weight:700,letter-spacing:0,line-height:20),c1:(font-size:12,font-weight:400,letter-spacing:0,line-height:16),c2:(font-size:12,font-weight:700,letter-spacing:0,line-height:16),micro:(font-size:10,font-weight:700,letter-spacing:0,line-height:12));
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@rocket.chat/fuselage-tokens",
3
- "version": "0.31.14-dev.2",
3
+ "version": "0.32.0-dev.2",
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": {
7
7
  "name": "Rocket.Chat",
8
8
  "url": "https://rocket.chat/"
9
9
  },
10
+ "module": "dist/esm/index.js",
11
+ "types": "dist/esm/index.d.ts",
10
12
  "license": "MIT",
11
13
  "repository": {
12
14
  "type": "git",
@@ -23,23 +25,25 @@
23
25
  "rocket.chat"
24
26
  ],
25
27
  "files": [
26
- "/breakpoints.*",
27
- "/colors.*",
28
- "/typography.*"
28
+ "dist/breakpoints.*",
29
+ "dist/colors.*",
30
+ "dist/typography.*"
29
31
  ],
30
32
  "publishConfig": {
31
33
  "access": "public"
32
34
  },
33
35
  "scripts": {
34
- "build": "build-design-tokens",
35
- "lint": "lint",
36
- "lint-and-fix": "lint-and-fix",
37
- "lint-staged": "lint-staged",
36
+ "build": "run-s .:build:clean .:build:legacy .:build",
37
+ ".:build": "node ./build --config ./config.js",
38
+ ".:build:legacy": "build-design-tokens",
39
+ ".:build:clean": "rimraf dist",
40
+ ".:build:esm": "tsc -p tsconfig.json",
41
+ ".:build:cjs": "tsc -p tsconfig-cjs.json",
38
42
  "bump-next": "bump-next"
39
43
  },
40
44
  "devDependencies": {
41
- "@rocket.chat/eslint-config-alt": "~0.31.14-dev.2",
42
- "@rocket.chat/prettier-config": "~0.31.14-dev.2",
45
+ "@rocket.chat/eslint-config-alt": "~0.31.14-dev.5",
46
+ "@rocket.chat/prettier-config": "~0.31.14-dev.5",
43
47
  "build-design-tokens": "~0.31.13",
44
48
  "bump": "~0.31.13",
45
49
  "eslint": "~8.8.0",
@@ -51,9 +55,12 @@
51
55
  "npm-run-all": "^4.1.5",
52
56
  "postcss-scss": "~4.0.3",
53
57
  "prettier": "~2.5.1",
58
+ "rimraf": "^3.0.2",
59
+ "style-dictionary": "~3.7.0",
54
60
  "stylelint": "~14.5.0",
55
61
  "stylelint-order": "~5.0.0",
56
62
  "stylelint-prettier": "~2.0.0",
57
- "stylelint-scss": "~4.1.0"
63
+ "stylelint-scss": "~4.1.0",
64
+ "typescript": "~4.3.5"
58
65
  }
59
66
  }
package/breakpoints.js DELETED
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
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
- },
46
- };
package/breakpoints.json DELETED
@@ -1,44 +0,0 @@
1
- [
2
- {
3
- "name": "xs",
4
- "minViewportWidth": null,
5
- "columns": 4,
6
- "gutterWidth": 16
7
- },
8
- {
9
- "name": "sm",
10
- "minViewportWidth": 600,
11
- "columns": 8,
12
- "gutterWidth": 16
13
- },
14
- {
15
- "name": "md",
16
- "minViewportWidth": 768,
17
- "columns": 8,
18
- "gutterWidth": 24
19
- },
20
- {
21
- "name": "lg",
22
- "minViewportWidth": 1024,
23
- "columns": 12,
24
- "gutterWidth": 24
25
- },
26
- {
27
- "name": "xl",
28
- "minViewportWidth": 1280,
29
- "columns": 12,
30
- "gutterWidth": 24
31
- },
32
- {
33
- "name": "xxl",
34
- "minViewportWidth": 1600,
35
- "columns": 12,
36
- "gutterWidth": 24
37
- },
38
- {
39
- "name": "xxxl",
40
- "minViewportWidth": 1920,
41
- "columns": 12,
42
- "gutterWidth": 24
43
- }
44
- ]
package/breakpoints.mjs DELETED
@@ -1,44 +0,0 @@
1
- export default {
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
- },
44
- };
package/breakpoints.scss DELETED
@@ -1,44 +0,0 @@
1
- $breakpoints: (
2
- xs: (
3
- name: xs,
4
- min-viewport-width: null,
5
- columns: 4,
6
- gutter-width: 16,
7
- ),
8
- sm: (
9
- name: sm,
10
- min-viewport-width: 600,
11
- columns: 8,
12
- gutter-width: 16,
13
- ),
14
- md: (
15
- name: md,
16
- min-viewport-width: 768,
17
- columns: 8,
18
- gutter-width: 24,
19
- ),
20
- lg: (
21
- name: lg,
22
- min-viewport-width: 1024,
23
- columns: 12,
24
- gutter-width: 24,
25
- ),
26
- xl: (
27
- name: xl,
28
- min-viewport-width: 1280,
29
- columns: 12,
30
- gutter-width: 24,
31
- ),
32
- xxl: (
33
- name: xxl,
34
- min-viewport-width: 1600,
35
- columns: 12,
36
- gutter-width: 24,
37
- ),
38
- xxxl: (
39
- name: xxxl,
40
- min-viewport-width: 1920,
41
- columns: 12,
42
- gutter-width: 24,
43
- ),
44
- );
package/colors.js DELETED
@@ -1,68 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- n100: '#f7f8fa',
5
- n200: '#f2f3f5',
6
- n300: '#eeeff1',
7
- n400: '#e4e7ea',
8
- n500: '#cbced1',
9
- n600: '#9ea2a8',
10
- n700: '#6c727a',
11
- n800: '#2f343d',
12
- n900: '#1f2329',
13
- b100: '#e8f2ff',
14
- b200: '#d1ebfe',
15
- b300: '#76b7fc',
16
- b400: '#549df9',
17
- b500: '#1d74f5',
18
- b600: '#095ad2',
19
- b700: '#10529e',
20
- b800: '#01336b',
21
- b900: '#012247',
22
- g100: '#e5fbf4',
23
- g200: '#c0f6e4',
24
- g300: '#96f0d2',
25
- g400: '#6ce9c0',
26
- g500: '#2de0a5',
27
- g600: '#1ecb92',
28
- g700: '#19ac7c',
29
- g800: '#158d65',
30
- g900: '#106d4f',
31
- r100: '#fddade',
32
- r200: '#fbb5be',
33
- r300: '#f98f9d',
34
- r400: '#f76a7d',
35
- r500: '#f5455c',
36
- r600: '#db0c27',
37
- r700: '#b30a20',
38
- r800: '#8b0719',
39
- r900: '#630512',
40
- y100: '#fff6d6',
41
- y200: '#ffecad',
42
- y300: '#ffe383',
43
- y400: '#ffd95a',
44
- y500: '#ffd031',
45
- y600: '#f3be08',
46
- y700: '#dfac00',
47
- y800: '#b68d00',
48
- y900: '#8e6d00',
49
- p100: '#f9effc',
50
- p200: '#edd0f7',
51
- p300: '#dca0ef',
52
- p400: '#ca71e7',
53
- p500: '#9f22c7',
54
- p600: '#7f1b9f',
55
- p700: '#5f1477',
56
- p800: '#4a105d',
57
- p900: '#350b42',
58
- o100: '#fde8d7',
59
- o200: '#fad1b0',
60
- o300: '#f7b27b',
61
- o400: '#f59b53',
62
- o500: '#f38c39',
63
- o600: '#e26d0e',
64
- o700: '#bd5a0b',
65
- o800: '#974809',
66
- o900: '#713607',
67
- white: '#ffffff',
68
- };
package/colors.json DELETED
@@ -1,66 +0,0 @@
1
- {
2
- "n100": "#f7f8fa",
3
- "n200": "#f2f3f5",
4
- "n300": "#eeeff1",
5
- "n400": "#e4e7ea",
6
- "n500": "#cbced1",
7
- "n600": "#9ea2a8",
8
- "n700": "#6c727a",
9
- "n800": "#2f343d",
10
- "n900": "#1f2329",
11
- "b100": "#e8f2ff",
12
- "b200": "#d1ebfe",
13
- "b300": "#76b7fc",
14
- "b400": "#549df9",
15
- "b500": "#1d74f5",
16
- "b600": "#095ad2",
17
- "b700": "#10529e",
18
- "b800": "#01336b",
19
- "b900": "#012247",
20
- "g100": "#e5fbf4",
21
- "g200": "#c0f6e4",
22
- "g300": "#96f0d2",
23
- "g400": "#6ce9c0",
24
- "g500": "#2de0a5",
25
- "g600": "#1ecb92",
26
- "g700": "#19ac7c",
27
- "g800": "#158d65",
28
- "g900": "#106d4f",
29
- "r100": "#fddade",
30
- "r200": "#fbb5be",
31
- "r300": "#f98f9d",
32
- "r400": "#f76a7d",
33
- "r500": "#f5455c",
34
- "r600": "#db0c27",
35
- "r700": "#b30a20",
36
- "r800": "#8b0719",
37
- "r900": "#630512",
38
- "y100": "#fff6d6",
39
- "y200": "#ffecad",
40
- "y300": "#ffe383",
41
- "y400": "#ffd95a",
42
- "y500": "#ffd031",
43
- "y600": "#f3be08",
44
- "y700": "#dfac00",
45
- "y800": "#b68d00",
46
- "y900": "#8e6d00",
47
- "p100": "#f9effc",
48
- "p200": "#edd0f7",
49
- "p300": "#dca0ef",
50
- "p400": "#ca71e7",
51
- "p500": "#9f22c7",
52
- "p600": "#7f1b9f",
53
- "p700": "#5f1477",
54
- "p800": "#4a105d",
55
- "p900": "#350b42",
56
- "o100": "#fde8d7",
57
- "o200": "#fad1b0",
58
- "o300": "#f7b27b",
59
- "o400": "#f59b53",
60
- "o500": "#f38c39",
61
- "o600": "#e26d0e",
62
- "o700": "#bd5a0b",
63
- "o800": "#974809",
64
- "o900": "#713607",
65
- "white": "#ffffff"
66
- }
package/colors.mjs DELETED
@@ -1,66 +0,0 @@
1
- export default {
2
- n100: '#f7f8fa',
3
- n200: '#f2f3f5',
4
- n300: '#eeeff1',
5
- n400: '#e4e7ea',
6
- n500: '#cbced1',
7
- n600: '#9ea2a8',
8
- n700: '#6c727a',
9
- n800: '#2f343d',
10
- n900: '#1f2329',
11
- b100: '#e8f2ff',
12
- b200: '#d1ebfe',
13
- b300: '#76b7fc',
14
- b400: '#549df9',
15
- b500: '#1d74f5',
16
- b600: '#095ad2',
17
- b700: '#10529e',
18
- b800: '#01336b',
19
- b900: '#012247',
20
- g100: '#e5fbf4',
21
- g200: '#c0f6e4',
22
- g300: '#96f0d2',
23
- g400: '#6ce9c0',
24
- g500: '#2de0a5',
25
- g600: '#1ecb92',
26
- g700: '#19ac7c',
27
- g800: '#158d65',
28
- g900: '#106d4f',
29
- r100: '#fddade',
30
- r200: '#fbb5be',
31
- r300: '#f98f9d',
32
- r400: '#f76a7d',
33
- r500: '#f5455c',
34
- r600: '#db0c27',
35
- r700: '#b30a20',
36
- r800: '#8b0719',
37
- r900: '#630512',
38
- y100: '#fff6d6',
39
- y200: '#ffecad',
40
- y300: '#ffe383',
41
- y400: '#ffd95a',
42
- y500: '#ffd031',
43
- y600: '#f3be08',
44
- y700: '#dfac00',
45
- y800: '#b68d00',
46
- y900: '#8e6d00',
47
- p100: '#f9effc',
48
- p200: '#edd0f7',
49
- p300: '#dca0ef',
50
- p400: '#ca71e7',
51
- p500: '#9f22c7',
52
- p600: '#7f1b9f',
53
- p700: '#5f1477',
54
- p800: '#4a105d',
55
- p900: '#350b42',
56
- o100: '#fde8d7',
57
- o200: '#fad1b0',
58
- o300: '#f7b27b',
59
- o400: '#f59b53',
60
- o500: '#f38c39',
61
- o600: '#e26d0e',
62
- o700: '#bd5a0b',
63
- o800: '#974809',
64
- o900: '#713607',
65
- white: '#ffffff',
66
- };