@webmate-studio/builder 0.2.71 → 0.2.72
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 +8 -0
package/package.json
CHANGED
package/src/design-tokens.js
CHANGED
|
@@ -612,6 +612,11 @@ export function generateTailwindV4Theme(tokens) {
|
|
|
612
612
|
lines.push(` --text-${kebabName}-font-weight: ${style.fontWeight};`);
|
|
613
613
|
}
|
|
614
614
|
|
|
615
|
+
// Font style (not responsive)
|
|
616
|
+
if (style.fontStyle) {
|
|
617
|
+
lines.push(` --text-${kebabName}-font-style: ${style.fontStyle};`);
|
|
618
|
+
}
|
|
619
|
+
|
|
615
620
|
// Text transform (not responsive)
|
|
616
621
|
if (style.textTransform) {
|
|
617
622
|
lines.push(` --text-${kebabName}-text-transform: ${style.textTransform};`);
|
|
@@ -759,6 +764,9 @@ body {
|
|
|
759
764
|
if (style.fontWeight) {
|
|
760
765
|
globalStyles += `\n font-weight: var(--text-${kebabName}-font-weight);`;
|
|
761
766
|
}
|
|
767
|
+
if (style.fontStyle) {
|
|
768
|
+
globalStyles += `\n font-style: var(--text-${kebabName}-font-style);`;
|
|
769
|
+
}
|
|
762
770
|
if (style.fontSize) {
|
|
763
771
|
globalStyles += `\n font-size: var(--text-${kebabName}-font-size);`;
|
|
764
772
|
}
|