basalt-ui 0.2.1 → 0.2.2
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/index.css +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.2](https://github.com/jkrumm/basalt-ui/compare/v0.2.1...v0.2.2) (2026-02-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Performance Improvements
|
|
7
|
+
|
|
8
|
+
* change font-display from block to swap ([ed485ba](https://github.com/jkrumm/basalt-ui/commit/ed485ba0bdddad77ed6f3e773dc0c565f4a7523d))
|
|
9
|
+
|
|
3
10
|
## [0.2.1](https://github.com/jkrumm/basalt-ui/compare/v0.2.0...v0.2.1) (2026-02-09)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
package/src/index.css
CHANGED
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
* - Version-locked in package.json (no surprise updates)
|
|
14
14
|
* - 100% GDPR-compliant (no third-party tracking)
|
|
15
15
|
* - Works offline during development
|
|
16
|
-
* - No FOUT on page navigation (critical for Astro MPA)
|
|
17
16
|
*
|
|
18
|
-
* font-display:
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* -
|
|
22
|
-
* -
|
|
17
|
+
* font-display: swap — shows fallback text immediately, swaps when font loads.
|
|
18
|
+
* This avoids invisible text (block period) and improves Core Web Vitals.
|
|
19
|
+
*
|
|
20
|
+
* For near-zero CLS on swap, use the fontaine Vite plugin in your app to
|
|
21
|
+
* auto-generate calibrated @font-face fallback rules. See installation guide:
|
|
22
|
+
* https://basalt-ui.com/docs/installation#font-performance-optimization
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
/* Instrument Sans Variable - Latin Extended with wdth axis */
|
|
26
26
|
@font-face {
|
|
27
27
|
font-family: "Instrument Sans Variable";
|
|
28
28
|
font-style: normal;
|
|
29
|
-
font-display:
|
|
29
|
+
font-display: swap;
|
|
30
30
|
font-weight: 400 700;
|
|
31
31
|
font-stretch: 75% 100%;
|
|
32
32
|
src: url("@fontsource-variable/instrument-sans/files/instrument-sans-latin-ext-wdth-normal.woff2")
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@font-face {
|
|
42
42
|
font-family: "Instrument Sans Variable";
|
|
43
43
|
font-style: normal;
|
|
44
|
-
font-display:
|
|
44
|
+
font-display: swap;
|
|
45
45
|
font-weight: 400 700;
|
|
46
46
|
font-stretch: 75% 100%;
|
|
47
47
|
src: url("@fontsource-variable/instrument-sans/files/instrument-sans-latin-wdth-normal.woff2")
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
@font-face {
|
|
57
57
|
font-family: "JetBrains Mono Variable";
|
|
58
58
|
font-style: normal;
|
|
59
|
-
font-display:
|
|
59
|
+
font-display: swap;
|
|
60
60
|
font-weight: 100 800;
|
|
61
61
|
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-cyrillic-ext-wght-normal.woff2")
|
|
62
62
|
format("woff2-variations");
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
@font-face {
|
|
68
68
|
font-family: "JetBrains Mono Variable";
|
|
69
69
|
font-style: normal;
|
|
70
|
-
font-display:
|
|
70
|
+
font-display: swap;
|
|
71
71
|
font-weight: 100 800;
|
|
72
72
|
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-cyrillic-wght-normal.woff2")
|
|
73
73
|
format("woff2-variations");
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
@font-face {
|
|
79
79
|
font-family: "JetBrains Mono Variable";
|
|
80
80
|
font-style: normal;
|
|
81
|
-
font-display:
|
|
81
|
+
font-display: swap;
|
|
82
82
|
font-weight: 100 800;
|
|
83
83
|
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-greek-wght-normal.woff2")
|
|
84
84
|
format("woff2-variations");
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
@font-face {
|
|
90
90
|
font-family: "JetBrains Mono Variable";
|
|
91
91
|
font-style: normal;
|
|
92
|
-
font-display:
|
|
92
|
+
font-display: swap;
|
|
93
93
|
font-weight: 100 800;
|
|
94
94
|
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-vietnamese-wght-normal.woff2")
|
|
95
95
|
format("woff2-variations");
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
@font-face {
|
|
103
103
|
font-family: "JetBrains Mono Variable";
|
|
104
104
|
font-style: normal;
|
|
105
|
-
font-display:
|
|
105
|
+
font-display: swap;
|
|
106
106
|
font-weight: 100 800;
|
|
107
107
|
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-latin-ext-wght-normal.woff2")
|
|
108
108
|
format("woff2-variations");
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
@font-face {
|
|
117
117
|
font-family: "JetBrains Mono Variable";
|
|
118
118
|
font-style: normal;
|
|
119
|
-
font-display:
|
|
119
|
+
font-display: swap;
|
|
120
120
|
font-weight: 100 800;
|
|
121
121
|
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-latin-wght-normal.woff2")
|
|
122
122
|
format("woff2-variations");
|