@nearform/quantum 0.3.0 → 0.4.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 -12
- package/dist/global.css +453 -0
- package/dist/global.css.map +1 -1
- package/dist/index.d.ts +77 -1
- package/dist/index.js +5449 -63
- package/dist/index.js.map +1 -1
- package/dist/tailwind-plugin.js +1530 -0
- package/dist/tailwind-plugin.js.map +1 -0
- package/package.json +16 -2
package/README.md
CHANGED
|
@@ -14,25 +14,22 @@ npm install --save @nearform/quantum
|
|
|
14
14
|
|
|
15
15
|
#### With Tailwind
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Include or extend our colour configuration and add our components to Tailwind's content configuration. To ensure dark mode of the components isn't operating system dependent, add the `darkMode: "class"` entry to the config.
|
|
18
18
|
|
|
19
19
|
```js
|
|
20
20
|
// tailwind.config.js
|
|
21
|
-
import
|
|
22
|
-
|
|
21
|
+
import quantumPlugin from '@nearform/quantum/tailwind-plugin'
|
|
23
22
|
module.exports = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
colors,
|
|
29
|
-
}
|
|
30
|
-
};
|
|
23
|
+
//...tailwind config
|
|
24
|
+
plugins: [quantumPlugin]
|
|
25
|
+
darkMode: "class"
|
|
26
|
+
}
|
|
31
27
|
```
|
|
32
28
|
|
|
33
29
|
#### Without Tailwind
|
|
34
30
|
|
|
35
31
|
```js
|
|
36
|
-
|
|
37
|
-
import
|
|
32
|
+
//root component
|
|
33
|
+
import '@nearform/quantum/dist/global.css'
|
|
34
|
+
import { Button } from '@nearform/quantum'
|
|
38
35
|
```
|