@flodesk/grain 10.0.0 → 10.0.1

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
@@ -6,12 +6,20 @@
6
6
  npm install @flodesk/grain
7
7
  ```
8
8
 
9
- ### Add base styles
9
+ ### Wrap your application root component with GrainProvider.
10
10
 
11
11
  `base.css` contains all Grain global styles. Import it in the highest component possible so that it's accessible everywhere in the UI.
12
12
 
13
13
  ```js
14
- import '@flodesk/grain/es/styles/base.css';
14
+ import { GrainProvider } from '@flodesk/grain';
15
+
16
+ function Demo() {
17
+ return (
18
+ <GrainProvider>
19
+ <App />
20
+ </GrainProvider>
21
+ );
22
+ }
15
23
  ```
16
24
 
17
25
  ### Add text styles context
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import PropTypes from 'prop-types';
2
3
  import { Global } from '@emotion/react';
3
4
  import styles from '../styles';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flodesk/grain",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "Flodesk design system",
5
5
  "module": "es/index.js",
6
6
  "author": "Flodesk",