@odx/icons 4.0.0-rc.19 → 4.0.0-rc.20
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/README.md +17 -1
- package/generated/all.scss +3869 -0
- package/main.scss +34 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -94,7 +94,23 @@ icon.setAttribute('name', 'user');
|
|
|
94
94
|
document.body.appendChild(icon);
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
### SCSS Example
|
|
98
|
+
|
|
99
|
+
```scss
|
|
100
|
+
@use "@odx/icons/main" as odxIcons;
|
|
101
|
+
|
|
102
|
+
.my-icon-user {
|
|
103
|
+
@include odxIcons.icon("core::user");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.my-icon-alarm {
|
|
107
|
+
@include odxIcons.icon("safety::alarm");
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
> We use the `::after` pseudo element to apply our svg image mask, ensure you don't override those styles.
|
|
112
|
+
|
|
113
|
+
#### CDN Example
|
|
98
114
|
|
|
99
115
|
```js
|
|
100
116
|
import { loadAssets } from '@odx/assets-utils';
|