@maltjoy/themes 5.0.0 → 5.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/_tools.scss +105 -105
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maltjoy/themes",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "type": "module",
5
5
  "description": "Malt design system themes modules based on tokens",
6
6
  "files": [
package/src/_tools.scss CHANGED
@@ -1,118 +1,118 @@
1
- @use 'sass:map';
1
+ @use "sass:map";
2
2
 
3
3
  $FONTS_MAP: (
4
- /** MODERAT **/
5
- primary-100: (
6
- fontFamily: var(--joy-font-family),
7
- fontSize: var(--joy-font-size-primary-100),
8
- fontWeight: var(--joy-font-weight-normal),
9
- lineHeight: var(--joy-line-height-large)
4
+ /** MODERAT **/ primary-100:
5
+ (
6
+ fontFamily: var(--joy-font-family),
7
+ fontSize: var(--joy-font-size-primary-100),
8
+ fontWeight: var(--joy-font-weight-normal),
9
+ lineHeight: var(--joy-line-height-large),
10
10
  ),
11
- primary-150: (
12
- fontFamily: var(--joy-font-family),
13
- fontSize: var(--joy-font-size-primary-100),
14
- fontWeight: var(--joy-font-weight-bold),
15
- lineHeight: var(--joy-line-height-large)
11
+ primary-150: (
12
+ fontFamily: var(--joy-font-family),
13
+ fontSize: var(--joy-font-size-primary-100),
14
+ fontWeight: var(--joy-font-weight-bold),
15
+ lineHeight: var(--joy-line-height-large),
16
+ ),
17
+ primary-200: (
18
+ fontFamily: var(--joy-font-family),
19
+ fontSize: var(--joy-font-size-primary-200),
20
+ fontWeight: var(--joy-font-weight-normal),
21
+ lineHeight: var(--joy-line-height-large),
22
+ ),
23
+ primary-250: (
24
+ fontFamily: var(--joy-font-family),
25
+ fontSize: var(--joy-font-size-primary-200),
26
+ fontWeight: var(--joy-font-weight-bold),
27
+ lineHeight: var(--joy-line-height-large),
28
+ ),
29
+ primary-300: (
30
+ fontFamily: var(--joy-font-family),
31
+ fontSize: var(--joy-font-size-primary-300),
32
+ fontWeight: var(--joy-font-weight-normal),
33
+ lineHeight: var(--joy-line-height-large),
34
+ ),
35
+ primary-350: (
36
+ fontFamily: var(--joy-font-family),
37
+ fontSize: var(--joy-font-size-primary-300),
38
+ fontWeight: var(--joy-font-weight-bold),
39
+ lineHeight: var(--joy-line-height-large),
40
+ ),
41
+ primary-400: (
42
+ fontFamily: var(--joy-font-family),
43
+ fontSize: var(--joy-font-size-primary-400),
44
+ fontWeight: var(--joy-font-weight-normal),
45
+ lineHeight: var(--joy-line-height-large),
46
+ ),
47
+ primary-450: (
48
+ fontFamily: var(--joy-font-family),
49
+ fontSize: var(--joy-font-size-primary-400),
50
+ fontWeight: var(--joy-font-weight-bold),
51
+ lineHeight: var(--joy-line-height-large),
52
+ ),
53
+ primary-600: (
54
+ fontFamily: var(--joy-font-family),
55
+ fontSize: var(--joy-font-size-primary-600),
56
+ fontWeight: var(--joy-font-weight-normal),
57
+ lineHeight: var(--joy-line-height-large),
58
+ ),
59
+ primary-650: (
60
+ fontFamily: var(--joy-font-family),
61
+ fontSize: var(--joy-font-size-primary-600),
62
+ fontWeight: var(--joy-font-weight-bold),
63
+ lineHeight: var(--joy-line-height-large),
64
+ ),
65
+ primary-800: (
66
+ fontFamily: var(--joy-font-family),
67
+ fontSize: var(--joy-font-size-primary-800),
68
+ fontWeight: var(--joy-font-weight-normal),
69
+ lineHeight: var(--joy-line-height-small),
70
+ ),
71
+ primary-850: (
72
+ fontFamily: var(--joy-font-family),
73
+ fontSize: var(--joy-font-size-primary-800),
74
+ fontWeight: var(--joy-font-weight-bold),
75
+ lineHeight: var(--joy-line-height-small),
76
+ ),
77
+ /** AGRANDIR **/ secondary-200:
78
+ (
79
+ fontFamily: var(--joy-font-family-title),
80
+ fontSize: var(--joy-font-size-secondary-200),
81
+ fontWeight: 500,
82
+ lineHeight: var(--joy-line-height-small),
16
83
  ),
17
- primary-200: (
18
- fontFamily: var(--joy-font-family),
19
- fontSize: var(--joy-font-size-primary-200),
20
- fontWeight: var(--joy-font-weight-normal),
21
- lineHeight: var(--joy-line-height-large)
22
- ),
23
- primary-250: (
24
- fontFamily: var(--joy-font-family),
25
- fontSize: var(--joy-font-size-primary-200),
26
- fontWeight: var(--joy-font-weight-bold),
27
- lineHeight: var(--joy-line-height-large)
28
- ),
29
- primary-300: (
30
- fontFamily: var(--joy-font-family),
31
- fontSize: var(--joy-font-size-primary-300),
32
- fontWeight: var(--joy-font-weight-normal),
33
- lineHeight: var(--joy-line-height-large)
34
- ),
35
- primary-350: (
36
- fontFamily: var(--joy-font-family),
37
- fontSize: var(--joy-font-size-primary-300),
38
- fontWeight: var(--joy-font-weight-bold),
39
- lineHeight: var(--joy-line-height-large)
40
- ),
41
- primary-400: (
42
- fontFamily: var(--joy-font-family),
43
- fontSize: var(--joy-font-size-primary-400),
44
- fontWeight: var(--joy-font-weight-normal),
45
- lineHeight: var(--joy-line-height-large)
46
- ),
47
- primary-450: (
48
- fontFamily: var(--joy-font-family),
49
- fontSize: var(--joy-font-size-primary-400),
50
- fontWeight: var(--joy-font-weight-bold),
51
- lineHeight: var(--joy-line-height-large)
52
- ),
53
- primary-600: (
54
- fontFamily: var(--joy-font-family),
55
- fontSize: var(--joy-font-size-primary-600),
56
- fontWeight: var(--joy-font-weight-normal),
57
- lineHeight: var(--joy-line-height-large)
58
- ),
59
- primary-650: (
60
- fontFamily: var(--joy-font-family),
61
- fontSize: var(--joy-font-size-primary-600),
62
- fontWeight: var(--joy-font-weight-bold),
63
- lineHeight: var(--joy-line-height-large)
64
- ),
65
- primary-800: (
66
- fontFamily: var(--joy-font-family),
67
- fontSize: var(--joy-font-size-primary-800),
68
- fontWeight: var(--joy-font-weight-normal),
69
- lineHeight: var(--joy-line-height-small)
70
- ),
71
- primary-850: (
72
- fontFamily: var(--joy-font-family),
73
- fontSize: var(--joy-font-size-primary-800),
74
- fontWeight: var(--joy-font-weight-bold),
75
- lineHeight: var(--joy-line-height-small)
76
- ),
77
- /** AGRANDIR **/
78
- secondary-200: (
79
- fontFamily: var(--joy-font-family-title),
80
- fontSize: var(--joy-font-size-secondary-200),
81
- fontWeight: 500,
82
- lineHeight: var(--joy-line-height-small)
83
- ),
84
- secondary-400: (
85
- fontFamily: var(--joy-font-family-title),
86
- fontSize: var(--joy-font-size-secondary-400),
87
- fontWeight: 500,
88
- lineHeight: var(--joy-line-height-small)
89
- ),
90
- secondary-600: (
91
- fontFamily: var(--joy-font-family-title),
92
- fontSize: var(--joy-font-size-secondary-600),
93
- fontWeight: 500,
94
- lineHeight: var(--joy-line-height-small)
95
- ),
96
- secondary-800: (
97
- fontFamily: var(--joy-font-family-title),
98
- fontSize: var(--joy-font-size-secondary-800),
99
- fontWeight: 500,
100
- lineHeight: var(--joy-line-height-small)
101
- )
84
+ secondary-400: (
85
+ fontFamily: var(--joy-font-family-title),
86
+ fontSize: var(--joy-font-size-secondary-400),
87
+ fontWeight: 500,
88
+ lineHeight: var(--joy-line-height-small),
89
+ ),
90
+ secondary-600: (
91
+ fontFamily: var(--joy-font-family-title),
92
+ fontSize: var(--joy-font-size-secondary-600),
93
+ fontWeight: 500,
94
+ lineHeight: var(--joy-line-height-small),
95
+ ),
96
+ secondary-800: (
97
+ fontFamily: var(--joy-font-family-title),
98
+ fontSize: var(--joy-font-size-secondary-800),
99
+ fontWeight: 500,
100
+ lineHeight: var(--joy-line-height-small),
101
+ )
102
102
  ) !default;
103
103
 
104
104
  @mixin getFontBySize($font: primary-400, $important: null) {
105
- $fontProperties: map-get($FONTS_MAP, $font);
106
- $fontFamily: map-get($fontProperties, fontFamily);
107
- $fontSize: map-get($fontProperties, fontSize);
108
- $fontSizeMobile: map-get($fontProperties, fontSizeMobile);
109
- $fontWeight: map-get($fontProperties, fontWeight);
110
- $fontLineHeight: map-get($fontProperties, lineHeight);
105
+ $fontProperties: map.get($FONTS_MAP, $font);
106
+ $fontFamily: map.get($fontProperties, fontFamily);
107
+ $fontSize: map.get($fontProperties, fontSize);
108
+ $fontSizeMobile: map.get($fontProperties, fontSizeMobile);
109
+ $fontWeight: map.get($fontProperties, fontWeight);
110
+ $fontLineHeight: map.get($fontProperties, lineHeight);
111
111
 
112
112
  font-weight: $fontWeight $important;
113
113
  font-size: $fontSize $important;
114
114
  line-height: $fontLineHeight $important;
115
-
115
+
116
116
  @if $fontFamily != null {
117
117
  font-family: $fontFamily $important;
118
118
  }
@@ -122,4 +122,4 @@ $FONTS_MAP: (
122
122
  font-size: $fontSizeMobile $important;
123
123
  }
124
124
  }
125
- }
125
+ }