uniweb 0.7.10 → 0.8.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uniweb",
3
- "version": "0.7.10",
3
+ "version": "0.8.0",
4
4
  "description": "Create structured Vite + React sites with content/code separation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,9 +41,9 @@
41
41
  "js-yaml": "^4.1.0",
42
42
  "prompts": "^2.4.2",
43
43
  "tar": "^7.0.0",
44
- "@uniweb/build": "0.7.6",
45
- "@uniweb/runtime": "0.6.1",
46
- "@uniweb/kit": "0.6.1",
47
- "@uniweb/core": "0.5.1"
44
+ "@uniweb/build": "0.8.0",
45
+ "@uniweb/core": "0.5.1",
46
+ "@uniweb/kit": "0.7.0",
47
+ "@uniweb/runtime": "0.6.1"
48
48
  }
49
49
  }
@@ -200,14 +200,19 @@ CCA separates theme from code. Components use **semantic CSS tokens** instead of
200
200
  |-------|---------|
201
201
  | `text-heading` | Headings |
202
202
  | `text-body` | Body text |
203
- | `text-muted` | Secondary text |
204
- | `bg-surface` | Section background |
205
- | `bg-surface-subtle` | Slightly offset surface |
206
- | `border-edge` | Borders |
207
- | `border-edge-muted` | Subtle borders |
203
+ | `text-subtle` | Secondary/de-emphasized text |
204
+ | `bg-section` | Section background |
205
+ | `bg-card` | Card/panel background |
206
+ | `bg-muted` | Hover states, zebra rows |
207
+ | `border-border` | Borders |
208
208
  | `text-link` | Link color |
209
- | `text-on-primary` | Text on primary-colored backgrounds |
210
- | `bg-primary` | Brand primary color |
209
+ | `bg-primary` | Primary action background |
210
+ | `text-primary-foreground` | Text on primary background |
211
+ | `bg-secondary` | Secondary action background |
212
+ | `text-success` / `bg-success-subtle` | Status: success |
213
+ | `text-error` / `bg-error-subtle` | Status: error |
214
+ | `text-warning` / `bg-warning-subtle` | Status: warning |
215
+ | `text-info` / `bg-info-subtle` | Status: info |
211
216
 
212
217
  **Content authors control context** in frontmatter:
213
218
 
@@ -376,7 +381,7 @@ When given a monolithic React file (AI-generated or hand-built), don't port line
376
381
 
377
382
  1. **Name by purpose** — `Institutions` → `Testimonial`, `WorkModes` → `FeatureColumns`. Components render a *kind* of content, not specific content.
378
383
  2. **Separate content from code** — Hardcoded strings → markdown. Layout/styling stays in JSX. Content authors edit words without touching code.
379
- 3. **Use semantic tokens** — Replace `text-slate-900` with `text-heading`, `bg-white` with `bg-surface`. Component works in any context and any brand.
384
+ 3. **Use semantic tokens** — Replace `text-slate-900` with `text-heading`, `bg-white` with `bg-section`. Component works in any context and any brand.
380
385
  4. **UI components → `components/`** — Buttons, badges, cards go in `src/components/` (no `meta.js` needed).
381
386
 
382
387
  You don't have to convert everything at once. Each section is independent — one can use hardcoded content while another reads from markdown.