@maggioli-design-system/styles 8.0.0 → 8.1.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/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  #### styles
4
4
 
5
-
6
5
  These are the styles used by components libraries like `@maggioli-design-system/react` to use the palette generated by `@maggioli-design-system/design-tokens`.
7
6
 
8
7
  ##### Installation
@@ -13,6 +12,36 @@ npm install @maggioli-design-system/styles@latest
13
12
 
14
13
  ---
15
14
 
15
+ ### Fonts
16
+
17
+ Now you can use `@fontsource` fonts, which are up to date with Google fonts, styles used in Magma are:
18
+
19
+ ##### TypeScript
20
+
21
+ ```ts
22
+ import '@fontsource/karla/400.css'
23
+ import '@fontsource/karla/700.css'
24
+ import '@fontsource/merriweather/400.css'
25
+ import '@fontsource/merriweather/700.css'
26
+ import '@fontsource/roboto/700.css'
27
+ import '@fontsource/roboto/800.css'
28
+ ```
29
+
30
+ ##### CSS
31
+
32
+ ```css
33
+ @import '@fontsource/karla/400.css';
34
+ @import '@fontsource/karla/700.css';
35
+ @import '@fontsource/merriweather/400.css';
36
+ @import '@fontsource/merriweather/700.css';
37
+ @import '@fontsource/roboto/700.css';
38
+ @import '@fontsource/roboto/900.css';
39
+ ```
40
+
41
+ Fontsource supports [variable fonts](https://fontsource.org/docs/variable-fonts).
42
+
43
+ ---
44
+
16
45
  ### Structure
17
46
 
18
47
  #### Folder `postcss`
package/dist/css/base.css CHANGED
@@ -26,7 +26,7 @@ body {
26
26
  line-height: 1.5rem;
27
27
  font-family: Karla, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;
28
28
  --tw-text-opacity: 1;
29
- color: rgba(var(--adjust-tone-02), var(--tw-text-opacity));
29
+ color: rgba(var(--tone-neutral-02), var(--tw-text-opacity));
30
30
 
31
31
  -moz-osx-font-smoothing: grayscale;
32
32
  -webkit-font-smoothing: antialiased;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  Generated by Style Dictionary
3
3
  Do not edit directly
4
- Generated at Mon, 27 Jun 2022 07:54:51 GMT
4
+ Generated at Wed, 29 Jun 2022 09:21:40 GMT
5
5
  */
6
6
 
7
7
  :root {
@@ -3,7 +3,7 @@
3
3
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;
4
4
  font-size: 3rem;
5
5
  line-height: 1;
6
- font-weight: 800;
6
+ font-weight: 900;
7
7
  letter-spacing: -0.025em;
8
8
  -webkit-font-smoothing: antialiased;
9
9
  -moz-osx-font-smoothing: grayscale
@@ -12,7 +12,7 @@
12
12
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;
13
13
  font-size: 2.25rem;
14
14
  line-height: 2.5rem;
15
- font-weight: 800;
15
+ font-weight: 900;
16
16
  letter-spacing: -0.025em;
17
17
  -webkit-font-smoothing: antialiased;
18
18
  -moz-osx-font-smoothing: grayscale
@@ -21,7 +21,7 @@
21
21
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', 'Helvetica Neue', sans-serif;
22
22
  font-size: 1.875rem;
23
23
  line-height: 2.25rem;
24
- font-weight: 800;
24
+ font-weight: 900;
25
25
  letter-spacing: -0.025em;
26
26
  -webkit-font-smoothing: antialiased;
27
27
  -moz-osx-font-smoothing: grayscale
@@ -10,9 +10,9 @@ html {
10
10
  body {
11
11
  @apply
12
12
  antialiased
13
- font-secondary
14
- text-adjust-tone-02
15
- typography-secondary-detail;
13
+ font-info
14
+ text-tone-neutral-02
15
+ typography-info-detail;
16
16
 
17
17
  -moz-osx-font-smoothing: grayscale;
18
18
  -webkit-font-smoothing: antialiased;
@@ -32,7 +32,7 @@ select {
32
32
  @apply
33
33
  antialiased
34
34
  font-medium
35
- font-primary
35
+ font-title
36
36
  leading-relaxed;
37
37
  }
38
38
 
@@ -2,7 +2,7 @@
2
2
  .text-title-h1 {
3
3
  @apply
4
4
  antialiased
5
- font-extrabold
5
+ font-black
6
6
  font-title
7
7
  text-5xl
8
8
  tracking-tight;
@@ -11,7 +11,7 @@
11
11
  .text-title-h2 {
12
12
  @apply
13
13
  antialiased
14
- font-extrabold
14
+ font-black
15
15
  font-title
16
16
  text-4xl
17
17
  tracking-tight;
@@ -20,7 +20,7 @@
20
20
  .text-title-h3 {
21
21
  @apply
22
22
  antialiased
23
- font-extrabold
23
+ font-black
24
24
  font-title
25
25
  text-3xl
26
26
  tracking-tight;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/styles",
3
- "version": "8.0.0",
3
+ "version": "8.1.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": {
@@ -41,11 +41,14 @@
41
41
  ],
42
42
  "license": "ISC",
43
43
  "dependencies": {
44
+ "@fontsource/karla": "^4.5.8",
45
+ "@fontsource/merriweather": "^4.5.12",
46
+ "@fontsource/roboto": "^4.5.7",
44
47
  "@maggioli-design-system/design-tokens": "^8.0.0",
45
48
  "normalize.css": "^8.0.1",
46
49
  "typeface-karla": "^1.1.13",
47
- "typeface-roboto": "^1.1.13",
48
- "typeface-merriweather": "^1.1.13"
50
+ "typeface-merriweather": "^1.1.13",
51
+ "typeface-roboto": "^1.1.13"
49
52
  },
50
53
  "devDependencies": {
51
54
  "autoprefixer": "^10.4.7",