nightshade 3.8.0 → 3.10.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/README.md +9 -0
- package/package.json +7 -3
- package/vite.d.mts +1 -0
- package/vite.mjs +1 -0
package/README.md
CHANGED
|
@@ -15,4 +15,13 @@ npm i nightshade
|
|
|
15
15
|
import { Btn, InputText } from 'nightshade'; /* each component brings its own CSS */
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
```ts
|
|
19
|
+
// vite.config.ts: the layer order ahead of every stylesheet, and your components' styles in your layer
|
|
20
|
+
import { cssLayer, cssLayerOrder } from 'nightshade/vite';
|
|
21
|
+
|
|
22
|
+
export default defineConfig({
|
|
23
|
+
plugins: [cssLayerOrder(['acme']), cssLayer('acme'), vue()],
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
18
27
|
See [@nightshadeui/stylesheets](https://www.npmjs.com/package/@nightshadeui/stylesheets) and [@nightshadeui/components](https://www.npmjs.com/package/@nightshadeui/components).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nightshade",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "A seed for application-owned design systems: CSS variables first, Vue primitives optional",
|
|
5
5
|
"author": "Boris Okunskiy",
|
|
6
6
|
"license": "ISC",
|
|
@@ -13,11 +13,15 @@
|
|
|
13
13
|
"./css": {
|
|
14
14
|
"types": "./css.d.ts",
|
|
15
15
|
"default": "./index.css"
|
|
16
|
+
},
|
|
17
|
+
"./vite": {
|
|
18
|
+
"types": "./vite.d.mts",
|
|
19
|
+
"import": "./vite.mjs"
|
|
16
20
|
}
|
|
17
21
|
},
|
|
18
22
|
"dependencies": {
|
|
19
|
-
"@nightshadeui/components": "3.
|
|
20
|
-
"@nightshadeui/stylesheets": "3.
|
|
23
|
+
"@nightshadeui/components": "3.10.0",
|
|
24
|
+
"@nightshadeui/stylesheets": "3.10.0"
|
|
21
25
|
},
|
|
22
26
|
"peerDependencies": {
|
|
23
27
|
"vue": "^3.5.22"
|
package/vite.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@nightshadeui/components/vite';
|
package/vite.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@nightshadeui/components/vite';
|