yummacss 2.0.0 → 3.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/LICENSE +17 -18
- package/README.md +22 -43
- package/dist/cli/commands/build.js +44 -0
- package/dist/cli/commands/init.js +17 -0
- package/dist/cli/commands/watch.js +36 -0
- package/dist/cli/config/defaultConfig.js +8 -0
- package/dist/cli/services/configLoader.js +16 -0
- package/dist/cli/services/minifyService.js +16 -0
- package/dist/cli/services/purgeService.js +12 -0
- package/dist/cli/services/scssCompiler.js +34 -0
- package/dist/cli/src/cli.js +19 -0
- package/dist/cli/utils/cli-ui.js +13 -0
- package/dist/cli/utils/ui.js +15 -0
- package/dist/yumma.css +127316 -193522
- package/dist/yumma.min.css +1 -1
- package/package.json +50 -34
- package/src/_fonts.scss +8 -6
- package/src/abstracts/_breakpoints.scss +12 -10
- package/src/abstracts/_index.scss +5 -0
- package/src/abstracts/_theme.scss +21 -0
- package/src/abstracts/_variables.scss +69 -88
- package/src/abstracts/functions/_create-values.scss +16 -0
- package/src/abstracts/functions/_ignore-neutral.scss +9 -0
- package/src/abstracts/functions/_index.scss +2 -0
- package/src/abstracts/mixins/_create-colors.scss +39 -0
- package/src/abstracts/mixins/_create-utilities.scss +39 -0
- package/src/abstracts/mixins/_extend-utilities.scss +24 -0
- package/src/abstracts/mixins/_index.scss +3 -0
- package/src/reset/_stylecent.scss +235 -0
- package/src/utilities/_background.scss +95 -0
- package/src/utilities/_border.scss +313 -0
- package/src/utilities/_box-model.scss +290 -0
- package/src/utilities/_color.scss +85 -0
- package/src/utilities/_effect.scss +98 -0
- package/src/utilities/_flexbox.scss +258 -0
- package/src/utilities/_grid.scss +277 -0
- package/src/utilities/_index.scss +14 -0
- package/src/utilities/_interactivity.scss +304 -0
- package/src/utilities/_outline.scss +53 -0
- package/src/utilities/_positioning.scss +436 -0
- package/src/utilities/_svg.scss +27 -0
- package/src/utilities/_table.scss +35 -0
- package/src/utilities/_transform.scss +164 -0
- package/src/utilities/_typography.scss +278 -0
- package/src/utilities/maps/_index.scss +12 -0
- package/src/utilities/maps/box-model/_dimension.scss +16 -0
- package/src/utilities/maps/box-model/_height.scss +16 -0
- package/src/utilities/maps/box-model/_margin.scss +10 -0
- package/src/utilities/maps/box-model/_padding.scss +10 -0
- package/src/utilities/maps/box-model/_width.scss +16 -0
- package/src/utilities/maps/flexbox/_flex-basis.scss +12 -0
- package/src/utilities/maps/grid/_gap.scss +5 -0
- package/src/yummacss-core.scss +3 -0
- package/src/yummacss.scss +4 -0
- package/CHANGELOG.md +0 -73
- package/dist/yumma-core.css +0 -241423
- package/dist/yumma-core.min.css +0 -1
- package/gulpfile.js +0 -44
- package/src/_stylecent.scss +0 -68
- package/src/_utilities.scss +0 -1265
- package/src/abstracts/_colors.scss +0 -29
- package/src/abstracts/_functions.scss +0 -4
- package/src/abstracts/_layout.scss +0 -18
- package/src/abstracts/_mixins.scss +0 -589
- package/src/core.scss +0 -3
- package/src/yumma.scss +0 -10
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "../abstracts/variables" as vars;
|
|
4
|
+
@use "../abstracts/mixins/" as mix;
|
|
5
|
+
|
|
6
|
+
$yma-typography-utils: (
|
|
7
|
+
"font-size": (
|
|
8
|
+
"prefix": "fs",
|
|
9
|
+
"properties": (
|
|
10
|
+
"font-size",
|
|
11
|
+
),
|
|
12
|
+
"values": (
|
|
13
|
+
"xs": vars.$yma-font-size-xs,
|
|
14
|
+
"sm": vars.$yma-font-size-sm,
|
|
15
|
+
"md": vars.$yma-font-size-md,
|
|
16
|
+
"lg": vars.$yma-font-size-lg,
|
|
17
|
+
"xl": vars.$yma-font-size-xl,
|
|
18
|
+
"xxl": vars.$yma-font-size-2xl,
|
|
19
|
+
"3xl": vars.$yma-font-size-3xl,
|
|
20
|
+
"4xl": vars.$yma-font-size-4xl,
|
|
21
|
+
"5xl": vars.$yma-font-size-5xl,
|
|
22
|
+
"6xl": vars.$yma-font-size-6xl,
|
|
23
|
+
"7xl": vars.$yma-font-size-7xl,
|
|
24
|
+
"8xl": vars.$yma-font-size-8xl,
|
|
25
|
+
"9xl": vars.$yma-font-size-9xl,
|
|
26
|
+
),
|
|
27
|
+
),
|
|
28
|
+
|
|
29
|
+
"font-style": (
|
|
30
|
+
"prefix": "fs",
|
|
31
|
+
"properties": (
|
|
32
|
+
"font-style",
|
|
33
|
+
),
|
|
34
|
+
"values": (
|
|
35
|
+
"i": italic,
|
|
36
|
+
"n": normal,
|
|
37
|
+
),
|
|
38
|
+
),
|
|
39
|
+
|
|
40
|
+
"font-weight": (
|
|
41
|
+
"prefix": "fw",
|
|
42
|
+
"properties": (
|
|
43
|
+
"font-weight",
|
|
44
|
+
),
|
|
45
|
+
"values": (
|
|
46
|
+
"100": 100,
|
|
47
|
+
"200": 200,
|
|
48
|
+
"300": 300,
|
|
49
|
+
"400": 400,
|
|
50
|
+
"500": 500,
|
|
51
|
+
"600": 600,
|
|
52
|
+
"700": 700,
|
|
53
|
+
"800": 800,
|
|
54
|
+
"900": 900,
|
|
55
|
+
),
|
|
56
|
+
),
|
|
57
|
+
|
|
58
|
+
"letter-spacing": (
|
|
59
|
+
"prefix": "ls",
|
|
60
|
+
"properties": (
|
|
61
|
+
"letter-spacing",
|
|
62
|
+
),
|
|
63
|
+
"values": (
|
|
64
|
+
"0": 0em,
|
|
65
|
+
"1": -0.05em,
|
|
66
|
+
"2": -0.025em,
|
|
67
|
+
"3": 0.025em,
|
|
68
|
+
"4": 0.05em,
|
|
69
|
+
"5": 0.1em,
|
|
70
|
+
),
|
|
71
|
+
),
|
|
72
|
+
|
|
73
|
+
"line-height": (
|
|
74
|
+
"prefix": "lh",
|
|
75
|
+
"properties": (
|
|
76
|
+
"line-height",
|
|
77
|
+
),
|
|
78
|
+
"values": (
|
|
79
|
+
"1": 1,
|
|
80
|
+
"2": 1.25,
|
|
81
|
+
"3": 1.375,
|
|
82
|
+
"4": 1.5,
|
|
83
|
+
"5": 1.625,
|
|
84
|
+
"6": 2,
|
|
85
|
+
),
|
|
86
|
+
),
|
|
87
|
+
|
|
88
|
+
"list-style-position": (
|
|
89
|
+
"prefix": "lsp",
|
|
90
|
+
"properties": (
|
|
91
|
+
"list-style-position",
|
|
92
|
+
),
|
|
93
|
+
"values": (
|
|
94
|
+
"i": inside,
|
|
95
|
+
"o": outside,
|
|
96
|
+
),
|
|
97
|
+
),
|
|
98
|
+
|
|
99
|
+
"list-style-type": (
|
|
100
|
+
"prefix": "lst",
|
|
101
|
+
"properties": (
|
|
102
|
+
"list-style-type",
|
|
103
|
+
),
|
|
104
|
+
"values": (
|
|
105
|
+
"c": circle,
|
|
106
|
+
"d": disc,
|
|
107
|
+
"s": square,
|
|
108
|
+
),
|
|
109
|
+
),
|
|
110
|
+
|
|
111
|
+
"overflow-wrap": (
|
|
112
|
+
"prefix": "ow",
|
|
113
|
+
"properties": (
|
|
114
|
+
"overflow-wrap",
|
|
115
|
+
),
|
|
116
|
+
"values": (
|
|
117
|
+
"bw": break-word,
|
|
118
|
+
"n": normal,
|
|
119
|
+
),
|
|
120
|
+
),
|
|
121
|
+
|
|
122
|
+
"text-align": (
|
|
123
|
+
"prefix": "ta",
|
|
124
|
+
"properties": (
|
|
125
|
+
"text-align",
|
|
126
|
+
),
|
|
127
|
+
"values": (
|
|
128
|
+
"c": center,
|
|
129
|
+
"e": end,
|
|
130
|
+
"j": justify,
|
|
131
|
+
"ja": justify-all,
|
|
132
|
+
"l": left,
|
|
133
|
+
"mp": match-parent,
|
|
134
|
+
"r": right,
|
|
135
|
+
"s": start,
|
|
136
|
+
),
|
|
137
|
+
),
|
|
138
|
+
|
|
139
|
+
"text-decoration-line": (
|
|
140
|
+
"prefix": "tdl",
|
|
141
|
+
"properties": (
|
|
142
|
+
"text-decoration-line",
|
|
143
|
+
),
|
|
144
|
+
"values": (
|
|
145
|
+
"lt": line-through,
|
|
146
|
+
"none": none,
|
|
147
|
+
"o": overline,
|
|
148
|
+
"u": underline,
|
|
149
|
+
),
|
|
150
|
+
),
|
|
151
|
+
|
|
152
|
+
"text-decoration-style": (
|
|
153
|
+
"prefix": "tds",
|
|
154
|
+
"properties": (
|
|
155
|
+
"text-decoration-style",
|
|
156
|
+
),
|
|
157
|
+
"values": (
|
|
158
|
+
"d": dashed,
|
|
159
|
+
"s": solid,
|
|
160
|
+
"w": wavy,
|
|
161
|
+
),
|
|
162
|
+
),
|
|
163
|
+
|
|
164
|
+
"text-decoration-thickness": (
|
|
165
|
+
"prefix": "tdt",
|
|
166
|
+
"properties": (
|
|
167
|
+
"text-decoration-thickness",
|
|
168
|
+
),
|
|
169
|
+
"values": (
|
|
170
|
+
"0": vars.$yma-decoration-thickness * 0,
|
|
171
|
+
"1": vars.$yma-decoration-thickness,
|
|
172
|
+
"2": vars.$yma-decoration-thickness * 2,
|
|
173
|
+
"3": vars.$yma-decoration-thickness * 3,
|
|
174
|
+
"4": vars.$yma-decoration-thickness * 4,
|
|
175
|
+
"auto": auto,
|
|
176
|
+
"ff": from-font,
|
|
177
|
+
),
|
|
178
|
+
),
|
|
179
|
+
|
|
180
|
+
"text-decoration": (
|
|
181
|
+
"prefix": "td",
|
|
182
|
+
"properties": (
|
|
183
|
+
"text-decoration",
|
|
184
|
+
),
|
|
185
|
+
"values": (
|
|
186
|
+
"none": none,
|
|
187
|
+
"u": underline,
|
|
188
|
+
),
|
|
189
|
+
),
|
|
190
|
+
|
|
191
|
+
"text-indent": (
|
|
192
|
+
"prefix": "ti",
|
|
193
|
+
"properties": (
|
|
194
|
+
"text-indent",
|
|
195
|
+
),
|
|
196
|
+
"values": (
|
|
197
|
+
"0": 0px,
|
|
198
|
+
"1": 1px,
|
|
199
|
+
"2": 0.25rem,
|
|
200
|
+
"3": 0.5rem,
|
|
201
|
+
"4": 0.75rem,
|
|
202
|
+
),
|
|
203
|
+
),
|
|
204
|
+
|
|
205
|
+
"text-overflow": (
|
|
206
|
+
"prefix": "to",
|
|
207
|
+
"properties": (
|
|
208
|
+
"text-overflow",
|
|
209
|
+
),
|
|
210
|
+
"values": (
|
|
211
|
+
"c": clip,
|
|
212
|
+
"e": ellipsis,
|
|
213
|
+
),
|
|
214
|
+
),
|
|
215
|
+
|
|
216
|
+
"text-transform": (
|
|
217
|
+
"prefix": "tt",
|
|
218
|
+
"properties": (
|
|
219
|
+
"text-transform",
|
|
220
|
+
),
|
|
221
|
+
"values": (
|
|
222
|
+
"c": capitalize,
|
|
223
|
+
"l": lowercase,
|
|
224
|
+
"n": none,
|
|
225
|
+
"u": uppercase,
|
|
226
|
+
),
|
|
227
|
+
),
|
|
228
|
+
|
|
229
|
+
"text-underline-offset": (
|
|
230
|
+
"prefix": "tuo",
|
|
231
|
+
"properties": (
|
|
232
|
+
"text-underline-offset",
|
|
233
|
+
),
|
|
234
|
+
"values": (
|
|
235
|
+
"0": 0px,
|
|
236
|
+
"1": 1px,
|
|
237
|
+
"2": 2px,
|
|
238
|
+
"4": 4px,
|
|
239
|
+
"8": 8px,
|
|
240
|
+
"auto": auto,
|
|
241
|
+
),
|
|
242
|
+
),
|
|
243
|
+
|
|
244
|
+
"text-wrap": (
|
|
245
|
+
"prefix": "tw",
|
|
246
|
+
"properties": (
|
|
247
|
+
"text-wrap",
|
|
248
|
+
),
|
|
249
|
+
"values": (
|
|
250
|
+
"b": balance,
|
|
251
|
+
"n": nowrap,
|
|
252
|
+
"p": pretty,
|
|
253
|
+
"w": wrap,
|
|
254
|
+
),
|
|
255
|
+
),
|
|
256
|
+
|
|
257
|
+
"white-space": (
|
|
258
|
+
"prefix": "ws",
|
|
259
|
+
"properties": (
|
|
260
|
+
"white-space",
|
|
261
|
+
),
|
|
262
|
+
"values": (
|
|
263
|
+
"bs": break-spaces,
|
|
264
|
+
"n": normal,
|
|
265
|
+
"nw": nowrap,
|
|
266
|
+
"p": pre,
|
|
267
|
+
"pl": pre-line,
|
|
268
|
+
"pw": pre-wrap,
|
|
269
|
+
),
|
|
270
|
+
),
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
@each $properties, $map in $yma-typography-utils {
|
|
274
|
+
$prefix: map.get($map, "prefix");
|
|
275
|
+
$properties: map.get($map, "properties");
|
|
276
|
+
|
|
277
|
+
@include mix.create-utilities($map, $prefix, $properties);
|
|
278
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
|
|
5
|
+
$yma-dimension-map: map.merge(
|
|
6
|
+
(
|
|
7
|
+
"auto": auto,
|
|
8
|
+
"dvh": 100dvh,
|
|
9
|
+
"fc": fit-content,
|
|
10
|
+
"full": 100%,
|
|
11
|
+
"half": 50%,
|
|
12
|
+
"max": max-content,
|
|
13
|
+
"min": min-content,
|
|
14
|
+
),
|
|
15
|
+
fun.create-values(vars.$yma-dimension)
|
|
16
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
|
|
5
|
+
$yma-height-map: map.merge(
|
|
6
|
+
(
|
|
7
|
+
"auto": auto,
|
|
8
|
+
"dvh": 100dvh,
|
|
9
|
+
"fc": fit-content,
|
|
10
|
+
"full": 100%,
|
|
11
|
+
"half": 50%,
|
|
12
|
+
"max": max-content,
|
|
13
|
+
"min": min-content,
|
|
14
|
+
),
|
|
15
|
+
fun.create-values(vars.$yma-height)
|
|
16
|
+
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
|
|
5
|
+
$yma-width-map: map.merge(
|
|
6
|
+
(
|
|
7
|
+
"auto": auto,
|
|
8
|
+
"dvh": 100dvh,
|
|
9
|
+
"fc": fit-content,
|
|
10
|
+
"full": 100%,
|
|
11
|
+
"half": 50%,
|
|
12
|
+
"max": max-content,
|
|
13
|
+
"min": min-content,
|
|
14
|
+
),
|
|
15
|
+
fun.create-values(vars.$yma-width)
|
|
16
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
|
|
5
|
+
$yma-flex-basis-map: map.merge(
|
|
6
|
+
(
|
|
7
|
+
"auto": auto,
|
|
8
|
+
"full": 100%,
|
|
9
|
+
"half": 50%,
|
|
10
|
+
),
|
|
11
|
+
fun.create-values(vars.$yma-flex-basis)
|
|
12
|
+
);
|
package/CHANGELOG.md
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to the Yumma CSS will be documented in this file.
|
|
4
|
-
|
|
5
|
-
## [2.0.0]
|
|
6
|
-
|
|
7
|
-
### Added
|
|
8
|
-
- Add **Accent Color** utilities
|
|
9
|
-
- Add **Aspect Ratio** utilities
|
|
10
|
-
- Add **Backdrop Filter** utilities
|
|
11
|
-
- Add **Border Collapse** utilities
|
|
12
|
-
- Add **Border Style** utilities
|
|
13
|
-
- Add **Caption Side** utilities
|
|
14
|
-
- Add **Container** utilities
|
|
15
|
-
- Add **Font Style** utilities
|
|
16
|
-
- Add **Gap** utilities
|
|
17
|
-
- Add **Grid Column** utilities
|
|
18
|
-
- Add **Grid Row** utilities
|
|
19
|
-
- Add **Object Fit** utilities
|
|
20
|
-
- Add **Object Position** utilities
|
|
21
|
-
- Add **Outline Color** utilities
|
|
22
|
-
- Add **Outline Offset** utilities
|
|
23
|
-
- Add **Outline Style** utilities
|
|
24
|
-
- Add **Outline Width** utilities
|
|
25
|
-
- Add **Spacing** utilities
|
|
26
|
-
- Add **Table Layout** utilities
|
|
27
|
-
- Add **Text Decoration Color** utilities
|
|
28
|
-
- Add **Text Decoration Style** utilities
|
|
29
|
-
- Add **Text Decoration Thickness** utilities
|
|
30
|
-
- Add `_mixin.scss` partial
|
|
31
|
-
- Add `core.scss` file
|
|
32
|
-
- Add `functions.scss` partial
|
|
33
|
-
- Include **Hover** utility variants
|
|
34
|
-
- Include **Responsive** utility variants
|
|
35
|
-
- Include **Silver** color to the color palette
|
|
36
|
-
|
|
37
|
-
### Changed
|
|
38
|
-
|
|
39
|
-
- **Border Color** utilities no longer have `border-style` and `border-width` properties by default
|
|
40
|
-
- Base styles are now optional
|
|
41
|
-
- Colors now use HEX color format
|
|
42
|
-
- Fix `transparent` having color variants
|
|
43
|
-
- Fix conflict between `float: none;` (`f-none`) and `flex: none;` (`f-none`)
|
|
44
|
-
- New **Flex Basis** utilities - `fb-full`, `fb-half`
|
|
45
|
-
- New `auto` property in **Margin** and **Padding** utilities
|
|
46
|
-
- New `max-content` and `min-content` properties in **Grid Auto Columns**, **Grid Auto Rows**, **Height**, **Width**, **Dimension** and **Flex Basis**
|
|
47
|
-
- New `xxl` breakpoint utilities
|
|
48
|
-
- Simplify **Font Family** fallbacks
|
|
49
|
-
- Stylecent now covers the `<optgroup>`
|
|
50
|
-
- Update **Container** syntax from `cnn` to `cnt`
|
|
51
|
-
- Update **Float** syntax from `f-*static*` to `flo-*`
|
|
52
|
-
- Update **Font Family** utility syntaxes from `ff-d` to `ff-s`
|
|
53
|
-
- Update **Font Size** Extra large syntax from `fs-2xl` to `fs-xxl`
|
|
54
|
-
- Update **Position** syntax from `pos-*` to `p-*`
|
|
55
|
-
- Update **Position** syntax from `pos-static` to `p-s`
|
|
56
|
-
- Update **Position** syntax from `pos-sticky` to `p-t`
|
|
57
|
-
- Update `cnt` utility with new responsive utility rules
|
|
58
|
-
- Update property values from `0.75rem` to `0.25rem` for **Margin** and **Padding** utilities
|
|
59
|
-
- Update values in breakpoint utilities
|
|
60
|
-
|
|
61
|
-
### Removed
|
|
62
|
-
- Remove **Column** utilities
|
|
63
|
-
- Remove **Offset Gap** utilities
|
|
64
|
-
- Remove **Row** utility
|
|
65
|
-
- Remove `_grid.scss` partial
|
|
66
|
-
- Remove `badge-*` component
|
|
67
|
-
- Remove `btn-*` component
|
|
68
|
-
- Remove `btn-otl-*` component
|
|
69
|
-
- Remove `card-*` component
|
|
70
|
-
- Remove `ff-i` utility
|
|
71
|
-
- Remove `nav-*` component
|
|
72
|
-
- Remove Components folder
|
|
73
|
-
- Remove extra small value for breakpoint utilities
|