Setup library for publishing to npm

This commit is contained in:
2025-03-31 20:56:14 +01:00
parent eaa19a5c38
commit f9aadb20d3
52 changed files with 702 additions and 229 deletions
+3 -4
View File
@@ -3,7 +3,7 @@ import type { Preview } from '@storybook/react'
import { ThemeProvider } from 'styled-components';
import { withThemeFromJSXProvider } from '@storybook/addon-themes';
import { theme } from '../src/themes';
import { defaultTheme } from '../src/themes';
import GlobalStyles from '../src/components/GlobalStyles';
@@ -16,15 +16,14 @@ const preview: Preview = {
},
},
},
decorators: [withThemeFromJSXProvider({
themes: {
theme,
theme: defaultTheme,
},
defaultTheme: 'theme',
Provider: ThemeProvider,
GlobalStyles,
})]
})],
};
export default preview;