diff --git a/src/utils/exportUtils/exportCSS.ts b/src/utils/exportUtils/exportCSS.ts index 671d332618..9f52edf89a 100644 --- a/src/utils/exportUtils/exportCSS.ts +++ b/src/utils/exportUtils/exportCSS.ts @@ -39,7 +39,8 @@ function mutateCssText(css: string): string { const getExportCSS = async (usedClasses: Set): Promise => { // only include bundle.css and the data-mx-theme=light styling const stylesheets = Array.from(document.styleSheets).filter(s => { - return s.href?.endsWith("bundle.css") || (s.ownerNode as HTMLStyleElement).dataset.mxTheme === "light"; + return s.href?.endsWith("bundle.css") || + (s.ownerNode as HTMLStyleElement).dataset.mxTheme.toLowerCase() === "light"; }); let css = "";