Skip to content

Commit

Permalink
chore(ui-docs): Updated storybook files to use typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarDev committed Oct 16, 2024
1 parent 20926b0 commit 0fd77fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
5 changes: 1 addition & 4 deletions web/apps/ui-docs/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ import type { StorybookConfig } from '@storybook/react-vite';
const config: StorybookConfig = {
stories: ["../stories"],
addons: [
// getAbsolutePath("@storybook/addon-links"),
// getAbsolutePath("@storybook/addon-essentials"),
// getAbsolutePath("@storybook/addon-themes")
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-themes'
],
framework: '@storybook/react-vite', // 👈 Add this
framework: '@storybook/react-vite',
docs: {
autodocs: true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import storybookSignalcoTheme from './signalco-theme';
import { withThemeByClassName } from '@storybook/addon-themes';
import '../global.css';
import { Preview } from '@storybook/react';

const preview = {
const preview: Preview = {
parameters: {
controls: {
matchers: {
Expand All @@ -21,7 +22,7 @@ const preview = {
dark: 'dark'
},
defaultTheme: 'dark',
}),
})
]
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { create } from '@storybook/theming/create';

export type ThemeVars = ReturnType<typeof create>;
export default create({
base: 'dark',
brandTitle: 'signalco UI',
brandUrl: 'https://ui.signalco.io',
brandImage: 'https://www.signalco.io/LogotypeDark.png',
brandTarget: '_self'
});
brandTarget: '_self',
}) as ThemeVars;

0 comments on commit 0fd77fd

Please sign in to comment.