svelora 3.0.2 → 3.0.4
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/dist/Fonts/fonts.js +2 -6
- package/dist/mcp/svelora-docs.data.json +2 -2
- package/dist/theme.css +2 -0
- package/package.json +1 -1
package/dist/Fonts/fonts.js
CHANGED
|
@@ -70,12 +70,8 @@ export function buildGoogleFontsUrl(fonts, display = 'swap') {
|
|
|
70
70
|
.filter((family, index, source) => family.length > 0 && source.indexOf(family) === index);
|
|
71
71
|
if (families.length === 0)
|
|
72
72
|
return '';
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
params.append('family', family);
|
|
76
|
-
});
|
|
77
|
-
params.set('display', display);
|
|
78
|
-
return `https://fonts.googleapis.com/css2?${params.toString()}`;
|
|
73
|
+
const familyParams = families.map((f) => `family=${f}`).join('&');
|
|
74
|
+
return `https://fonts.googleapis.com/css2?${familyParams}&display=${display}`;
|
|
79
75
|
}
|
|
80
76
|
export function buildFontFamily(font) {
|
|
81
77
|
const family = `'${escapeFontName(normalizeFontName(font.name))}'`;
|
package/dist/theme.css
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* ============================================ */
|
|
17
17
|
@custom-variant dark (&:where(.dark, .dark *));
|
|
18
18
|
|
|
19
|
+
@layer theme {
|
|
19
20
|
/* ============================================
|
|
20
21
|
* LIGHT THEME (Default)
|
|
21
22
|
* ============================================ */
|
|
@@ -168,6 +169,7 @@
|
|
|
168
169
|
--color-inverse-on-surface: oklch(0.279 0.041 260.03);
|
|
169
170
|
--color-inverse-primary: oklch(0.546 0.245 262.88);
|
|
170
171
|
}
|
|
172
|
+
}
|
|
171
173
|
|
|
172
174
|
/* ============================================
|
|
173
175
|
* REGISTER WITH TAILWIND
|