vibe-design-system 2.8.7 → 2.8.8
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/vds-core-template/scan.mjs +10 -2
package/package.json
CHANGED
|
@@ -1254,10 +1254,18 @@ function extractFoundations() {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
|
-
const bodyMatch = css.match(/body\s*\{[^}]*font-family:\s*([^;]+);/);
|
|
1257
|
+
const bodyMatch = css.match(/body\s*\{[^}]*font-family:\s*([^;]+);/s);
|
|
1258
1258
|
if (bodyMatch) typography.body = bodyMatch[1].trim();
|
|
1259
|
-
const monoMatch = css.match(/code,\s*pre,\s*\.font-mono\s*\{[^}]*font-family:\s*([^;]+);/);
|
|
1259
|
+
const monoMatch = css.match(/code,\s*pre,\s*\.font-mono\s*\{[^}]*font-family:\s*([^;]+);/s);
|
|
1260
1260
|
if (monoMatch) typography.mono = monoMatch[1].trim();
|
|
1261
|
+
// Tailwind v4: CSS custom properties for fonts (--font-sans, --font-mono, --font-weight-*)
|
|
1262
|
+
const fontVarRe = /--font([\w-]*):\s*([^;\n]+);/g;
|
|
1263
|
+
let fvm;
|
|
1264
|
+
while ((fvm = fontVarRe.exec(css)) !== null) {
|
|
1265
|
+
const key = `font${fvm[1]}`.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
1266
|
+
const val = fvm[2].trim();
|
|
1267
|
+
if (!typography[key]) typography[key] = val;
|
|
1268
|
+
}
|
|
1261
1269
|
}
|
|
1262
1270
|
} catch (_) {}
|
|
1263
1271
|
|