import type { Preview } from '@storybook/react';
import '../../../avanza-ui/src/styles/studio-theme.css';

const preview: Preview = {
  parameters: {
    controls: {
      matchers: {
        color: /(background|color)$/i,
        date: /Date$/i,
      },
    },
    backgrounds: {
      default: 'dark',
      values: [
        {
          name: 'dark',
          value: '#0f0f0f',
        },
        {
          name: 'light',
          value: '#ffffff',
        },
      ],
    },
  },
  decorators: [
    (Story) => (
      <div className="studio-theme" style={{ padding: '20px', minHeight: '100vh' }}>
        <Story />
      </div>
    ),
  ],
};

export default preview;

