mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 13:38:49 +08:00
25 lines
476 B
TypeScript
25 lines
476 B
TypeScript
import React from 'react';
|
|
import { getLightTheme, ThemeProvider } from '../src';
|
|
|
|
export const parameters = {
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
};
|
|
|
|
const lightTheme = getLightTheme('page');
|
|
|
|
export const decorators = [
|
|
(Story: React.ComponentType) => {
|
|
return (
|
|
<ThemeProvider theme={lightTheme}>
|
|
<Story />
|
|
</ThemeProvider>
|
|
);
|
|
},
|
|
];
|