@maggioli-design-system/styles 13.0.1 → 14.0.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.
- package/dist/css/base.css +2 -2
- package/dist/css/colors-hex-brand-synbee.css +2 -1
- package/dist/css/colors-hex-brand.css +2 -1
- package/dist/css/colors-hex-default.css +2 -1
- package/dist/css/colors-hex-label.css +2 -1
- package/dist/css/colors-hex-status.css +2 -1
- package/dist/css/colors-hex-synbee-v1.css +2 -1
- package/dist/css/colors-hex-tones.css +2 -1
- package/dist/css/colors-hex.css +2 -1
- package/dist/css/colors-rgb-brand-synbee.css +2 -1
- package/dist/css/colors-rgb-brand.css +2 -1
- package/dist/css/colors-rgb-default.css +2 -1
- package/dist/css/colors-rgb-label.css +2 -1
- package/dist/css/colors-rgb-status.css +2 -1
- package/dist/css/colors-rgb-synbee-v1.css +2 -1
- package/dist/css/colors-rgb-tones.css +2 -1
- package/dist/css/colors-rgb.css +2 -1
- package/package.json +2 -2
- package/tailwind.config.js +54 -94
package/dist/css/base.css
CHANGED
package/dist/css/colors-hex.css
CHANGED
package/dist/css/colors-rgb.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/styles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "This module contains SCSS and CSS styles used by Maggioli Design System, it also makes available a Tailwind config based on Maggioli design tokens.",
|
|
5
5
|
"main": "./tailwind.config.js",
|
|
6
6
|
"scripts": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@fontsource/merriweather": "5.0.8",
|
|
46
46
|
"@fontsource/roboto": "5.0.8",
|
|
47
47
|
"@fontsource/roboto-mono": "5.0.14",
|
|
48
|
-
"@maggioli-design-system/design-tokens": "
|
|
48
|
+
"@maggioli-design-system/design-tokens": "12.0.0",
|
|
49
49
|
"normalize.css": "8.0.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
package/tailwind.config.js
CHANGED
|
@@ -1,49 +1,24 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
2
|
const { palette } = require('@maggioli-design-system/design-tokens')
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const { fontFamily } = require('@maggioli-design-system/design-tokens/dist/js/tailwind-font-family.js')
|
|
4
|
+
const fontSizeMagma = require('@maggioli-design-system/design-tokens/dist/js/tailwind-font-size.js').fontSize
|
|
5
|
+
const {
|
|
6
|
+
aspectRatio,
|
|
7
|
+
border,
|
|
8
|
+
borderRadius,
|
|
9
|
+
boxShadow,
|
|
10
|
+
fontSize,
|
|
11
|
+
gap,
|
|
12
|
+
gridTemplateColumns,
|
|
13
|
+
margin,
|
|
14
|
+
padding,
|
|
15
|
+
size,
|
|
16
|
+
timingFunction,
|
|
17
|
+
transitionProperty,
|
|
18
|
+
} = require('@maggioli-design-system/design-tokens/dist/js/tailwind-props.js').properties
|
|
8
19
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
5: '1.25rem',
|
|
12
|
-
6: '1.5rem',
|
|
13
|
-
7: '1.75rem',
|
|
14
|
-
8: '2rem',
|
|
15
|
-
9: '2.25rem',
|
|
16
|
-
10: '2.5rem',
|
|
17
|
-
11: '2.75rem',
|
|
18
|
-
12: '3rem',
|
|
19
|
-
14: '3.5rem',
|
|
20
|
-
16: '4rem',
|
|
21
|
-
18: '4.5rem',
|
|
22
|
-
20: '5rem',
|
|
23
|
-
24: '6rem',
|
|
24
|
-
28: '7rem',
|
|
25
|
-
32: '8rem',
|
|
26
|
-
36: '9rem',
|
|
27
|
-
40: '10rem',
|
|
28
|
-
44: '11rem',
|
|
29
|
-
48: '12rem',
|
|
30
|
-
52: '13rem',
|
|
31
|
-
56: '14rem',
|
|
32
|
-
60: '15rem',
|
|
33
|
-
64: '16rem',
|
|
34
|
-
72: '18rem',
|
|
35
|
-
80: '20rem',
|
|
36
|
-
96: '24rem',
|
|
37
|
-
400: '400px',
|
|
38
|
-
500: '500px',
|
|
39
|
-
600: '600px',
|
|
40
|
-
700: '700px',
|
|
41
|
-
800: '800px',
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const paddingAndMargin = {
|
|
45
|
-
13: '3.25rem',
|
|
46
|
-
}
|
|
20
|
+
const { screens } = require('@maggioli-design-system/design-tokens/dist/js/tailwind-screens.js')
|
|
21
|
+
const { leading } = require('@maggioli-design-system/design-tokens/dist/js/tailwind-leading.js')
|
|
47
22
|
|
|
48
23
|
module.exports = {
|
|
49
24
|
important: true,
|
|
@@ -64,19 +39,31 @@ module.exports = {
|
|
|
64
39
|
fontFamily: {
|
|
65
40
|
...fontFamily,
|
|
66
41
|
},
|
|
42
|
+
lineHeight: {
|
|
43
|
+
...leading,
|
|
44
|
+
},
|
|
67
45
|
screens: {
|
|
68
|
-
...
|
|
46
|
+
...screens,
|
|
47
|
+
},
|
|
48
|
+
spacing: {
|
|
49
|
+
...size,
|
|
69
50
|
},
|
|
70
51
|
extend: {
|
|
52
|
+
aspectRatio: {
|
|
53
|
+
...aspectRatio,
|
|
54
|
+
},
|
|
55
|
+
borderRadius: {
|
|
56
|
+
...borderRadius,
|
|
57
|
+
},
|
|
58
|
+
borderWidth: {
|
|
59
|
+
...border,
|
|
60
|
+
},
|
|
71
61
|
boxShadow: {
|
|
72
|
-
|
|
73
|
-
'sharp-md': '0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06)',
|
|
74
|
-
sharp: '0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 3px 0 rgb(0 0 0 / 0.1)',
|
|
75
|
-
'sharp-sm': '0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05)',
|
|
62
|
+
...boxShadow,
|
|
76
63
|
},
|
|
77
64
|
fontSize: {
|
|
65
|
+
...fontSizeMagma,
|
|
78
66
|
...fontSize,
|
|
79
|
-
xxs: '0.625rem',
|
|
80
67
|
},
|
|
81
68
|
gap: {
|
|
82
69
|
...gap,
|
|
@@ -85,52 +72,28 @@ module.exports = {
|
|
|
85
72
|
1: '1fr',
|
|
86
73
|
},
|
|
87
74
|
gridTemplateColumns: {
|
|
88
|
-
|
|
89
|
-
'fit-md': 'repeat(auto-fit, minmax(15rem, 1fr))',
|
|
90
|
-
'fit-sm': 'repeat(auto-fit, minmax(10rem, 1fr))',
|
|
91
|
-
'fit-xl': 'repeat(auto-fit, minmax(20rem, 1fr))',
|
|
92
|
-
fit: 'repeat(auto-fit, minmax(12.5rem, 1fr))',
|
|
93
|
-
full: 'repeat(auto-fit, minmax(1px, 100%))',
|
|
94
|
-
},
|
|
95
|
-
maxWidth: {
|
|
96
|
-
'1/4': '25%',
|
|
97
|
-
'1/2': '50%',
|
|
98
|
-
'3/4': '75%',
|
|
99
|
-
1: '1rem',
|
|
100
|
-
2: '2rem',
|
|
101
|
-
3: '3rem',
|
|
102
|
-
4: '4rem',
|
|
103
|
-
5: '5rem',
|
|
104
|
-
6: '6rem',
|
|
105
|
-
7: '7rem',
|
|
106
|
-
8: '8rem',
|
|
107
|
-
9: '9rem',
|
|
108
|
-
10: '10rem',
|
|
109
|
-
11: '11rem',
|
|
110
|
-
12: '12rem',
|
|
111
|
-
phrase: '50ch',
|
|
112
|
-
text: '75ch',
|
|
113
|
-
title: '30ch',
|
|
75
|
+
...gridTemplateColumns,
|
|
114
76
|
},
|
|
115
77
|
height: {
|
|
116
|
-
|
|
78
|
+
...size,
|
|
79
|
+
},
|
|
80
|
+
maxHeight: {
|
|
81
|
+
...size,
|
|
82
|
+
},
|
|
83
|
+
maxWidth: {
|
|
84
|
+
...size,
|
|
117
85
|
},
|
|
118
86
|
minHeight: {
|
|
119
|
-
...
|
|
87
|
+
...size,
|
|
120
88
|
},
|
|
121
89
|
minWidth: {
|
|
122
|
-
...
|
|
123
|
-
},
|
|
124
|
-
padding: {
|
|
125
|
-
'1/1': '100%',
|
|
126
|
-
'16/9': '56.25%',
|
|
127
|
-
'3/2': '66.67%',
|
|
128
|
-
'4/3': '75%',
|
|
129
|
-
'5/4': '80%',
|
|
130
|
-
...paddingAndMargin,
|
|
90
|
+
...size,
|
|
131
91
|
},
|
|
132
92
|
margin: {
|
|
133
|
-
...
|
|
93
|
+
...margin,
|
|
94
|
+
},
|
|
95
|
+
padding: {
|
|
96
|
+
...padding,
|
|
134
97
|
},
|
|
135
98
|
overflow: {
|
|
136
99
|
inherit: 'inherit',
|
|
@@ -138,17 +101,14 @@ module.exports = {
|
|
|
138
101
|
textOverflow: {
|
|
139
102
|
inherit: 'inherit',
|
|
140
103
|
},
|
|
141
|
-
transitionProperty
|
|
142
|
-
|
|
143
|
-
size: 'height, margin, padding, width',
|
|
104
|
+
transitionProperty: {
|
|
105
|
+
...transitionProperty,
|
|
144
106
|
},
|
|
145
107
|
transitionTimingFunction: {
|
|
146
|
-
...
|
|
108
|
+
...timingFunction,
|
|
147
109
|
},
|
|
148
110
|
width: {
|
|
149
|
-
|
|
150
|
-
text: '75ch',
|
|
151
|
-
title: '30ch',
|
|
111
|
+
...size,
|
|
152
112
|
},
|
|
153
113
|
},
|
|
154
114
|
},
|