This repository was archived by the owner on Aug 5, 2021. It is now read-only.
File tree 3 files changed +29
-6
lines changed
3 files changed +29
-6
lines changed Original file line number Diff line number Diff line change
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
5
+
6
+ ## [ 2.0.0] - 2019-02-01
7
+ ### Changed
8
+ - Callback param can be optional [ @ntnbrtnkv ] ( https://github.com/ntnbrtnkv )
9
+ ### Added
10
+ - Support for emotion v10 [ @teddybradford ] ( https://github.com/teddybradford )
11
+
12
+ ## [ 1.1.0] - 2018-12-12
13
+ ### Added
14
+ - Add callback for themes provider [ @patrickgordon ] ( https://github.com/patrickgordon )
15
+
16
+ ## [ 1.0.0] - 2018-12-06
17
+ - Initial release based on library from [ @echoulen ] ( https://github.com/echoulen )
Original file line number Diff line number Diff line change 1
- #### Please note:
2
- Currently only tested with emotion v9.
3
-
4
1
#### Installation
5
2
``` bash
6
3
yarn add storybook-addon-emotion-theme --dev
@@ -9,7 +6,7 @@ yarn add storybook-addon-emotion-theme --dev
9
6
#### Add to .storybook/addons.js
10
7
11
8
``` javascript
12
- import ' storybook-addon-emotion-theme/dist/src/ register' ;
9
+ import ' storybook-addon-emotion-theme/dist/register' ;
13
10
```
14
11
15
12
#### addDecorator to .storybook/config.js
@@ -36,7 +33,16 @@ storiesOf("demo", module)
36
33
```
37
34
38
35
#### Reminder
39
- Make sure every theme has a ` name ` property
36
+ Make sure every theme has a ` name ` property. For example:
37
+
38
+ ```
39
+ const myTheme = {
40
+ name: "Light",
41
+ primaryColor: "blue"
42
+ }
43
+ ```
44
+
45
+ This is used for displaying in the Storybook UI.
40
46
41
47
42
48
#### Contributing
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " storybook-addon-emotion-theme" ,
3
- "version" : " 1.1 .0" ,
3
+ "version" : " 2.0 .0" ,
4
4
"description" : " storybook addon with emotion theme" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments