@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 CHANGED
@@ -7,7 +7,7 @@ html {
7
7
  }
8
8
  body,
9
9
  html{
10
- margin: 0px;
10
+ margin: 0rem;
11
11
  }
12
12
  body{
13
13
  font-size: 16px;
@@ -96,5 +96,5 @@ h4,
96
96
  h5,
97
97
  h6,
98
98
  p{
99
- margin: 0px;
99
+ margin: 0rem;
100
100
  }
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:49 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:49 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:49 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:49 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
@@ -1,7 +1,8 @@
1
1
  /*
2
+ @magma-design-system/design-tokens v12.0.0
2
3
  Generated by Style Dictionary
3
4
  Do not edit directly
4
- Generated at Mon, 13 Nov 2023 16:09:49 GMT
5
+ Generated at Wed, 20 Dec 2023 08:18:48 GMT
5
6
  */
6
7
 
7
8
  :root {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/styles",
3
- "version": "13.0.1",
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": "11.0.1",
48
+ "@maggioli-design-system/design-tokens": "12.0.0",
49
49
  "normalize.css": "8.0.1"
50
50
  },
51
51
  "devDependencies": {
@@ -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 mediaQueries = require('@maggioli-design-system/design-tokens/dist/js/media').media
4
- const { fontFamily } = require('@maggioli-design-system/design-tokens/dist/js/tailwind-font-family')
5
- const { fontSize } = require('@maggioli-design-system/design-tokens/dist/js/tailwind-font-size')
6
- const { ease } = require('@maggioli-design-system/design-tokens/dist/js/ease')
7
- const { gap } = require('@maggioli-design-system/design-tokens/dist/js/gap')
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 minSize = {
10
- 4: '1rem',
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
- ...mediaQueries,
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
- 'sharp-lg': '0 0 1px 1px rgb(0 0 0 / 0.06), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05)',
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
- 'fit-lg': 'repeat(auto-fit, minmax(17.5rem, 1fr))',
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
- 13: '3.25rem',
78
+ ...size,
79
+ },
80
+ maxHeight: {
81
+ ...size,
82
+ },
83
+ maxWidth: {
84
+ ...size,
117
85
  },
118
86
  minHeight: {
119
- ...minSize,
87
+ ...size,
120
88
  },
121
89
  minWidth: {
122
- ...minSize,
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
- ...paddingAndMargin,
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
- cosmetic: 'background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width',
143
- size: 'height, margin, padding, width',
104
+ transitionProperty: {
105
+ ...transitionProperty,
144
106
  },
145
107
  transitionTimingFunction: {
146
- ...ease,
108
+ ...timingFunction,
147
109
  },
148
110
  width: {
149
- phrase: '50ch',
150
- text: '75ch',
151
- title: '30ch',
111
+ ...size,
152
112
  },
153
113
  },
154
114
  },