@webmate-studio/builder 0.2.103 → 0.2.104
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
|
@@ -1235,6 +1235,9 @@ export function generateCSSFromTokens(tokens) {
|
|
|
1235
1235
|
if (style.fontWeight) {
|
|
1236
1236
|
lines.push(` font-weight: ${style.fontWeight};`);
|
|
1237
1237
|
}
|
|
1238
|
+
if (style.fontStyle) {
|
|
1239
|
+
lines.push(` font-style: ${style.fontStyle};`);
|
|
1240
|
+
}
|
|
1238
1241
|
if (style.fontSize) {
|
|
1239
1242
|
const fontSize = typeof style.fontSize === 'object' ? style.fontSize.base : style.fontSize;
|
|
1240
1243
|
lines.push(` font-size: ${fontSize};`);
|
|
@@ -1323,6 +1326,11 @@ export function generateCSSFromTokens(tokens) {
|
|
|
1323
1326
|
lines.push(` font-weight: ${style.fontWeight};`);
|
|
1324
1327
|
}
|
|
1325
1328
|
|
|
1329
|
+
// Font style
|
|
1330
|
+
if (style.fontStyle) {
|
|
1331
|
+
lines.push(` font-style: ${style.fontStyle};`);
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1326
1334
|
// Font size (use breakpoint value if available, otherwise base)
|
|
1327
1335
|
if (style.fontSize) {
|
|
1328
1336
|
const fontSize = typeof style.fontSize === 'object'
|