AFFiNE/packages/frontend/component/.storybook/preview.css.ts

23 lines
523 B
TypeScript
Raw Normal View History

2023-12-04 11:32:19 +03:00
import { globalStyle } from '@vanilla-extract/css';
globalStyle('*', {
margin: 0,
padding: 0,
});
globalStyle('body', {
color: 'var(--affine-text-primary-color)',
fontFamily: 'var(--affine-font-family)',
fontSize: 'var(--affine-font-base)',
lineHeight: 'var(--affine-font-height)',
backgroundColor: 'var(--affine-background-primary-color)',
});
globalStyle('.docs-story', {
backgroundColor: 'var(--affine-background-primary-color)',
});
globalStyle('body.sb-main-fullscreen', {
overflowY: 'auto',
});