@webmate-studio/builder 0.2.146 → 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
|
@@ -86,8 +86,9 @@ export function validateDesignTokensV2(tokens) {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
//
|
|
90
|
-
if (!v2.
|
|
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);
|
package/src/design-tokens-v2.js
CHANGED
|
@@ -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: [
|