diff --git a/apps/showcase/components/layout/AppDesigner.vue b/apps/showcase/components/layout/AppDesigner.vue index 7a85f26a0..26a1124c0 100644 --- a/apps/showcase/components/layout/AppDesigner.vue +++ b/apps/showcase/components/layout/AppDesigner.vue @@ -107,8 +107,7 @@ export default { body: { key: theme.key, preset: theme.preset, - config: theme.config, - license_key: this.$appState.designer.licenseKey + config: theme.config } }); @@ -168,15 +167,14 @@ export default { } }, async loadFont(fontFamily, weight) { - const fontFamilyPath = fontFamily.toLowerCase().replace(/\s+/g, '-'); - const fontUrl = `https://fonts.bunny.net/${fontFamilyPath}/files/${fontFamilyPath}-latin-${weight}-normal.woff2`; - - const font = new FontFace(fontFamily, `url(${fontUrl})`, { - weight: weight.toString(), - style: 'normal' - }); - try { + const fontFamilyPath = fontFamily.toLowerCase().replace(/\s+/g, '-'); + const fontUrl = `https://fonts.bunny.net/${fontFamilyPath}/files/${fontFamilyPath}-latin-${weight}-normal.woff2`; + const font = new FontFace(fontFamily, `url(${fontUrl})`, { + weight: weight.toString(), + style: 'normal' + }); + const loadedFont = await font.load(); document.fonts.add(loadedFont); diff --git a/apps/showcase/components/layout/designer/create/DesignCreateTheme.vue b/apps/showcase/components/layout/designer/create/DesignCreateTheme.vue index 4863277fb..e2858ffae 100644 --- a/apps/showcase/components/layout/designer/create/DesignCreateTheme.vue +++ b/apps/showcase/components/layout/designer/create/DesignCreateTheme.vue @@ -108,8 +108,8 @@ export default { name: this.themeName, preset: newPreset, config: { - font_size: '14px', - font_family: 'Inter var' + fontSize: '14px', + fontFamily: 'Inter var' } } }); @@ -136,8 +136,8 @@ export default { name: this.themeName, figma_tokens: this.figmaData, config: { - font_size: '14px', - font_family: 'Inter var' + fontSize: '14px', + fontFamily: 'Inter var' } } }); @@ -179,8 +179,8 @@ export default { key: t_key, preset: preset, config: { - font_size: '14px', - font_family: 'Inter var' + fontSize: '14px', + fontFamily: 'Inter var' } }; this.design; diff --git a/apps/showcase/components/layout/designer/dashboard/DesignDashboard.vue b/apps/showcase/components/layout/designer/dashboard/DesignDashboard.vue index b58a0feb1..fa2a8ead4 100644 --- a/apps/showcase/components/layout/designer/dashboard/DesignDashboard.vue +++ b/apps/showcase/components/layout/designer/dashboard/DesignDashboard.vue @@ -188,8 +188,8 @@ export default { }; usePreset(this.$appState.designer.theme.preset); - this.designerService.applyFont(this.$appState.designer.theme.config.font_family); - document.documentElement.style.fontSize = this.$appState.designer.theme.config.font_size; + this.designerService.applyFont(this.$appState.designer.theme.config.fontFamily); + document.documentElement.style.fontSize = this.$appState.designer.theme.config.fontSize; this.designerService.refreshACTokens(); this.$appState.designer.activeView = 'editor'; } diff --git a/apps/showcase/components/layout/designer/editor/settings/DesignSettings.vue b/apps/showcase/components/layout/designer/editor/settings/DesignSettings.vue index 5b120190f..2ea8b749f 100644 --- a/apps/showcase/components/layout/designer/editor/settings/DesignSettings.vue +++ b/apps/showcase/components/layout/designer/editor/settings/DesignSettings.vue @@ -5,14 +5,14 @@