1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-01 15:11:21 +01:00
immich/web/.storybook/preview.ts

73 lines
1.3 KiB
TypeScript
Raw Normal View History

import { withThemeByClassName } from '@storybook/addon-themes';
2024-06-04 18:06:28 -04:00
import type { Preview } from '@storybook/svelte';
import '../src/app.css';
export const decorators = [
withThemeByClassName({
themes: {
light: 'light',
dark: 'dark',
},
defaultTheme: 'light',
}),
];
2024-06-04 18:06:28 -04:00
const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
viewport: {
viewports: {
'639': {
name: 'mobile',
styles: {
width: '639px',
height: '100%',
},
},
'640': {
name: 'sm',
styles: {
width: '640px',
height: '100%',
},
},
'768': {
name: 'md',
styles: {
width: '768px',
height: '100%',
},
},
'1024': {
name: 'lg',
styles: {
width: '1024px',
height: '100%',
},
},
'1280': {
name: 'xl',
styles: {
width: '1280px',
height: '100%',
},
},
'1536': {
name: '2xl',
styles: {
width: '1536px',
height: '100%',
},
},
},
},
2024-06-04 18:06:28 -04:00
},
};
export default preview;