File tree Expand file tree Collapse file tree 7 files changed +40
-2
lines changed Expand file tree Collapse file tree 7 files changed +40
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { defineConfig } from 'histoire'
2
+ import { HstVue } from '@histoire/plugin-vue'
3
+ import resolveConfig from 'tailwindcss/resolveConfig'
4
+ import tailwindConfig from './tailwind.config.js'
5
+
6
+ const fullConfig = resolveConfig ( tailwindConfig )
7
+
8
+ export default defineConfig ( {
9
+ setupFile : './histoire.setup.ts' ,
10
+ plugins : [ HstVue ( ) ] ,
11
+ theme : {
12
+ title : 'Espresso Design System.' ,
13
+ defaultColorScheme : 'light' ,
14
+ hideColorSchemeSwitch : true ,
15
+ logo : {
16
+ square : './frappe-ui-logo-200.png' ,
17
+ light : './frappe-ui-logo-200.png' ,
18
+ dark : './frappe-ui-logo-200.png' ,
19
+ } ,
20
+ colors : {
21
+ gray : fullConfig . theme . colors . gray ,
22
+ primary : fullConfig . theme . colors . orange ,
23
+ } ,
24
+ } ,
25
+ } )
Original file line number Diff line number Diff line change
1
+ import './src/style.css'
Original file line number Diff line number Diff line change 15
15
"build" : " vite build" ,
16
16
"preview" : " vite preview" ,
17
17
"storybook" : " storybook dev -p 6006" ,
18
- "build-storybook" : " storybook build"
18
+ "build-storybook" : " storybook build" ,
19
+ "story:dev" : " histoire dev" ,
20
+ "story:build" : " histoire build" ,
21
+ "story:preview" : " histoire preview"
19
22
},
20
23
"files" : [
21
24
" src" ,
60
63
"vue-router" : " ^4.1.6"
61
64
},
62
65
"devDependencies" : {
66
+ "@histoire/plugin-vue" : " ^0.16.1" ,
63
67
"@storybook/addon-essentials" : " ^7.0.0-beta.61" ,
64
68
"@storybook/addon-interactions" : " ^7.0.0-beta.61" ,
65
69
"@storybook/addon-links" : " ^7.0.0-beta.61" ,
70
74
"@vitejs/plugin-vue" : " ^4.0.0" ,
71
75
"autoprefixer" : " ^10.4.13" ,
72
76
"cross-fetch" : " ^3.1.5" ,
77
+ "histoire" : " ^0.16.2" ,
73
78
"husky" : " >=6" ,
74
79
"lint-staged" : " >=10" ,
75
80
"postcss" : " ^8.4.21" ,
Original file line number Diff line number Diff line change
1
+ export default {
2
+ plugins : {
3
+ tailwindcss : { } ,
4
+ autoprefixer : { } ,
5
+ } ,
6
+ }
Original file line number Diff line number Diff line change
1
+ /// <reference types="vite/client" />
2
+ /// <reference types="@histoire/plugin-vue/components" />
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments