@webmate-studio/builder 0.2.86 → 0.2.87
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
package/src/design-tokens.js
CHANGED
|
@@ -7,7 +7,7 @@ function generateSemanticColorUtilities(tokens) {
|
|
|
7
7
|
if (!tokens.colors) return '';
|
|
8
8
|
|
|
9
9
|
let utilities = '\n/* Color Utilities */';
|
|
10
|
-
utilities += '\n@layer
|
|
10
|
+
utilities += '\n@layer utilities {';
|
|
11
11
|
|
|
12
12
|
// Map of all colors: token name -> utility class base name
|
|
13
13
|
const colorMap = {
|
|
@@ -411,6 +411,10 @@ ${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}`;
|
|
414
418
|
}
|
|
415
419
|
|
|
416
420
|
return result;
|