@fluixi-ui/skin-soft 0.1.0-alpha.8 → 0.1.0-alpha.9
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 +3 -2
- package/soft.css.js +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluixi-ui/skin-soft",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.9",
|
|
4
4
|
"description": "Soft corporate skin for Fluixi UI — clean, gently elevated dashboard look; activate with data-ui=\"soft\"",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"files": [
|
|
21
21
|
"soft.css",
|
|
22
|
+
"soft.css.js",
|
|
22
23
|
"README.md",
|
|
23
24
|
"LICENSE"
|
|
24
25
|
],
|
|
@@ -27,6 +28,6 @@
|
|
|
27
28
|
"./styles.css": "./soft.css"
|
|
28
29
|
},
|
|
29
30
|
"scripts": {
|
|
30
|
-
"build": "
|
|
31
|
+
"build": "node ../../scripts/css-loaders.mjs soft.css"
|
|
31
32
|
}
|
|
32
33
|
}
|
package/soft.css.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const href = new URL('./soft.css', import.meta.url).href;
|
|
2
|
+
if (typeof document !== 'undefined' && !document.querySelector(`link[data-flx-ui="${href}"]`)) {
|
|
3
|
+
const link = document.createElement('link');
|
|
4
|
+
link.rel = 'stylesheet';
|
|
5
|
+
link.href = href;
|
|
6
|
+
link.dataset.flxUi = href;
|
|
7
|
+
document.head.appendChild(link);
|
|
8
|
+
}
|