@webmate-studio/builder 0.2.122 → 0.2.124

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.122",
3
+ "version": "0.2.124",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
@@ -811,12 +811,10 @@ export function generateTailwindV4Theme(tokens) {
811
811
  lines.push(` --radius: ${tokens.borderRadius};`);
812
812
  }
813
813
 
814
- // Container widths (specific breakpoints)
815
- if (tokens.container) {
816
- for (const [key, value] of Object.entries(tokens.container)) {
817
- lines.push(` --container-${key}: ${value};`);
818
- }
819
- }
814
+ // Container widths NICHT als --container-* ausgeben!
815
+ // In Tailwind v4 steuern --container-* die max-w-* Klassen (z.B. --container-2xl = max-w-2xl).
816
+ // Die Werte hier sind Breakpoints (640px, 1536px), nicht max-width-Werte (42rem, 56rem).
817
+ // Breakpoints werden separat als --breakpoint-* ausgegeben.
820
818
 
821
819
  // Breakpoints
822
820
  if (tokens.breakpoints) {
@@ -1221,10 +1219,8 @@ export function generateCSSFromTokens(tokens) {
1221
1219
  lines.push(` --tracking-${key}: ${value};`);
1222
1220
  }
1223
1221
 
1224
- // Container
1225
- for (const [key, value] of Object.entries(tokens.container || {})) {
1226
- lines.push(` --container-${key}: ${value};`);
1227
- }
1222
+ // Container — NICHT als --container-* ausgeben (kollidiert mit Tailwind v4 max-w-*)
1223
+ // Breakpoints werden separat als --breakpoint-* ausgegeben.
1228
1224
 
1229
1225
  // Border Width
1230
1226
  if (typeof tokens.borderWidth === 'object' && tokens.borderWidth !== null) {