beathers 5.2.2 → 5.3.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/CHANGELOG +113 -0
- package/dist/css/beathers-icons.min.css +1 -1
- package/dist/css/beathers-icons.min.css.map +1 -1
- package/dist/css/beathers.min.css +2 -2
- package/dist/css/beathers.min.css.map +1 -1
- package/dist/data/colors.d.ts +9 -0
- package/dist/data/colors.js +54 -0
- package/dist/data/font.d.ts +3 -0
- package/dist/data/font.js +32 -0
- package/dist/data/index.d.ts +2 -0
- package/dist/data/index.js +2 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -1
- package/dist/scripts/cli.js +7 -220
- package/dist/scripts/commands/build.d.ts +1 -0
- package/dist/scripts/commands/build.js +128 -0
- package/dist/scripts/commands/colors.d.ts +4 -0
- package/dist/scripts/commands/colors.js +140 -0
- package/dist/scripts/commands/fonts.d.ts +3 -0
- package/dist/scripts/commands/fonts.js +124 -0
- package/dist/scripts/commands/help.d.ts +1 -0
- package/dist/scripts/commands/help.js +42 -0
- package/dist/scripts/commands/index.d.ts +13 -0
- package/dist/scripts/commands/index.js +95 -0
- package/dist/scripts/commands/init.d.ts +1 -0
- package/dist/scripts/commands/init.js +129 -0
- package/dist/scripts/commands/list.d.ts +2 -0
- package/dist/scripts/commands/list.js +29 -0
- package/dist/scripts/commands/version.d.ts +1 -0
- package/dist/scripts/commands/version.js +13 -0
- package/dist/scripts/{BuildScssVariables.d.ts → helpers/BuildScssVariables.d.ts} +1 -1
- package/dist/scripts/{BuildScssVariables.js → helpers/BuildScssVariables.js} +4 -4
- package/dist/scripts/{LoadUserConfigs.d.ts → helpers/LoadUserConfigs.d.ts} +1 -1
- package/dist/scripts/{Merge.d.ts → helpers/Merge.d.ts} +1 -1
- package/dist/scripts/{ReadDefaultValues.d.ts → helpers/ReadDefaultValues.d.ts} +1 -1
- package/dist/scripts/{ReadDefaultValues.js → helpers/ReadDefaultValues.js} +6 -2
- package/dist/scripts/helpers/index.d.ts +5 -0
- package/dist/scripts/helpers/index.js +5 -0
- package/dist/scripts/types.d.ts +41 -4
- package/dist/scripts/types.js +1 -0
- package/package.json +83 -80
- package/readme.md +28 -0
- package/src/scss/_variables.scss +1 -305
- package/src/scss/beathers-icons.min.scss +245 -245
- package/src/scss/beathers.min.scss +2 -4
- package/src/scss/functions/_colors.scss +79 -68
- package/src/scss/functions/_mediaQueries.scss +22 -12
- package/src/scss/functions/_others.scss +31 -22
- package/src/scss/functions/_typographic.scss +11 -2
- package/src/scss/functions/_validations.scss +38 -43
- package/src/scss/settings/_configs.scss +1 -72
- package/src/scss/settings/_defaults.scss +139 -212
- package/src/scss/style/_colors.scss +39 -23
- package/src/scss/style/_grid.scss +23 -25
- package/src/scss/style/_resets.scss +119 -0
- package/src/scss/style/_shaping.scss +142 -89
- package/src/scss/style/_typographic.scss +79 -36
- package/dist/scripts/BuildTheme.d.ts +0 -1
- package/dist/scripts/BuildTheme.js +0 -75
- package/src/scss/settings/_resets.scss +0 -103
- /package/dist/scripts/{CallNewVariables.d.ts → helpers/CallNewVariables.d.ts} +0 -0
- /package/dist/scripts/{CallNewVariables.js → helpers/CallNewVariables.js} +0 -0
- /package/dist/scripts/{LoadUserConfigs.js → helpers/LoadUserConfigs.js} +0 -0
- /package/dist/scripts/{Merge.js → helpers/Merge.js} +0 -0
|
@@ -17,14 +17,6 @@ $colorsPseudoMap: (
|
|
|
17
17
|
'focus': ':focus',
|
|
18
18
|
);
|
|
19
19
|
|
|
20
|
-
// Defines the default font stack.
|
|
21
|
-
$defaultFontFamilies:
|
|
22
|
-
system-ui,
|
|
23
|
-
-apple-system,
|
|
24
|
-
Roboto,
|
|
25
|
-
Arial,
|
|
26
|
-
sans-serif !default;
|
|
27
|
-
|
|
28
20
|
// Defines available font weights.
|
|
29
21
|
$fontWeightsValues: (
|
|
30
22
|
'thin': 100,
|
|
@@ -38,23 +30,6 @@ $fontWeightsValues: (
|
|
|
38
30
|
'black': 900,
|
|
39
31
|
);
|
|
40
32
|
|
|
41
|
-
// Defines the typography scale for font sizes.
|
|
42
|
-
$fontSizes: (
|
|
43
|
-
'h1': 96px,
|
|
44
|
-
'h2': 60px,
|
|
45
|
-
'h3': 40px,
|
|
46
|
-
'h4': 34px,
|
|
47
|
-
'h5': 24px,
|
|
48
|
-
'h6': 20px,
|
|
49
|
-
'subtitle1': 16px,
|
|
50
|
-
'subtitle2': 14px,
|
|
51
|
-
'body1': 16px,
|
|
52
|
-
'body2': 14px,
|
|
53
|
-
'button': 14px,
|
|
54
|
-
'caption': 12px,
|
|
55
|
-
'overline': 10px,
|
|
56
|
-
) !default;
|
|
57
|
-
|
|
58
33
|
// Defines text transformation and decoration options.
|
|
59
34
|
$fontShapes: (
|
|
60
35
|
'transform': (
|
|
@@ -77,35 +52,12 @@ $fontShapes: (
|
|
|
77
52
|
// Defines text alignment options.
|
|
78
53
|
$aligns: (left, start, right, end, justify, center);
|
|
79
54
|
|
|
80
|
-
// Defines the number of columns/rows in the grid system.
|
|
81
|
-
$axisDivisions: 12 !default;
|
|
82
|
-
|
|
83
55
|
// Defines flexbox properties.
|
|
84
56
|
$flexProperties: (
|
|
85
57
|
flex-wrap: wrap nowrap,
|
|
86
58
|
flex-direction: row row-reverse column column-reverse,
|
|
87
59
|
);
|
|
88
60
|
|
|
89
|
-
// Defines responsive breakpoint values.
|
|
90
|
-
$breakpoints: (
|
|
91
|
-
null: 0,
|
|
92
|
-
sm: 576px,
|
|
93
|
-
md: 768px,
|
|
94
|
-
lg: 992px,
|
|
95
|
-
xl: 1200px,
|
|
96
|
-
xxl: 1400px,
|
|
97
|
-
) !default;
|
|
98
|
-
|
|
99
|
-
// Defines container max-widths and padding at different breakpoints.
|
|
100
|
-
$wrappers: (
|
|
101
|
-
null: 100% 1.5rem,
|
|
102
|
-
sm: 540px 2rem,
|
|
103
|
-
md: 720px 3rem,
|
|
104
|
-
lg: 960px 3rem,
|
|
105
|
-
xl: 1140px 2rem,
|
|
106
|
-
xxl: 1320px 2rem,
|
|
107
|
-
) !default;
|
|
108
|
-
|
|
109
61
|
// Defines display utility options.
|
|
110
62
|
$displays: (inline, block, inline-block, flex, inline-flex, inline-grid, table, table-cell, none);
|
|
111
63
|
|
|
@@ -116,12 +68,6 @@ $overflows: (visible, hidden, auto, scroll);
|
|
|
116
68
|
// Defines object-fit property values.
|
|
117
69
|
$objectsFits: (cover, fill, contain, none);
|
|
118
70
|
|
|
119
|
-
// Defines available opacity values.
|
|
120
|
-
$opacities: (10, 20, 30, 40, 50, 60, 70, 80, 90, 100) !default;
|
|
121
|
-
|
|
122
|
-
// Defines blur values for filter properties.
|
|
123
|
-
$blurValues: (5, 10, 15, 25) !default;
|
|
124
|
-
|
|
125
71
|
// Defines available cursor types.
|
|
126
72
|
$cursors: (
|
|
127
73
|
alias,
|
|
@@ -226,11 +172,10 @@ $positions: static, relative, fixed, absolute, sticky;
|
|
|
226
172
|
|
|
227
173
|
// Defines inset positioning options.
|
|
228
174
|
$insetPositions: null, inline, block;
|
|
229
|
-
// Defines default inset value.
|
|
230
|
-
$insetValues: (0, 5, 15, 25) !default;
|
|
231
175
|
|
|
232
176
|
// Defines the step for spacing utilities.
|
|
233
177
|
$spacesStep: 5;
|
|
178
|
+
|
|
234
179
|
// Defines properties for width and height utilities.
|
|
235
180
|
$spacesDirections: (
|
|
236
181
|
'w': width,
|
|
@@ -262,19 +207,6 @@ $gutters: (
|
|
|
262
207
|
gy: row-gap,
|
|
263
208
|
);
|
|
264
209
|
|
|
265
|
-
// Defines values for gutter utilities.
|
|
266
|
-
$guttersValues: (
|
|
267
|
-
auto: auto,
|
|
268
|
-
1: 0.25rem,
|
|
269
|
-
2: 0.5rem,
|
|
270
|
-
3: 0.75rem,
|
|
271
|
-
4: 1rem,
|
|
272
|
-
5: 1.5rem,
|
|
273
|
-
6: 2rem,
|
|
274
|
-
) !default;
|
|
275
|
-
|
|
276
|
-
// Defines the default border width.
|
|
277
|
-
$bordersValue: 10 !default;
|
|
278
210
|
// Defines border direction properties.
|
|
279
211
|
$bordersDirections: (
|
|
280
212
|
null: border,
|
|
@@ -284,9 +216,6 @@ $bordersDirections: (
|
|
|
284
216
|
'end': border-inline-end,
|
|
285
217
|
);
|
|
286
218
|
|
|
287
|
-
// Defines available border-radius values.
|
|
288
|
-
$radiuses: (5, 10, 15, 25) !default;
|
|
289
|
-
|
|
290
219
|
// Defines border-radius direction properties.
|
|
291
220
|
$radiusDirection: (
|
|
292
221
|
null: (
|
|
@@ -9,209 +9,102 @@
|
|
|
9
9
|
// Theme color map with light/dark variants for each color.
|
|
10
10
|
// Example: "name": ("light": #color, "dark": #color)
|
|
11
11
|
$colors: (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
),
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
)
|
|
72
|
-
"facebook": (
|
|
73
|
-
"light": #3b5998,
|
|
74
|
-
"dark": #3b5998,
|
|
75
|
-
),
|
|
76
|
-
"messenger": (
|
|
77
|
-
"light": #006aff,
|
|
78
|
-
"dark": #006aff,
|
|
79
|
-
),
|
|
80
|
-
"whatsapp": (
|
|
81
|
-
"light": #25d366,
|
|
82
|
-
"dark": #25d366,
|
|
83
|
-
),
|
|
84
|
-
"instagram": (
|
|
85
|
-
"light": #3f729b,
|
|
86
|
-
"dark": #3f729b,
|
|
87
|
-
),
|
|
88
|
-
"google": (
|
|
89
|
-
"light": #4285f4,
|
|
90
|
-
"dark": #4285f4,
|
|
91
|
-
),
|
|
92
|
-
"signal": (
|
|
93
|
-
"light": #2190e8,
|
|
94
|
-
"dark": #2190e8,
|
|
95
|
-
),
|
|
96
|
-
"twitter": (
|
|
97
|
-
"light": #00acee,
|
|
98
|
-
"dark": #00acee,
|
|
99
|
-
),
|
|
100
|
-
"telegram": (
|
|
101
|
-
"light": #0088cc,
|
|
102
|
-
"dark": #0088cc,
|
|
103
|
-
),
|
|
104
|
-
"youtube": (
|
|
105
|
-
"light": #ff0000,
|
|
106
|
-
"dark": #ff0000,
|
|
107
|
-
),
|
|
108
|
-
"linkedin": (
|
|
109
|
-
"light": #0077b5,
|
|
110
|
-
"dark": #0077b5,
|
|
111
|
-
),
|
|
112
|
-
"behance": (
|
|
113
|
-
"light": #053eff,
|
|
114
|
-
"dark": #053eff,
|
|
115
|
-
),
|
|
116
|
-
"github": (
|
|
117
|
-
"light": #171515,
|
|
118
|
-
"dark": #171515,
|
|
119
|
-
),
|
|
120
|
-
"gitlab": (
|
|
121
|
-
"light": #fca326,
|
|
122
|
-
"dark": #fca326,
|
|
123
|
-
),
|
|
124
|
-
"wechat": (
|
|
125
|
-
"light": #09b83e,
|
|
126
|
-
"dark": #09b83e,
|
|
127
|
-
),
|
|
128
|
-
"tiktok": (
|
|
129
|
-
"light": #ff0050,
|
|
130
|
-
"dark": #ff0050,
|
|
131
|
-
),
|
|
132
|
-
"snapchat": (
|
|
133
|
-
"light": #fffc00,
|
|
134
|
-
"dark": #fffc00,
|
|
135
|
-
),
|
|
136
|
-
"pinterest": (
|
|
137
|
-
"light": #e60023,
|
|
138
|
-
"dark": #e60023,
|
|
139
|
-
),
|
|
140
|
-
"reddit": (
|
|
141
|
-
"light": #ff4500,
|
|
142
|
-
"dark": #ff4500,
|
|
143
|
-
),
|
|
144
|
-
"teams": (
|
|
145
|
-
"light": #464eb8,
|
|
146
|
-
"dark": #464eb8,
|
|
147
|
-
),
|
|
148
|
-
"twitch": (
|
|
149
|
-
"light": #6441a5,
|
|
150
|
-
"dark": #6441a5,
|
|
151
|
-
),
|
|
152
|
-
"dribbble": (
|
|
153
|
-
"light": #ea4c89,
|
|
154
|
-
"dark": #ea4c89,
|
|
155
|
-
),
|
|
156
|
-
"custom-1": (
|
|
157
|
-
"light": #4289c7,
|
|
158
|
-
"dark": #75b0e4,
|
|
159
|
-
),
|
|
160
|
-
"custom-2": (
|
|
161
|
-
"light": #39c2cb,
|
|
162
|
-
"dark": #79e2e9,
|
|
163
|
-
),
|
|
164
|
-
"custom-3": (
|
|
165
|
-
"light": #36c07e,
|
|
166
|
-
"dark": #86f3be,
|
|
167
|
-
),
|
|
168
|
-
"custom-4": (
|
|
169
|
-
"light": #a84fd1,
|
|
170
|
-
"dark": #cd87ee,
|
|
171
|
-
),
|
|
172
|
-
"custom-5": (
|
|
173
|
-
"light": #df4f60,
|
|
174
|
-
"dark": #df7884,
|
|
175
|
-
),
|
|
176
|
-
"custom-6": (
|
|
177
|
-
"light": #dec338,
|
|
178
|
-
"dark": #e6d689,
|
|
179
|
-
),
|
|
180
|
-
"custom-7": (
|
|
181
|
-
"light": #ea6e2c,
|
|
182
|
-
"dark": #e29f7b,
|
|
183
|
-
),
|
|
184
|
-
"custom-8": (
|
|
185
|
-
"light": #a66d38,
|
|
186
|
-
"dark": #e3b387,
|
|
187
|
-
),
|
|
188
|
-
"custom-9": (
|
|
189
|
-
"light": #eb30a0,
|
|
190
|
-
"dark": #e779bb,
|
|
191
|
-
),
|
|
192
|
-
"custom-10": (
|
|
193
|
-
"light": #1e24a5,
|
|
194
|
-
"dark": #5d64ea,
|
|
195
|
-
),
|
|
196
|
-
"black": (
|
|
197
|
-
"light": #000000,
|
|
198
|
-
"dark": #000000,
|
|
199
|
-
),
|
|
200
|
-
"white": (
|
|
201
|
-
"light": #ffffff,
|
|
202
|
-
"dark": #ffffff,
|
|
203
|
-
),
|
|
12
|
+
'main': (
|
|
13
|
+
'light': #ffffff,
|
|
14
|
+
'dark': #1a1d21,
|
|
15
|
+
),
|
|
16
|
+
'second': (
|
|
17
|
+
'light': #f8f8ff,
|
|
18
|
+
'dark': #2e2e3f,
|
|
19
|
+
),
|
|
20
|
+
'third': (
|
|
21
|
+
'light': #ebecf7,
|
|
22
|
+
'dark': #39394a,
|
|
23
|
+
),
|
|
24
|
+
't1': (
|
|
25
|
+
'light': #303030,
|
|
26
|
+
'dark': #fafafa,
|
|
27
|
+
),
|
|
28
|
+
't2': (
|
|
29
|
+
'light': #404040,
|
|
30
|
+
'dark': #f5f5f5,
|
|
31
|
+
),
|
|
32
|
+
't3': (
|
|
33
|
+
'light': #404040,
|
|
34
|
+
'dark': #f5f5f5,
|
|
35
|
+
),
|
|
36
|
+
'd1': (
|
|
37
|
+
'light': #505050,
|
|
38
|
+
'dark': #dfdfdf,
|
|
39
|
+
),
|
|
40
|
+
'd2': (
|
|
41
|
+
'light': #808080,
|
|
42
|
+
'dark': #bdbdbd,
|
|
43
|
+
),
|
|
44
|
+
'd3': (
|
|
45
|
+
'light': #909090,
|
|
46
|
+
'dark': #9e9e9e,
|
|
47
|
+
),
|
|
48
|
+
'success': (
|
|
49
|
+
'light': #099750,
|
|
50
|
+
'dark': #5ff2a9,
|
|
51
|
+
),
|
|
52
|
+
'primary': (
|
|
53
|
+
'light': #2a6e9f,
|
|
54
|
+
'dark': #89c5f0,
|
|
55
|
+
),
|
|
56
|
+
'secondary': (
|
|
57
|
+
'light': #545454,
|
|
58
|
+
'dark': #c6c3c3,
|
|
59
|
+
),
|
|
60
|
+
'danger': (
|
|
61
|
+
'light': #b5333b,
|
|
62
|
+
'dark': #ee6b74,
|
|
63
|
+
),
|
|
64
|
+
'warning': (
|
|
65
|
+
'light': #ca9420,
|
|
66
|
+
'dark': #fcd06f,
|
|
67
|
+
),
|
|
68
|
+
'info': (
|
|
69
|
+
'light': #0c8181,
|
|
70
|
+
'dark': #49d1d1,
|
|
71
|
+
)
|
|
204
72
|
) !default;
|
|
205
73
|
|
|
206
74
|
// Typography
|
|
207
75
|
// ---------
|
|
208
76
|
// Font configuration for the Beathers system
|
|
209
77
|
// Defines paths, formats and font families with their variations
|
|
210
|
-
$fontMainPath:
|
|
211
|
-
$fontFormat:
|
|
212
|
-
$fontWeights: (
|
|
213
|
-
$fontStyles: (
|
|
214
|
-
$textTruncate:
|
|
78
|
+
$fontMainPath: '/fonts/' !default;
|
|
79
|
+
$fontFormat: 'woff2' !default;
|
|
80
|
+
$fontWeights: ('light', 'regular', 'medium', 'bold') !default;
|
|
81
|
+
$fontStyles: ('normal') !default;
|
|
82
|
+
$textTruncate: (1, 2, 3) !default;
|
|
83
|
+
|
|
84
|
+
// Defines the default font stack.
|
|
85
|
+
$defaultFontFamilies:
|
|
86
|
+
system-ui,
|
|
87
|
+
-apple-system,
|
|
88
|
+
Roboto,
|
|
89
|
+
Arial,
|
|
90
|
+
sans-serif !default;
|
|
91
|
+
|
|
92
|
+
// Defines the typography scale for font sizes.
|
|
93
|
+
$fontSizes: (
|
|
94
|
+
'h1': 96px,
|
|
95
|
+
'h2': 60px,
|
|
96
|
+
'h3': 40px,
|
|
97
|
+
'h4': 34px,
|
|
98
|
+
'h5': 24px,
|
|
99
|
+
'h6': 20px,
|
|
100
|
+
'subtitle1': 16px,
|
|
101
|
+
'subtitle2': 14px,
|
|
102
|
+
'body1': 16px,
|
|
103
|
+
'body2': 14px,
|
|
104
|
+
'button': 14px,
|
|
105
|
+
'caption': 12px,
|
|
106
|
+
'overline': 10px,
|
|
107
|
+
) !default;
|
|
215
108
|
|
|
216
109
|
// Font families map with language variants, unicode ranges and font weights
|
|
217
110
|
// Example:
|
|
@@ -233,19 +126,53 @@ $textTruncate: 10 !default;
|
|
|
233
126
|
// )
|
|
234
127
|
// )
|
|
235
128
|
// )
|
|
236
|
-
$fonts: (
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
129
|
+
$fonts: () !default;
|
|
130
|
+
|
|
131
|
+
// Defines responsive breakpoint values.
|
|
132
|
+
$breakpoints: (
|
|
133
|
+
null: 0,
|
|
134
|
+
sm: 576px,
|
|
135
|
+
md: 768px,
|
|
136
|
+
lg: 992px,
|
|
137
|
+
xl: 1200px,
|
|
138
|
+
xxl: 1400px,
|
|
139
|
+
) !default;
|
|
140
|
+
|
|
141
|
+
// Defines container max-widths and padding at different breakpoints.
|
|
142
|
+
$wrappers: (
|
|
143
|
+
null: 100% 1.5rem,
|
|
144
|
+
sm: 540px 2rem,
|
|
145
|
+
md: 720px 3rem,
|
|
146
|
+
lg: 960px 3rem,
|
|
147
|
+
xl: 1140px 2rem,
|
|
148
|
+
xxl: 1320px 2rem,
|
|
251
149
|
) !default;
|
|
150
|
+
|
|
151
|
+
// Defines the number of columns/rows in the grid system.
|
|
152
|
+
$axisDivisions: 12 !default;
|
|
153
|
+
|
|
154
|
+
// Defines values for gutter utilities.
|
|
155
|
+
$guttersValues: (
|
|
156
|
+
auto: auto,
|
|
157
|
+
1: 0.25rem,
|
|
158
|
+
2: 0.5rem,
|
|
159
|
+
3: 0.75rem,
|
|
160
|
+
4: 1rem,
|
|
161
|
+
5: 1.5rem,
|
|
162
|
+
6: 2rem,
|
|
163
|
+
) !default;
|
|
164
|
+
|
|
165
|
+
// Defines available opacity values.
|
|
166
|
+
$opacities: (15, 25, 50, 70) !default;
|
|
167
|
+
|
|
168
|
+
// Defines blur values for filter properties.
|
|
169
|
+
$blurValues: (3, 8, 15) !default;
|
|
170
|
+
|
|
171
|
+
// Defines default inset value.
|
|
172
|
+
$insetValues: (0, 5) !default;
|
|
173
|
+
|
|
174
|
+
// Defines the default border width.
|
|
175
|
+
$bordersValue: (1, 2, 3) !default;
|
|
176
|
+
|
|
177
|
+
// Defines available border-radius values.
|
|
178
|
+
$radiuses: (5, 10) !default;
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
6
|
-
@use
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../variables' as vars;
|
|
4
|
+
@use '../settings/defaults' as defs;
|
|
5
|
+
@use '../functions/validations' as val;
|
|
6
|
+
@use '../settings/configs' as configs;
|
|
7
|
+
@use '../functions/colors' as colors;
|
|
8
|
+
@use '../settings/index' as settings;
|
|
9
|
+
|
|
10
|
+
// Definitions
|
|
11
|
+
$useColors: if(meta.variable-exists('vars.$useColors') and vars.$useColors, vars.$useColors, settings.$useColors);
|
|
12
|
+
$useCurrentColors: if(
|
|
13
|
+
meta.variable-exists('vars.$useCurrentColors') and vars.$useCurrentColors,
|
|
14
|
+
vars.$useCurrentColors,
|
|
15
|
+
settings.$useCurrentColors
|
|
16
|
+
);
|
|
17
|
+
$useRootColors: if(
|
|
18
|
+
meta.variable-exists('vars.$useRootColors') and vars.$useRootColors,
|
|
19
|
+
vars.$useRootColors,
|
|
20
|
+
settings.$useRootColors
|
|
21
|
+
);
|
|
22
|
+
$colors: if(meta.variable-exists('vars.$colors') and vars.$colors, vars.$colors, defs.$colors);
|
|
7
23
|
|
|
8
24
|
// Colors System Module
|
|
9
25
|
// --------------------------
|
|
@@ -23,14 +39,14 @@
|
|
|
23
39
|
// @requires ../functions/colors.scss - For color utility functions and mixins
|
|
24
40
|
// @requires ../settings/configs.scss - For configuration variables
|
|
25
41
|
// @requires ../functions/validations.scss - For validation utilities
|
|
26
|
-
// @requires ../
|
|
42
|
+
// @requires ../variables.scss - For color definitions
|
|
27
43
|
|
|
28
|
-
@if
|
|
44
|
+
@if $useColors {
|
|
29
45
|
// Color Utility Classes
|
|
30
46
|
// --------------------
|
|
31
47
|
// Generate color utility classes from the main colors map.
|
|
32
48
|
// Uses the useColorsMap mixin from colors functions to create a comprehensive
|
|
33
|
-
// set of color utilities for all the colors defined in
|
|
49
|
+
// set of color utilities for all the colors defined in $colors.
|
|
34
50
|
//
|
|
35
51
|
// Generated classes include:
|
|
36
52
|
// - .color-[colorName] - Sets text color
|
|
@@ -48,10 +64,10 @@
|
|
|
48
64
|
// With pseudo-class variants:
|
|
49
65
|
// - .color-[colorName]:hover
|
|
50
66
|
// - .bg-color-[colorName]:focus
|
|
51
|
-
@include colors.useColorsMap
|
|
67
|
+
@include colors.useColorsMap;
|
|
52
68
|
}
|
|
53
69
|
|
|
54
|
-
@if
|
|
70
|
+
@if $useCurrentColors {
|
|
55
71
|
// CurrentColor Utility Classes
|
|
56
72
|
// ----------------------------
|
|
57
73
|
// Creates utility classes for applying the CSS `currentColor` value to various CSS properties
|
|
@@ -73,13 +89,13 @@
|
|
|
73
89
|
// This text uses currentColor and background changes to currentColor on hover
|
|
74
90
|
// </div>
|
|
75
91
|
@each $class, $property in configs.$colorsPropertiesMap {
|
|
76
|
-
$mainClass: if($class,
|
|
92
|
+
$mainClass: if($class, '#{$class}#{\:}current-color', 'current-color');
|
|
77
93
|
|
|
78
94
|
.#{$mainClass} {
|
|
79
95
|
#{$property}: currentColor;
|
|
80
96
|
|
|
81
97
|
@each $pseudoClass, $pseudo in configs.$colorsPseudoMap {
|
|
82
|
-
@if $pseudoClass !=
|
|
98
|
+
@if $pseudoClass != 'placeholder' or ($pseudoClass == 'placeholder' and $class == null) {
|
|
83
99
|
&#{\:}#{$pseudoClass}#{$pseudo} {
|
|
84
100
|
#{$property}: currentColor;
|
|
85
101
|
}
|
|
@@ -89,14 +105,14 @@
|
|
|
89
105
|
}
|
|
90
106
|
}
|
|
91
107
|
|
|
92
|
-
@if
|
|
108
|
+
@if $useRootColors {
|
|
93
109
|
// CSS Color Variables
|
|
94
110
|
// ------------------
|
|
95
|
-
// Generates CSS custom properties (variables) for all colors in the
|
|
111
|
+
// Generates CSS custom properties (variables) for all colors in the $colors map.
|
|
96
112
|
// These variables can be used throughout the application to ensure color consistency.
|
|
97
113
|
//
|
|
98
114
|
// The implementation:
|
|
99
|
-
// 1. Iterates through each color in the
|
|
115
|
+
// 1. Iterates through each color in the $colors map
|
|
100
116
|
// 2. Validates the color values through val.mapItem and val.hexColor functions
|
|
101
117
|
// 3. Determines if light and dark variants are the same
|
|
102
118
|
// 4. Creates appropriate CSS variables based on variant differences
|
|
@@ -116,17 +132,17 @@
|
|
|
116
132
|
// color: var(--color-accent);
|
|
117
133
|
// }
|
|
118
134
|
:root {
|
|
119
|
-
@each $color, $modes in
|
|
135
|
+
@each $color, $modes in $colors {
|
|
120
136
|
// Validate parameters
|
|
121
|
-
$checkedLight: val.mapItem($modes,
|
|
122
|
-
$checkedDark: val.mapItem($modes,
|
|
137
|
+
$checkedLight: val.mapItem($modes, 'light', 'light/dark', 'root-colors()');
|
|
138
|
+
$checkedDark: val.mapItem($modes, 'dark', 'light/dark', 'root-colors()');
|
|
123
139
|
|
|
124
|
-
$light: map.get($modes,
|
|
125
|
-
$dark: map.get($modes,
|
|
140
|
+
$light: map.get($modes, 'light');
|
|
141
|
+
$dark: map.get($modes, 'dark');
|
|
126
142
|
|
|
127
143
|
// Validate colors
|
|
128
|
-
$checkedLightValue: val.hexColor(
|
|
129
|
-
$checkedDarkValue: val.hexColor(
|
|
144
|
+
$checkedLightValue: val.hexColor('#{$color}.light', $light, 'root-colors()');
|
|
145
|
+
$checkedDarkValue: val.hexColor('#{$color}.dark', $dark, 'root-colors()');
|
|
130
146
|
|
|
131
147
|
@if ($light == $dark) {
|
|
132
148
|
--color-#{$color}: #{$checkedLightValue};
|