@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 CHANGED
@@ -14,25 +14,22 @@ npm install --save @nearform/quantum
14
14
 
15
15
  #### With Tailwind
16
16
 
17
- Inclue or extend our colour configuration and add our components to Tailwind's content configuration.
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 colors from '@nearform/quantum/dist/colors'
22
-
21
+ import quantumPlugin from '@nearform/quantum/tailwind-plugin'
23
22
  module.exports = {
24
- content: [
25
- "./node_modules/@nearform/quantum/**/*.js"
26
- ],
27
- theme: {
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
- import '@nearform/quantum/dist/global.css';
37
- import { Navbar } from '@nearform/quantum';
32
+ //root component
33
+ import '@nearform/quantum/dist/global.css'
34
+ import { Button } from '@nearform/quantum'
38
35
  ```