chore: Add RTL, Storybook, eslint rules and AGENTS
This commit is contained in:
24 files changed
+7288
-5186
No files matched your search
@@ -0,0 +1,39 @@
|
||||
import { withThemeByClassName } from '@storybook/addon-themes';
|
||||
|
||||
import type { Preview } from '@storybook/react';
|
||||
import '../src/global.css';
|
||||
|
||||
const preview: Preview = {
|
||||
parameters: {
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
date: /Date$/i,
|
||||
},
|
||||
},
|
||||
backgrounds: {
|
||||
default: 'light',
|
||||
values: [
|
||||
{
|
||||
name: 'light',
|
||||
value: '#ffffff',
|
||||
},
|
||||
{
|
||||
name: 'dark',
|
||||
value: '#0a0a0a',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
decorators: [
|
||||
withThemeByClassName({
|
||||
themes: {
|
||||
light: '',
|
||||
dark: 'dark',
|
||||
},
|
||||
defaultTheme: 'light',
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
export default preview;
|
||||
Reference in new issue
Block a user