basalt-ui 0.2.0 → 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 +15 -0
- package/package.json +1 -1
- package/src/index.css +126 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
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
|
+
|
|
10
|
+
## [0.2.1](https://github.com/jkrumm/basalt-ui/compare/v0.2.0...v0.2.1) (2026-02-09)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* add missing language subsets and font weights ([e667d9a](https://github.com/jkrumm/basalt-ui/commit/e667d9af7e63527d807f946e97ac556ad3792255))
|
|
16
|
+
* use font-display block to prevent flickering in Astro MPAs ([c3c286f](https://github.com/jkrumm/basalt-ui/commit/c3c286ffc41db5ebe3bdec0f45523c02baa3e7fa))
|
|
17
|
+
|
|
3
18
|
# [0.2.0](https://github.com/jkrumm/basalt-ui/compare/v0.1.0...v0.2.0) (2026-02-09)
|
|
4
19
|
|
|
5
20
|
|
package/package.json
CHANGED
package/src/index.css
CHANGED
|
@@ -1,8 +1,132 @@
|
|
|
1
|
+
/* === IMPORTS (must come first per CSS spec) === */
|
|
1
2
|
@import "tailwindcss";
|
|
2
3
|
@import "tw-animate-css";
|
|
3
4
|
@import "shadcn/tailwind.css";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
/* === FONT LOADING: Self-Hosted via Fontsource === */
|
|
7
|
+
/*
|
|
8
|
+
* Using Fontsource packages for font files, with custom @font-face declarations.
|
|
9
|
+
* Fonts are bundled with the app and served from the same origin.
|
|
10
|
+
*
|
|
11
|
+
* Benefits:
|
|
12
|
+
* - Zero external DNS/TLS overhead (same-origin requests)
|
|
13
|
+
* - Version-locked in package.json (no surprise updates)
|
|
14
|
+
* - 100% GDPR-compliant (no third-party tracking)
|
|
15
|
+
* - Works offline during development
|
|
16
|
+
*
|
|
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
|
+
*/
|
|
24
|
+
|
|
25
|
+
/* Instrument Sans Variable - Latin Extended with wdth axis */
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: "Instrument Sans Variable";
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-display: swap;
|
|
30
|
+
font-weight: 400 700;
|
|
31
|
+
font-stretch: 75% 100%;
|
|
32
|
+
src: url("@fontsource-variable/instrument-sans/files/instrument-sans-latin-ext-wdth-normal.woff2")
|
|
33
|
+
format("woff2-variations");
|
|
34
|
+
unicode-range:
|
|
35
|
+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
|
|
36
|
+
U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
|
|
37
|
+
U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Instrument Sans Variable - Latin with wdth axis */
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: "Instrument Sans Variable";
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-display: swap;
|
|
45
|
+
font-weight: 400 700;
|
|
46
|
+
font-stretch: 75% 100%;
|
|
47
|
+
src: url("@fontsource-variable/instrument-sans/files/instrument-sans-latin-wdth-normal.woff2")
|
|
48
|
+
format("woff2-variations");
|
|
49
|
+
unicode-range:
|
|
50
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
51
|
+
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
|
|
52
|
+
U+2212, U+2215, U+FEFF, U+FFFD;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* JetBrains Mono Variable - Cyrillic Extended */
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: "JetBrains Mono Variable";
|
|
58
|
+
font-style: normal;
|
|
59
|
+
font-display: swap;
|
|
60
|
+
font-weight: 100 800;
|
|
61
|
+
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-cyrillic-ext-wght-normal.woff2")
|
|
62
|
+
format("woff2-variations");
|
|
63
|
+
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* JetBrains Mono Variable - Cyrillic */
|
|
67
|
+
@font-face {
|
|
68
|
+
font-family: "JetBrains Mono Variable";
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-display: swap;
|
|
71
|
+
font-weight: 100 800;
|
|
72
|
+
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-cyrillic-wght-normal.woff2")
|
|
73
|
+
format("woff2-variations");
|
|
74
|
+
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* JetBrains Mono Variable - Greek */
|
|
78
|
+
@font-face {
|
|
79
|
+
font-family: "JetBrains Mono Variable";
|
|
80
|
+
font-style: normal;
|
|
81
|
+
font-display: swap;
|
|
82
|
+
font-weight: 100 800;
|
|
83
|
+
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-greek-wght-normal.woff2")
|
|
84
|
+
format("woff2-variations");
|
|
85
|
+
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* JetBrains Mono Variable - Vietnamese */
|
|
89
|
+
@font-face {
|
|
90
|
+
font-family: "JetBrains Mono Variable";
|
|
91
|
+
font-style: normal;
|
|
92
|
+
font-display: swap;
|
|
93
|
+
font-weight: 100 800;
|
|
94
|
+
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-vietnamese-wght-normal.woff2")
|
|
95
|
+
format("woff2-variations");
|
|
96
|
+
unicode-range:
|
|
97
|
+
U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
|
|
98
|
+
U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* JetBrains Mono Variable - Latin Extended */
|
|
102
|
+
@font-face {
|
|
103
|
+
font-family: "JetBrains Mono Variable";
|
|
104
|
+
font-style: normal;
|
|
105
|
+
font-display: swap;
|
|
106
|
+
font-weight: 100 800;
|
|
107
|
+
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-latin-ext-wght-normal.woff2")
|
|
108
|
+
format("woff2-variations");
|
|
109
|
+
unicode-range:
|
|
110
|
+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
|
|
111
|
+
U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
|
|
112
|
+
U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* JetBrains Mono Variable - Latin */
|
|
116
|
+
@font-face {
|
|
117
|
+
font-family: "JetBrains Mono Variable";
|
|
118
|
+
font-style: normal;
|
|
119
|
+
font-display: swap;
|
|
120
|
+
font-weight: 100 800;
|
|
121
|
+
src: url("@fontsource-variable/jetbrains-mono/files/jetbrains-mono-latin-wght-normal.woff2")
|
|
122
|
+
format("woff2-variations");
|
|
123
|
+
unicode-range:
|
|
124
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
125
|
+
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
|
|
126
|
+
U+2212, U+2215, U+FEFF, U+FFFD;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* === TAILWIND CONFIGURATION === */
|
|
6
130
|
@plugin "@tailwindcss/typography";
|
|
7
131
|
@config "../tailwind.config.js";
|
|
8
132
|
|