@oardi/css-utils 0.131.1 → 0.132.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/css-utils-manifest.json +1 -1
- package/css-utils-reference.md +1 -1
- package/package.json +5 -1
- package/readme.md +21 -1
package/css-utils-manifest.json
CHANGED
package/css-utils-reference.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oardi/css-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.132.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",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"sass": "./scss/theme.scss",
|
|
25
25
|
"default": "./scss/theme.scss"
|
|
26
26
|
},
|
|
27
|
+
"./tokens": {
|
|
28
|
+
"sass": "./scss/variables.scss",
|
|
29
|
+
"default": "./scss/variables.scss"
|
|
30
|
+
},
|
|
27
31
|
"./components/*": {
|
|
28
32
|
"sass": "./scss/components/*.scss",
|
|
29
33
|
"default": "./scss/components/*.scss"
|
package/readme.md
CHANGED
|
@@ -86,7 +86,27 @@ For custom responsive SCSS, import the breakpoint mixins without loading the lib
|
|
|
86
86
|
|
|
87
87
|
The Dart Sass CLI uses `@use 'pkg:@oardi/css-utils/breakpoints' as bp;` with `--pkg-importer=node`.
|
|
88
88
|
|
|
89
|
-
Import theme values without generating CSS via `@use '@oardi/css-utils/theme' as theme;`.
|
|
89
|
+
Import theme values without generating CSS via `@use '@oardi/css-utils/theme' as theme;`.
|
|
90
|
+
|
|
91
|
+
## Load individual components
|
|
92
|
+
|
|
93
|
+
Load the shared design tokens once alongside the components you need:
|
|
94
|
+
|
|
95
|
+
```scss
|
|
96
|
+
@use '@oardi/css-utils/tokens';
|
|
97
|
+
@use '@oardi/css-utils/components/button';
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
`tokens` emits the default CSS variables, dark-theme overrides (`data-theme="dark"` on `<html>`) and reduced-motion settings. It establishes the shared cascade order without loading reset, typography, utility or component rules. Component imports require these tokens unless your application already loads the full library or supplies all required variables itself.
|
|
101
|
+
|
|
102
|
+
The full `@use '@oardi/css-utils';` import already includes the tokens. Sass emits them only once if both entry points are used in the same compilation. Override CSS variables after the imports as shown below.
|
|
103
|
+
|
|
104
|
+
The Dart Sass CLI uses the same paths with a `pkg:` prefix and `--pkg-importer=node`:
|
|
105
|
+
|
|
106
|
+
```scss
|
|
107
|
+
@use 'pkg:@oardi/css-utils/tokens';
|
|
108
|
+
@use 'pkg:@oardi/css-utils/components/button';
|
|
109
|
+
```
|
|
90
110
|
|
|
91
111
|
## Browser support
|
|
92
112
|
|