fix: the exported pdf has part white background in dark mode (#3408)

This commit is contained in:
xiaodong zuo
2023-07-28 03:50:20 +08:00
committed by GitHub
parent a3d665503f
commit af4e860176
6 changed files with 37 additions and 82 deletions
@@ -1,3 +1,4 @@
import { lightCssVariables } from '@toeverything/theme';
import type { ComplexStyleRule } from '@vanilla-extract/css';
import { globalStyle, style } from '@vanilla-extract/css';
@@ -53,6 +54,12 @@ globalStyle(`html[data-theme="dark"] ${appStyle}`, {
vars: {
'--affine-noise-opacity': '0.1',
},
'@media': {
print: {
vars: lightCssVariables,
},
},
});
export const mainContainerStyle = style({