@webmate-studio/builder 0.2.87 → 0.2.88
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
|
@@ -401,7 +401,7 @@ ${themeCSS}
|
|
|
401
401
|
let result = await compiler.build(classArray);
|
|
402
402
|
|
|
403
403
|
console.log(`[Tailwind Generator] includeBaseLayers = ${includeBaseLayers}`);
|
|
404
|
-
console.log(`[Tailwind Generator] Generated CSS length BEFORE
|
|
404
|
+
console.log(`[Tailwind Generator] Generated CSS length BEFORE processing: ${result.length}`);
|
|
405
405
|
console.log(`[Tailwind Generator] CSS contains @layer base: ${result.includes('@layer base')}`);
|
|
406
406
|
console.log(`[Tailwind Generator] CSS contains @layer theme: ${result.includes('@layer theme')}`);
|
|
407
407
|
|
|
@@ -411,12 +411,14 @@ ${themeCSS}
|
|
|
411
411
|
result = stripNonUtilityLayers(result);
|
|
412
412
|
console.log(`[Tailwind Generator] Generated CSS length AFTER stripping: ${result.length}`);
|
|
413
413
|
console.log(`[Tailwind Generator] CSS contains @layer base: ${result.includes('@layer base')}`);
|
|
414
|
-
|
|
415
|
-
// Wrap in @layer components (btn, etc. are components, not utilities)
|
|
416
|
-
// Utilities from design tokens (@layer utilities) can then override them
|
|
417
|
-
result = `@layer components {\n${result}\n}`;
|
|
418
414
|
}
|
|
419
415
|
|
|
416
|
+
// ALWAYS wrap component CSS in @layer components
|
|
417
|
+
// This ensures utilities from design tokens (@layer utilities) can override them
|
|
418
|
+
// Even if base layers are included, component-specific CSS should be in @layer components
|
|
419
|
+
console.log('[Tailwind Generator] Wrapping in @layer components...');
|
|
420
|
+
result = `@layer components {\n${result}\n}`;
|
|
421
|
+
|
|
420
422
|
return result;
|
|
421
423
|
|
|
422
424
|
} catch (error) {
|