fix(artboard): apply custom text and background color

This commit is contained in:
abizek
2024-04-01 19:31:28 +05:30
parent a578bd1054
commit afe52da92d
5 changed files with 27 additions and 5 deletions

View File

@ -20,7 +20,7 @@ export const Page = ({ mode = "preview", pageNumber, children }: Props) => {
return (
<div
data-page={pageNumber}
className={cn("relative bg-white", mode === "builder" && "shadow-2xl")}
className={cn("relative bg-background text-foreground", mode === "builder" && "shadow-2xl")}
style={{
fontFamily,
width: `${pageSizeMap[page.format].width * MM_TO_PX}px`,