@fluixi-ui/skin-soft 0.1.0-alpha.7 → 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 +1 -1
- 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
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* Colour stays theme-driven: this skin only touches shape, elevation, density and
|
|
17
17
|
* motion, so it inherits `data-theme` (light/dark/hc) and `data-accent` untouched.
|
|
18
18
|
*/
|
|
19
|
-
@layer flx.reset, flx.base, flx.tokens, flx.components, flx.skin;
|
|
19
|
+
@layer flx.reset, flx.base, flx.tokens, flx.components, flx.skin, flx.fx;
|
|
20
20
|
|
|
21
21
|
@layer flx.skin {
|
|
22
22
|
/* ---- Global soft tokens --------------------------------------------------
|
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
|
+
}
|