diff --git a/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js b/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js index ffe6bcdd28a..d864ae97d6b 100644 --- a/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js +++ b/flow-server/src/main/resources/plugins/application-theme-plugin/theme-generator.js @@ -138,7 +138,7 @@ function generateThemeFile(themeFolder, themeName, themeProperties, productionMo let themeFile = headerImport; if (componentsFiles.length > 0) { - themeFile += 'import { css, unsafeCSS, registerStyles } from \'@vaadin/vaadin-themable-mixin/register-styles\';\n'; + themeFile += 'import { unsafeCSS, registerStyles } from \'@vaadin/vaadin-themable-mixin/register-styles\';\n'; } if (themeProperties.parent) { @@ -250,9 +250,7 @@ function generateThemeFile(themeFolder, themeName, themeProperties, productionMo // Don't format as the generated file formatting will get wonky! const componentString = `registerStyles( '${tag}', - css\` - \${unsafeCSS(${variable}.toString())} - \` + unsafeCSS(${variable}.toString()) ); `; componentCssCode.push(componentString);