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 6a717711cd5..1f998a6a7dd 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 @@ -136,7 +136,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) { @@ -247,9 +247,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);