@webmate-studio/builder 0.2.103 → 0.2.105

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmate-studio/builder",
3
- "version": "0.2.103",
3
+ "version": "0.2.105",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
@@ -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'
@@ -1425,9 +1433,11 @@ export function generateCSSFromTokens(tokens) {
1425
1433
 
1426
1434
  // Paragraphs
1427
1435
  lines.push('.prose p {');
1428
- lines.push(' margin-top: 1rem;');
1429
1436
  lines.push(' margin-bottom: 1rem;');
1430
1437
  lines.push('}');
1438
+ lines.push('.prose p + p {');
1439
+ lines.push(' margin-top: 1rem;');
1440
+ lines.push('}');
1431
1441
 
1432
1442
  // Lists
1433
1443
  lines.push('.prose ul, .prose ol {');