@webmate-studio/builder 0.2.119 → 0.2.120
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 +1 -1
- package/src/design-tokens.js +4 -0
package/package.json
CHANGED
package/src/design-tokens.js
CHANGED
|
@@ -978,7 +978,9 @@ body {
|
|
|
978
978
|
|
|
979
979
|
// Generate utility classes for buttons
|
|
980
980
|
if (tokens.buttons) {
|
|
981
|
+
// IMPORTANT: Buttons in @layer components so Tailwind utilities (rounded-full, etc.) can override
|
|
981
982
|
globalStyles += '\n\n/* Button Utilities */';
|
|
983
|
+
globalStyles += '\n@layer components {';
|
|
982
984
|
|
|
983
985
|
// Base button class
|
|
984
986
|
globalStyles += `\n.btn {
|
|
@@ -1024,6 +1026,8 @@ body {
|
|
|
1024
1026
|
border-color: var(--button-${variantName}-border-hover);
|
|
1025
1027
|
}`;
|
|
1026
1028
|
}
|
|
1029
|
+
|
|
1030
|
+
globalStyles += '\n}'; // Close @layer components
|
|
1027
1031
|
}
|
|
1028
1032
|
|
|
1029
1033
|
// Add responsive media queries for textStyles (OUTSIDE @theme block!)
|