@substrate-system/dialog 0.0.16 → 0.0.17

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.
Files changed (2) hide show
  1. package/README.md +17 -1
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -60,7 +60,7 @@ npm i -S @substrate-system/dialog
60
60
  > See [abeautifulsite.net](https://www.abeautifulsite.net/posts/revisiting-fouce).
61
61
  >
62
62
 
63
- In the example, we have:
63
+ This is how I do it in the example page:
64
64
 
65
65
  ```ts
66
66
  import { ModalWindow } from '@substrate-system/dialog'
@@ -98,6 +98,22 @@ body {
98
98
 
99
99
  ### CSS
100
100
 
101
+ #### Import
102
+
103
+ If you are using a bundler:
104
+
105
+ ```js
106
+ import '@substrate-system/dialog/css'
107
+ ```
108
+
109
+ Or via CSS imports:
110
+
111
+ ```css
112
+ @import url("../node_modules/@substrate-system/dialog/dist/index.css");
113
+ ```
114
+
115
+ #### CSS Variables
116
+
101
117
  Customize the CSS with some variables.
102
118
 
103
119
  ```css
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@substrate-system/dialog",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "description": "Modal dialog window",
@@ -13,6 +13,7 @@
13
13
  "import": "./dist/index.js",
14
14
  "require": "./dist/index.cjs"
15
15
  },
16
+ "./css": "./dist/index.css",
16
17
  "./*": {
17
18
  "import": [
18
19
  "./dist/*.js",