@webmate-studio/builder 0.2.47 → 0.2.48

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.47",
3
+ "version": "0.2.48",
4
4
  "type": "module",
5
5
  "description": "Webmate Studio Component Builder",
6
6
  "keywords": [
@@ -143,6 +143,19 @@ function generateThemeCSS(colors, designTokens = null) {
143
143
  }
144
144
  }
145
145
 
146
+ // Add font families if provided in design tokens
147
+ // Support both structures:
148
+ // 1. designTokens.fontFamily.{heading, body, mono}
149
+ // 2. designTokens.typography.fontFamily.{heading, body, mono}
150
+ const fontFamilies = designTokens?.fontFamily || designTokens?.typography?.fontFamily;
151
+ if (fontFamilies) {
152
+ for (const [key, value] of Object.entries(fontFamilies)) {
153
+ // value can be a string or an array
154
+ const fontValue = Array.isArray(value) ? value.join(', ') : value;
155
+ themeCSS += ` --font-${key}: ${fontValue};\n`;
156
+ }
157
+ }
158
+
146
159
  themeCSS += `}\n`;
147
160
 
148
161
  return themeCSS;