chore: final pre-publish audit — no-theme hardening, SKILLS.md, drift fixes (1.0.3)#43
Merged
Merged
Conversation
… fixes
Comprehensive final pass before publishing 1.0.3 (4 parallel auditors: engine
correctness/guards, drift, docs+example, publish-readiness). Engine was already
correct + value-type-complete + guarded; this closes the remaining gaps.
You're not forced into a theme (the headline fix):
- Theme-role sugars (`fontSans`/`roundedMd`/`shadowMd`) now fall back to the stock
FwTokens.light defaults when no theme is present instead of throwing — so the
raw palette + your own fonts work with NO FwTheme at all. New `context.fwOrNull`
reads tokens without throwing when a theme is optional (FwStyled uses it). Raw
styling + `font('Family')` already needed no theme; this removes the one sharp
edge (the role sugars crashing). +4 no-theme tests (466 total).
SKILLS.md:
- A compact agentic-engineering guide (mental model, setup, the .tw API, layout,
states, fonts, the no-theme path, do/don't rules, recipes, gotchas) shipped with
the package and linked from the README.
Audit fixes:
- Drift: core-engine spec §5.1/§5.3/§6.4/§12 updated for the FwTheme refactor,
fwOrNull, theme-resolved fonts, and fit(alignment); barrel + resolve() guard
message/doc now name fontFamilyStep; CHANGELOG 1.0.3 notes the no-theme fallback.
- Docs: a "You're not forced into a theme" section (theming.mdx) + a no-theme note
(fonts.mdx) — the maintainer's explicit concern.
- Example: demo `fit(alignment:)` (object-position) and `FwScroll(trackColor:)`.
Still 1.0.3 (unpublished). analyze/format/test clean (engine + example); docs build
+ vitest clean; dry-run = 1.0.3.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Final pre-publish audit (4 auditors). No-theme hardening: theme-role sugars fall back to FwTokens.light instead of throwing; new context.fwOrNull. +4 tests (466). SKILLS.md agentic guide. Spec/docs drift fixes; example demos fit(alignment:) + FwScroll(trackColor:). 1.0.3, unpublished; all green; auto-deploys on merge.