@webmate-studio/builder 0.2.145 → 0.2.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.2.145",
3
+ "version": "0.2.147",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
@@ -86,8 +86,9 @@ export function validateDesignTokensV2(tokens) {
86
86
  }
87
87
  }
88
88
 
89
- // Dark Mode
90
- if (!v2.darkMode) v2.darkMode = { enabled: false, colors: null, semanticMappings: null };
89
+ // Theme (light/dark) — ersetzt altes darkMode-Objekt
90
+ if (!v2.theme) v2.theme = 'light';
91
+ delete v2.darkMode;
91
92
 
92
93
  // ── Typografie validieren ──
93
94
  if (!v2.typography) v2.typography = structuredClone(defaultDesignTokensV2.typography);
@@ -607,8 +607,8 @@ export const DEFAULT_SURFACE_TOKENS = {
607
607
  lifted: 'neutral-3',
608
608
 
609
609
  textDefault: 'neutral-12',
610
- textSubtle: 'neutral-11',
611
- textMuted: 'neutral-8',
610
+ textSubtle: 'neutral-9',
611
+ textMuted: 'neutral-7',
612
612
 
613
613
  borderDefault: 'neutral-6',
614
614
  borderSubtle: 'neutral-4',
@@ -617,7 +617,7 @@ export const DEFAULT_SURFACE_TOKENS = {
617
617
 
618
618
  /**
619
619
  * Surface Token Items für den Editor.
620
- * Jedes Item mappt auf eine Neutral-Stufe.
620
+ * Referenzformat: "{world}-{step}", z.B. "neutral-12" oder "primary-3".
621
621
  */
622
622
  export const SURFACE_TOKEN_ITEMS = [
623
623
  { key: 'page', css: 'bg-page', type: 'bg' },
@@ -680,6 +680,7 @@ export const BUTTON_SIZES = ['sm', 'md', 'lg'];
680
680
  */
681
681
  export const defaultDesignTokensV2 = {
682
682
  version: 2,
683
+ theme: 'light', // 'light' | 'dark'
683
684
 
684
685
  // ── Farben ──
685
686
  colors: {
@@ -737,12 +738,6 @@ export const defaultDesignTokensV2 = {
737
738
 
738
739
  surface: { ...DEFAULT_SURFACE_TOKENS },
739
740
 
740
- darkMode: {
741
- enabled: false,
742
- colors: null, // Wird bei Aktivierung auto-generiert
743
- semanticMappings: null
744
- },
745
-
746
741
  // ── Typografie ──
747
742
  typography: {
748
743
  fonts: [