nightshade 3.9.0 → 3.11.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # nightshade
2
2
 
3
- The Nightshade umbrella: `@nightshadeui/stylesheets` and `@nightshadeui/components` in one dependency.
3
+ The Nightshade umbrella: `@nightshadeui/stylesheets`, `@nightshadeui/components` and `@nightshadeui/vite` in one dependency.
4
4
 
5
5
  ```bash
6
6
  npm i nightshade
@@ -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
- See [@nightshadeui/stylesheets](https://www.npmjs.com/package/@nightshadeui/stylesheets) and [@nightshadeui/components](https://www.npmjs.com/package/@nightshadeui/components).
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
+
27
+ See [@nightshadeui/stylesheets](https://www.npmjs.com/package/@nightshadeui/stylesheets), [@nightshadeui/components](https://www.npmjs.com/package/@nightshadeui/components) and [@nightshadeui/vite](https://www.npmjs.com/package/@nightshadeui/vite).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightshade",
3
- "version": "3.9.0",
3
+ "version": "3.11.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,16 @@
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.9.0",
20
- "@nightshadeui/stylesheets": "3.9.0"
23
+ "@nightshadeui/components": "3.11.0",
24
+ "@nightshadeui/stylesheets": "3.11.0",
25
+ "@nightshadeui/vite": "3.11.0"
21
26
  },
22
27
  "peerDependencies": {
23
28
  "vue": "^3.5.22"
package/vite.d.mts ADDED
@@ -0,0 +1 @@
1
+ export * from '@nightshadeui/vite';
package/vite.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from '@nightshadeui/vite';