File tree Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 1
- import ' ../src/index.css' ;
1
+ import " ../src/index.css" ;
2
2
3
3
import { withThemeByClassName } from "@storybook/addon-themes" ;
4
4
@@ -13,14 +13,15 @@ const preview = {
13
13
} ,
14
14
} ,
15
15
16
- decorators : [ withThemeByClassName ( {
16
+ decorators : [
17
+ withThemeByClassName ( {
17
18
themes : {
18
- // nameOfTheme: 'classNameForTheme',
19
- 'ZopDev' : 'zopdev' ,
20
- 'Forest' : 'forest'
19
+ ZopDev : "zopdev" ,
20
+ Dark : "forest" ,
21
21
} ,
22
- defaultTheme : 'ZopDev' ,
23
- } ) ]
22
+ defaultTheme : "ZopDev" ,
23
+ } ) ,
24
+ ] ,
24
25
} ;
25
26
26
27
export default preview ;
Original file line number Diff line number Diff line change 1
1
/** @type {DefaultColors } */
2
- const colors = require ( ' tailwindcss/colors' ) ;
3
- const { createThemes } = require ( ' tw-colors' ) ;
2
+ const colors = require ( " tailwindcss/colors" ) ;
3
+ const { createThemes } = require ( " tw-colors" ) ;
4
4
5
5
module . exports = {
6
6
content : [ "./src/**/*.{html,js}" ] ,
@@ -49,14 +49,13 @@ module.exports = {
49
49
// ]
50
50
// })
51
51
52
- createThemes ( {
53
- forest : {
54
- primary : colors . green
55
- } ,
56
- zopdev : {
57
- primary : colors . cyan
58
- }
59
- } )
52
+ createThemes ( {
53
+ forest : {
54
+ primary : colors . black ,
55
+ } ,
56
+ zopdev : {
57
+ primary : colors . cyan ,
58
+ } ,
59
+ } ) ,
60
60
] ,
61
- }
62
-
61
+ } ;
You can’t perform that action at this time.
0 commit comments