We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac5302 commit 61c9b93Copy full SHA for 61c9b93
web/store/theme.ts
@@ -200,6 +200,12 @@ export const useThemeStore = defineStore('theme', () => {
200
activeColorVariables.value = customTheme;
201
};
202
203
+ /**
204
+ * Creates a string of CSS rules preserving existing rules that are not defined in the theme variables
205
+ * @param themeVariables - The theme variables to apply
206
+ * @param body - The body element to apply the CSS to
207
+ * @returns A string of CSS rules
208
+ */
209
const createCssText = (themeVariables: ThemeVariables, body: HTMLBodyElement) => {
210
const existingStyles = body.style.cssText
211
.split(';')
0 commit comments