uniweb 0.12.43 → 0.12.44
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 +6 -6
- package/partials/agents.md +8 -12
- package/src/framework-index.json +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniweb",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.44",
|
|
4
4
|
"description": "Create structured Vite + React sites with content/code separation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"js-yaml": "^4.1.0",
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
43
|
"tar": "^7.0.0",
|
|
44
|
-
"@uniweb/core": "0.7.
|
|
45
|
-
"@uniweb/
|
|
46
|
-
"@uniweb/
|
|
44
|
+
"@uniweb/core": "0.7.18",
|
|
45
|
+
"@uniweb/kit": "0.9.22",
|
|
46
|
+
"@uniweb/runtime": "0.8.24"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
+
"@uniweb/build": "0.14.26",
|
|
49
50
|
"@uniweb/content-reader": "1.1.12",
|
|
50
|
-
"@uniweb/semantic-parser": "1.1.17"
|
|
51
|
-
"@uniweb/build": "0.14.25"
|
|
51
|
+
"@uniweb/semantic-parser": "1.1.17"
|
|
52
52
|
},
|
|
53
53
|
"peerDependenciesMeta": {
|
|
54
54
|
"@uniweb/build": {
|
package/partials/agents.md
CHANGED
|
@@ -1023,7 +1023,7 @@ fonts:
|
|
|
1023
1023
|
mono: "'Fira Code', monospace"
|
|
1024
1024
|
```
|
|
1025
1025
|
|
|
1026
|
-
Because the site wires the families onto real elements, **
|
|
1026
|
+
Because the site wires the families onto real elements, **the norm is that a foundation doesn't set fonts itself** — render semantic markup (`<H1>`, `<P>`, `<code>` from the kit) and the roles apply. (It stays Tailwind for everything else — layout, spacing, weights, color.) That convention is what authors can count on: `body`/`heading`/`mono` control the fonts the same way in every foundation, and one foundation re-fonts per site with zero code changes.
|
|
1027
1027
|
|
|
1028
1028
|
**Loading the files** — two site-side options, both config-only, neither adds a dependency:
|
|
1029
1029
|
|
|
@@ -1048,23 +1048,19 @@ fonts:
|
|
|
1048
1048
|
|
|
1049
1049
|
**In a component, weight is yours; family is the site's.** Weight / size / style utilities (`font-bold`, `font-black`, `italic`, `text-xl`) are ordinary design vocabulary — use them freely. A font-**family** utility is only safe when the family behind it is site-controlled — and by default `font-sans` / `font-serif` are *not* (they resolve to Tailwind's built-in stacks; only `font-mono` tracks the site's `mono` role, by name-collision). So a bare `font-serif` in a component silently hardcodes a typeface.
|
|
1050
1050
|
|
|
1051
|
-
**
|
|
1051
|
+
**When a design needs typefaces the element convention can't express** — an editorial serif on selected prose, a mono for metadata labels that aren't `<code>` — a foundation manages those explicitly instead of deferring. It uses the `font-serif` / `font-mono` (or `font-sans`) utility and declares each family as a **foundation var**, so the family stays site-controlled. The var drives its utility, and the family **loads** (via `fonts.import` / `fonts.faces`) even though it isn't one of the three `body`/`heading`/`mono` role slots:
|
|
1052
1052
|
|
|
1053
1053
|
```js
|
|
1054
|
-
// foundation src/main.js
|
|
1054
|
+
// foundation src/main.js — typefaces this foundation manages itself.
|
|
1055
|
+
// Defaults are OS stacks, so it renders native until a site opts in.
|
|
1055
1056
|
export const vars = {
|
|
1056
|
-
'font-serif':
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
},
|
|
1057
|
+
'font-sans': { default: 'ui-sans-serif, system-ui, sans-serif', description: 'Base — headlines, UI, body' },
|
|
1058
|
+
'font-serif': { default: 'ui-serif, Georgia, serif', description: 'Editorial — blurbs, taglines, quotes' },
|
|
1059
|
+
'font-mono': { default: 'ui-monospace, SFMono-Regular, monospace', description: 'Metadata — labels, dates, code' },
|
|
1060
1060
|
}
|
|
1061
1061
|
```
|
|
1062
|
-
```jsx
|
|
1063
|
-
<p className="font-serif">{content.tagline}</p> {/* now site-controlled */}
|
|
1064
|
-
// …or a custom-named var: <p style={{ fontFamily: 'var(--font-display)' }}>
|
|
1065
|
-
```
|
|
1066
1062
|
|
|
1067
|
-
|
|
1063
|
+
Components keep using `font-sans` / `font-serif` / `font-mono` unchanged; the site sets each family in `theme.yml` under `vars:` and loads it with `fonts.import` / `fonts.faces`. (A custom name like `font-display` has no built-in utility — reference it with `var(--font-display)`.)
|
|
1068
1064
|
|
|
1069
1065
|
### Foundation variables
|
|
1070
1066
|
|
package/src/framework-index.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-17T23:45:26.497Z",
|
|
4
4
|
"packages": {
|
|
5
5
|
"@uniweb/build": {
|
|
6
|
-
"version": "0.14.
|
|
6
|
+
"version": "0.14.26",
|
|
7
7
|
"path": "framework/build",
|
|
8
8
|
"deps": [
|
|
9
9
|
"@uniweb/content-reader",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"deps": []
|
|
26
26
|
},
|
|
27
27
|
"@uniweb/core": {
|
|
28
|
-
"version": "0.7.
|
|
28
|
+
"version": "0.7.18",
|
|
29
29
|
"path": "framework/core",
|
|
30
30
|
"deps": [
|
|
31
31
|
"@uniweb/semantic-parser",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"deps": []
|
|
44
44
|
},
|
|
45
45
|
"@uniweb/kit": {
|
|
46
|
-
"version": "0.9.
|
|
46
|
+
"version": "0.9.22",
|
|
47
47
|
"path": "framework/kit",
|
|
48
48
|
"deps": [
|
|
49
49
|
"@uniweb/core",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"deps": []
|
|
62
62
|
},
|
|
63
63
|
"@uniweb/runtime": {
|
|
64
|
-
"version": "0.8.
|
|
64
|
+
"version": "0.8.24",
|
|
65
65
|
"path": "framework/runtime",
|
|
66
66
|
"deps": [
|
|
67
67
|
"@uniweb/core",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"deps": []
|
|
100
100
|
},
|
|
101
101
|
"@uniweb/unipress": {
|
|
102
|
-
"version": "0.4.
|
|
102
|
+
"version": "0.4.33",
|
|
103
103
|
"path": "framework/unipress",
|
|
104
104
|
"deps": [
|
|
105
105
|
"@uniweb/build",
|