yummacss 1.2.0 → 2.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.
Files changed (47) hide show
  1. package/.prettierrc +9 -0
  2. package/CHANGELOG.md +56 -205
  3. package/LICENSE +1 -1
  4. package/README.md +20 -47
  5. package/dist/yumma-core.css +238809 -0
  6. package/dist/yumma-core.min.css +1 -0
  7. package/dist/yumma.css +212208 -51572
  8. package/dist/yumma.min.css +1 -1
  9. package/gulpfile.js +32 -16
  10. package/package.json +13 -21
  11. package/src/_base.scss +72 -0
  12. package/src/_fonts.scss +14 -0
  13. package/src/abstracts/_breakpoints.scss +43 -0
  14. package/src/abstracts/_colors.scss +29 -0
  15. package/src/abstracts/_extensions.scss +19 -0
  16. package/src/abstracts/_functions.scss +3 -0
  17. package/src/abstracts/_layout.scss +18 -0
  18. package/src/abstracts/_mixins.scss +575 -0
  19. package/src/abstracts/_theme.scss +18 -0
  20. package/src/abstracts/_variables.scss +68 -0
  21. package/src/core.scss +3 -0
  22. package/src/utilities/_borders.scss +214 -0
  23. package/src/utilities/_box-model.scss +107 -0
  24. package/src/utilities/_effects.scss +74 -0
  25. package/src/utilities/_filters.scss +57 -0
  26. package/src/utilities/_flexbox.scss +192 -0
  27. package/src/utilities/_grid.scss +320 -0
  28. package/src/utilities/_interactions.scss +111 -0
  29. package/src/utilities/_layout.scss +310 -0
  30. package/src/utilities/_outlines.scss +76 -0
  31. package/src/utilities/_tables.scss +61 -0
  32. package/src/utilities/_typography.scss +168 -0
  33. package/src/yumma.scss +23 -0
  34. package/index.js +0 -8
  35. package/yumma-css/_base.scss +0 -62
  36. package/yumma-css/_breakpoints.scss +0 -43
  37. package/yumma-css/_colors.scss +0 -323
  38. package/yumma-css/_fonts.scss +0 -19
  39. package/yumma-css/_grid.scss +0 -75
  40. package/yumma-css/_layout.scss +0 -18
  41. package/yumma-css/_utils.scss +0 -1330
  42. package/yumma-css/_variables.scss +0 -94
  43. package/yumma-css/components/_badge.scss +0 -33
  44. package/yumma-css/components/_button.scss +0 -55
  45. package/yumma-css/components/_card.scss +0 -23
  46. package/yumma-css/components/_navbar.scss +0 -23
  47. package/yumma-css/index.scss +0 -21
package/.prettierrc ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "semi": true,
3
+ "singleQuote": false,
4
+ "tabWidth": 2,
5
+ "trailingComma": "es5",
6
+ "printWidth": 80,
7
+ "bracketSameLine": true,
8
+ "bracketSpacing": true
9
+ }
package/CHANGELOG.md CHANGED
@@ -1,207 +1,58 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to the Yumma CSS Library will be documented in this file.
4
-
5
- ## v0.0.1
6
-
7
- ### Added
8
- - Initial release of Yumma CSS.
9
-
10
- ### Changed
11
- - None
12
-
13
- ### Fixed
14
- - None
15
-
16
- ### Deprecated
17
- - None
18
-
19
- ## v0.1.0
20
-
21
- ### Added
22
- - Improved utility class generation for Height, Margin, Padding, and Width.
23
- - Added new classes and selectors for Height, Margin, Padding, and Width properties.
24
-
25
- ### Changed
26
- - Replaced the `copyStyles` function with `minifyStyles` for faster CDN loading.
27
-
28
- ### Fixed
29
- - None
30
-
31
- ### Deprecated
32
- - None
33
-
34
- ## v0.1.1
35
-
36
- ### Added
37
- - None
38
-
39
- ### Changed
40
- - Updated readme file
41
-
42
- ### Fixed
43
- - None
44
-
45
- ### Deprecated
46
- - None
47
-
48
- ## v0.2.0
49
-
50
- ### Added
51
- - Added the `!default` flag to variables and maps in the _variables.scss file
52
-
53
- ### Changed
54
- - None
55
-
56
- ### Fixed
57
- - None
58
-
59
- ### Deprecated
60
- - None
61
-
62
- ## v1.0.0
63
-
64
- ### Added
65
- - Added `flow-root` property to **Display** classes.
66
- - Added `inline-start` and `inline-end` properties to **Float** classes.
67
- - Added `justify-all` and `match-parent` properties to **Text Align** classes.
68
- - Added `overline` property to **Text Decoration Line** classes.
69
- - Added `flex-start` and `flex-end` properties to **Align Items** classes.
70
- - Added `end`, `flex-start`, `flex-end`, `left`, `right`, `normal` and `stretch` properties to **Justify Content** classes.
71
- - Added `.mx` and `.my` **Margin** classes.
72
- - Added `.px` and `.py` **Padding** classes.
73
- - Added viewport values for **Height** and **Width** classes.
74
- - Added the color `lead` in the Color Palette.
75
- - Added **Align Content** classes.
76
- - Added **Align Self** classes.
77
- - Added **Flex Basis** classes.
78
- - Added **Flex Grow** classes.
79
- - Added **Grid Auto Columns** classes.
80
- - Added **Grid Auto Flow** classes.
81
- - Added **Grid Auto Rows** classes.
82
- - Added **Justify Items** classes.
83
- - Added **Justify Self** classes.
84
- - Added **Cursor** classes.
85
- - Added **List Style Type** classes.
86
- - Added **Appearance** classes.
87
- - Added **Pointer Events** classes.
88
- - Added **User Select** classes.
89
- - Added **Caret Colors** classes.
90
- - Added **Font Family** classes.
91
- - Added **Text Decoration** classes.
92
-
93
- ### Changed
94
- - Updated display class syntax from `dis-{value}` to `d-{value}`.
95
- - Updated hover state class syntax from `{value}-h-{value}` to `h:{value}`.
96
- - Updated `greet()` function name to `showVer()`.
97
- - Color palettes now use RGB.
98
-
99
- ### Fixed
100
- - Small CSS resetting improvements.
101
-
102
- ### Deprecated
103
- - Removed `break-all` and `keep-all` properties from **Overflow Wrap** classes.
104
- - Removed duplicate classes for **Justify Content** classes.
105
- - Removed class `nav-l` from navbar.scss.
106
-
107
- ## v1.0.1
108
-
109
- ### Added
110
- - None
111
-
112
- ### Changed
113
- - Changing Height and Width viewports from dynamic to standard.
114
-
115
- ### Fixed
116
- - Updated minify version.
117
-
118
- ### Deprecated
119
- - None
120
-
121
- ## v1.0.2
122
-
123
- ### Added
124
- - None
125
-
126
- ### Changed
127
- - Small CSS resetting improvements.
128
-
129
- ### Fixed
130
- - Fixed viewport classes from not working.
131
- - Fixed caret color light and dark variations.
132
-
133
- ### Deprecated
134
- - None
135
-
136
- ## v1.0.3
137
-
138
- ### Added
139
- - None
140
-
141
- ### Changed
142
- - Minified CSS file moved to the `/dist` folder.
143
-
144
- ### Fixed
145
- - None
146
-
147
- ### Deprecated
148
- - None
149
-
150
- ## v1.1.0
151
-
152
- ### Added
153
- - Added responsive classes for utility classes.
154
- - Added transition property to button component.
155
- - Added extra small variant for font size classes.
156
- - Added `.dim-{value}` classes.
157
-
158
- ### Changed
159
- - Updated syntax for column responsive classes.
160
- - Updated box shadow syntax from `bs-xsm` to `bs-xs` and `bs-xlg` to `bs-xl`.
161
- - Updated box shadow syntax from `fs-xlg` to `bs-xl`.
162
- - Updated box shadow syntax from `col-{value}` to `cols-{value}`.
163
-
164
- ### Fixed
165
- - Fixed list style type syntax from `tst-{value}` to `lst-{value}`.
166
- - Fixed `fs-md` class not working.
167
- - Fixed caret color variants.
168
-
169
- ### Deprecated
170
- - None
171
-
172
- ## v1.2.0
173
-
174
- ### Added
175
- - Added `fit-content` to **Height** and **Width** classes.
176
- - Added **Max Dimension** and **Min Dimension** classes.
177
- - Added `auto`, `full`, and `half` value to the **Flex** classes.
178
- - Added Indigo color to the color palette.
179
- - Added `transparent` to the color palette.
180
- - Added `none` property to **Box Shadow** class.
181
- - Added `.max-dim-{}` and `.min-dim-{}` classes.
182
- - Added responsive media queries to `.dim-{}`,`.max-dim-{}` and `.min-dim-{}` classes.
183
- - Added **Line Height** classes.
184
- - The `.btn{}` component is now smaller by default.
185
- - Improvements to the `_base.scss` partial file.
186
- - Improvements in the **Direction** classes.
187
- - Improvements to **Grid Template Columns** classes.
188
- - Improvements to **Grid Template Rows** classes.
189
- - Improvements to the **Flex Shrin**k clasess.
190
- - Improvements to the **Font Sizes** classes.
191
- - Improvements to the **Flex** classes.
192
- - Color palette redesign.
193
-
194
- ### Changed
195
- - Viewports units are not dynamic.
196
- - Removed default shadow in the `.nav{}` component.
197
- - **Border Radius** default value is now 4px instead of 8px.
198
- - Removed `.bs{}` class from **Box Shadow**.
199
-
200
- ### Fixed
201
- - None
202
-
203
- ### Deprecated
204
- - Removed complement button component.
205
- - Removed the `!default` flag from all variables.
206
- - Magenta color is deprecated.
207
- - The `showVer()` function is no longer available.
3
+ All notable changes to the Yumma CSS will be documented in this file.
4
+
5
+ ## [2.1.0]
6
+
7
+ ### Added
8
+
9
+ - Add `_borders.scss`, `_box-model.scss`, `_effects.scss`, `_filters.scss`, `_flexbox.scss`, `_grid.scss`, `_layout.scss`, `_interactions.scss`, `_outlines.scss`, `_tables.scss` and `_typography.scss`
10
+ - Add `_extensions.scss` and `_theme.scss`
11
+ - Add `cursor: pointer` to all `<button>` element
12
+ - Add the `0` value to **Opacity** utility variant
13
+ - Add the `auto` property to **Flex** utility variant
14
+
15
+ ### Changed
16
+
17
+ - New `baseline` **Align Content** utility variant
18
+ - New `baseline` **Align Items** utility variant
19
+ - New `cg-0` **Column Gap** and `rg-0` **Row Gap** utilities
20
+ - New `col-resize`, `default`, `ne-resize`, `nesw-resize`, `none`, `nw-resize`, `nwse-resize`, `progress`, `row-resize`, `s-resize`, `se-resize`, `sw-resize`, `w-resize`, `zoom-in`, `zoom-out` **Cursor** utility properties
21
+ - New `f-b` **Font Size** base utility
22
+ - New `font-size: inherit` and `font-weight: inherit` properties for heading and paragraph elements.
23
+ - New `fs-9xl` **Font Size** utility variant
24
+ - New `row dense` and `dense row` **Grid Auto Flow** utility variants
25
+ - New `table`, `inline-table` and `inline-grid` **Display** utility variants
26
+ - New `text` and `all` **User Select** utility variants
27
+ - Rename **Align Content** utility syntax from `ac-stretch` to `ac-s`
28
+ - Rename **Align Items** utility syntax from `ai-stretch` to `ai-s`
29
+ - Rename **Align Self** utility syntax from `as-stretch` to `as-s`
30
+ - Rename **Justify Items** utility syntax from `ji-stretch` to `ji-st`
31
+ - Rename **Justify Self** utility syntax from `js-stretch` to `ji-st`
32
+ - Rename **Object Position** utility syntax from `op-left` to `op-l`
33
+ - Rename **Position** utility syntax from `p-t` to `p-y`
34
+ - Rename **Position** utility syntax from `p-y` to `p-st`
35
+ - Rename `_miscellaneous.scss` to `_interactions.scss`
36
+ - Rename `$yma-direction` base value from `1px` to `0.25rem`
37
+ - Rename color variables from `$yma-colors-*` to `$yma-theme-*`
38
+ - Update **Border Radius** base value from `4px` to `0.25rem`
39
+ - Update **Border Width** base value from `4px` to `1px`
40
+ - Update **Flex Basis** base value from `1rem` to `0.25rem`
41
+ - Update **Flex** utility variants
42
+ - Update **Outline Offset** base value from `2px` to `1px`
43
+ - Update **Outline Width** base value from `2px` to `1px`
44
+ - Update **Spacing X** and **Spacing Y** calculations
45
+
46
+ ### Removed
47
+
48
+ - Delete `_utilities.scss` partial
49
+ - Remove `end` and `start` properties from **Align Content** utilities
50
+ - Remove `end` and `start` properties from **Align Items** utilities
51
+ - Remove `end` and `start` properties from **Align Self** utilities
52
+ - Remove `end`, `left`, `right` and `start` properties from **Justify Content** utilities
53
+ - Remove `er` **Cursor** variant
54
+ - Remove `flex-end`, `flex-start`, `left`, `normal` and `right` properties from **Justify Items** utilities
55
+ - Remove `flex-end`, `flex-start`, `left`, `normal`, `right` and `stretch` properties from **Justify Self** utilities
56
+ - Remove `hidden` property in **Border Style** utilities
57
+ - Remove `hidden` property in **Outline Style** utilities
58
+ - Remove variable inside **Spacing X** and **Spacing Y** utilities
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Yumma CSS
3
+ Copyright (c) Yumma CSS
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,58 +1,31 @@
1
- <p align="center">
2
- <img src="https://yummacss.com/img/yummacss.png" width="64" alt="Yumma CSS Logo">
3
- </p>
4
-
5
- <h3 align="center">Yumma CSS</h3>
1
+ <div align="center">
2
+ <a href="https://yummacss.com" target="_blank">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://www.yummacss.com/assets/vectors/dark-logo.svg">
5
+ <source media="(prefers-color-scheme: light)" srcset="https://www.yummacss.com/assets/vectors/light-logo.svg">
6
+ <img alt="Yumma CSS" src="https://www.yummacss.com/assets/vectors/light-logo.svg" width="220" style="max-width: 100%;">
7
+ </picture>
8
+ </a>
9
+ </div>
6
10
 
7
11
  <p align="center">
8
- Build beautiful websites with small class names
12
+ All the tools you need in one package, with abbreviated utility classes — goodbye, massive codebases!
9
13
  <br>
10
- <a href="https://yummacss.com"><strong>Explore Yumma CSS Docs ↝</strong></a>
11
- <br>
12
- <br>
13
- <a href="https://yummacss.com/playground">Try Yumma CSS</a>
14
-
15
- <a href="https://yummacss.com/blog/introducing-yummacss-intelephense">Our Extension</a>
16
-
17
- <a href="https://yummacss.com/blog">Blog</a>
18
-
19
- <a href="https://github.com/yumma-lib/yumma-css/issues">Issues</a>
20
- </p>
21
-
22
- <p align="center">
23
- <a href="https://www.npmjs.com/package/yummacss?activeTab=versions">
24
- <img src="https://img.shields.io/npm/v/yummacss" alt="npm version">
25
- </a>
26
- <a href="https://www.npmjs.com/yummacss">
27
- <img src="https://img.shields.io/npm/dt/yummacss" alt="Downloads">
28
- </a>
29
- <a href="https://github.com/yumma-lib/yumma-css-docs?tab=MIT-1-ov-file#readme">
30
- <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License">
31
- </a>
14
+ <a href="https://yummacss.com"><strong>Read the documentation ↝</strong></a>
32
15
  </p>
33
16
 
34
- ## Getting Started
35
-
36
- You can use [npm](https://www.npmjs.com/yummacss) to include the Yumma CSS in your project, or you can add it using [jsDelivr](https://www.jsdelivr.com/):
37
-
38
- ### cdn
39
- ```
40
- <link href="https://cdn.jsdelivr.net/npm/yummacss/dist/yumma.min.css" rel="stylesheet" crossorigin="anonymous">
41
- ```
17
+ ---
42
18
 
43
- ### npm
44
- ```
45
- npm install yummacss
46
- ```
19
+ ### Support
47
20
 
48
- ## Community
21
+ [Join our Discord server](https://discord.gg/CGw5vyqmQ6). To get support just createa post in the `#help` channel with the <kbd>yummacss</kbd> tag.
49
22
 
50
- If you have questions or want to stay updated on our projects, here are some ways to connect with us:
23
+ ### Contributing
51
24
 
52
- - Subscribe to our [YouTube](https://www.youtube.com/@rrenildopereiraa/videos) channel.
53
- - Join our [Discord](https://discord.gg/CGw5vyqmQ6) server.
54
- - Follow us on [Twitter](https://twitter.com/yummacss) for the latest updates.
25
+ I'd love your help with Yumma CSS. I've included some links below which you might find useful.
55
26
 
56
- ## Contributing
27
+ - [Join us on the `#yummacss` channel on Discord](https://discord.gg/V6s5jg5TfX)
28
+
29
+ ### Licensing
57
30
 
58
- If you'd like to show your support for our work, [you can buy me a coffee](https://www.buymeacoffee.com/rrenildoo).
31
+ MIT Copyright (c) 2023–present [Renildo Pereira](https://github.com/yumma-lib/yumma-css/graphs/contributors).