@oardi/css-utils 0.118.0 → 0.119.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oardi/css-utils",
3
- "version": "0.118.0",
3
+ "version": "0.119.0",
4
4
  "author": "Ardian Shala",
5
5
  "homepage": "https://css-utils.oardi.com",
6
6
  "description": "Powerful set of semantic css classes with support for breakpoints, directions and spacings",
@@ -16,6 +16,10 @@
16
16
  "sass": "./scss/index.scss",
17
17
  "default": "./scss/index.scss"
18
18
  },
19
+ "./breakpoints": {
20
+ "sass": "./scss/mixins/breakpoints.scss",
21
+ "default": "./scss/mixins/breakpoints.scss"
22
+ },
19
23
  "./scss/*": "./scss/*"
20
24
  },
21
25
  "files": [
package/readme.md CHANGED
@@ -70,6 +70,20 @@ Responsive utilities are mobile-first. Classes without a breakpoint apply at eve
70
70
 
71
71
  Display utilities intentionally override the grid container at their active breakpoint. For example, `class="grid d-lg-block"` uses the grid below `lg` and switches to block layout from `lg` upward.
72
72
 
73
+ For custom responsive SCSS, import the breakpoint mixins without loading the library's CSS again:
74
+
75
+ ```scss
76
+ @use '@oardi/css-utils/breakpoints' as bp;
77
+
78
+ .sidebar {
79
+ @include bp.media-up(md) {
80
+ display: block;
81
+ }
82
+ }
83
+ ```
84
+
85
+ The Dart Sass CLI uses `@use 'pkg:@oardi/css-utils/breakpoints' as bp;` with `--pkg-importer=node`.
86
+
73
87
  ## Browser support
74
88
 
75
89
  The minimum supported versions for the compiled library CSS are:
@@ -26,9 +26,3 @@
26
26
  @error "Breakpoint `#{$size}` not found!";
27
27
  }
28
28
  }
29
-
30
- // usage
31
- // @use '@oardi/css-utils/scss/mixins/breakpoints' as bp;
32
- // @include bp.media(md) {
33
- // dosomething;
34
- // }