diff --git a/apps/showcase/components/layout/AppDesigner.vue b/apps/showcase/components/layout/AppDesigner.vue index 5e5ec15b9..37a7f074f 100644 --- a/apps/showcase/components/layout/AppDesigner.vue +++ b/apps/showcase/components/layout/AppDesigner.vue @@ -50,7 +50,7 @@ -
+
@@ -62,7 +62,7 @@ Common -
+
@@ -100,7 +100,9 @@ - Component tokens are not supported by the Visual Editor at the moment and will be available with a future update. + + + Extend the theming system with your own design tokens e.g. accent.color. Do not use curly braces in the name field. @@ -204,13 +206,7 @@ export default { }, mounted() { if (!this.$appState.designer.preset) { - const defaultPreset = presets.Aura; - - this.$appState.designer.preset = { - primitive: defaultPreset.primitive, - semantic: defaultPreset.semantic - }; - + this.$appState.designer.preset = presets.Aura; this.replaceColorPalette(); this.generateACTokens(null, this.$appState.designer.preset); } @@ -265,10 +261,7 @@ app.mount("#app"); document.body.classList.remove('material'); } - this.$appState.designer.preset = { - primitive: newPreset.primitive, - semantic: newPreset.semantic - }; + this.$appState.designer.preset = newPreset; this.replaceColorPalette(); @@ -351,7 +344,7 @@ app.mount("#app"); }, generateACTokens(parentPath, obj) { for (let key in obj) { - if (key === 'dark') { + if (key === 'dark' || key === 'components') { continue; } diff --git a/apps/showcase/components/layout/designer/DesignTokenField.vue b/apps/showcase/components/layout/designer/DesignTokenField.vue index 470e0fd32..90c9ea605 100644 --- a/apps/showcase/components/layout/designer/DesignTokenField.vue +++ b/apps/showcase/components/layout/designer/DesignTokenField.vue @@ -1,6 +1,6 @@ + + diff --git a/apps/showcase/components/layout/designer/component/DesignComponentSection.vue b/apps/showcase/components/layout/designer/component/DesignComponentSection.vue new file mode 100644 index 000000000..38b96d7dc --- /dev/null +++ b/apps/showcase/components/layout/designer/component/DesignComponentSection.vue @@ -0,0 +1,102 @@ + + +