@moonwitness/ui 0.0.0-stage → 0.1.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/README.md +272 -2
- package/package.json +50 -4
- package/src/components.d.ts +588 -0
- package/src/components.js +2044 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +13 -0
- package/src/skins.d.ts +4 -0
- package/src/skins.js +20 -0
- package/src/styles.css +587 -0
- package/src/tailwind.css +24 -0
- package/src/theme.d.ts +71 -0
- package/src/theme.js +257 -0
package/README.md
CHANGED
|
@@ -1,3 +1,273 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Moonframe UI
|
|
2
|
+
|
|
3
|
+
> **One behavioral system. Fifteen distinct visual grammars. Thirty core appearances.**
|
|
4
|
+
|
|
5
|
+
Moonframe UI provides **70+ reusable React components & Level C composite blocks**, **15 distinct skins (each in Light and Dark)**, a persistent Next.js/SSR-safe theme runtime, original M10 geometric vector brand marks (`SkinBrandMark`), an opt-in WebAudio synthesizer runtime (`SFXProvider`), the **Moonframe CLI Scaffolder** (`pnpm run cli`), and the **`moonframe` Next.js 16 Showcase & Template Marketplace** (`apps/moonframe`) featuring **43 production page templates** and **8 Level E Multi-Route Starter Applications**.
|
|
6
|
+
|
|
7
|
+
## Start using it
|
|
8
|
+
|
|
9
|
+
Use **Node.js 24.22.1 LTS**, pinned in [.nvmrc](.nvmrc), and **pnpm** (`corepack enable`).
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pnpm install
|
|
13
|
+
pnpm run dev
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Running `pnpm run dev` at the repository root launches the **`moonframe` Next.js 16 Showcase & Template Marketplace** (`apps/moonframe`) at `http://localhost:3000`:
|
|
17
|
+
- **`/`** — Landing page, live 15-skin interactive wall, featured starters, templates, and quickstart
|
|
18
|
+
- **`/starters` & `/starters/[id]`** — **8 Level E Multi-Route Starter Applications** with live multi-route workspace switcher and CLI generator
|
|
19
|
+
- **`/skins` & `/skins/[id]`** — 15-skin gallery and deep-dive non-color visual grammar specs
|
|
20
|
+
- **`/components` & `/components/[slug]`** — Interactive playground for all **70+ reusable components**, Level C composite blocks, and M10 vector/SFX suite
|
|
21
|
+
- **`/templates` & `/templates/[id]`** — **43 production page templates (Wave A & B)** with responsive live preview (`Desktop` / `Tablet` / `Mobile`), Fullscreen mode (`/preview/[id]`), Download `.tsx`, and copyable CLI commands
|
|
22
|
+
- **`/lab` & `/lab/behavior`** — Deterministic 15-skin comparison lab and keyboard/ARIA behavior test harness
|
|
23
|
+
- **`/docs`** — Complete Next.js App Router, SSR anti-FOUC `ThemeScript`, Tailwind v4 bridge, CLI scaffolder guide, and interactive playground
|
|
24
|
+
|
|
25
|
+
Build the production Next.js showcase with `pnpm run build`, or pack a local consumer tarball (`moonframe-ui-0.1.0.tgz`) with `pnpm run pack:local`:
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import { ThemeProvider, ThemeScript, Button } from '@moonframe/ui';
|
|
29
|
+
import '@moonframe/ui/styles.css';
|
|
30
|
+
|
|
31
|
+
export default function App() {
|
|
32
|
+
return (
|
|
33
|
+
<ThemeProvider defaultSkin="moonpunk" defaultMode="system" syncDocumentElement>
|
|
34
|
+
<Button>Start building</Button>
|
|
35
|
+
</ThemeProvider>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[Usage and component API](docs/runtime-usage.md) · [Implementation status](docs/implementation-status.md) · [TODO and delivery status](TODO.md) · [Node runtime policy](docs/architecture/node-runtime.md)
|
|
41
|
+
|
|
42
|
+
## Implementation and review status
|
|
43
|
+
|
|
44
|
+
The repository is structured as a **pnpm workspace** combining the `@moonframe/ui` runtime library (`src/`) and the `moonframe` Next.js 16 showcase application (`apps/moonframe`). It remains private (`"private": true`) and has not been published to npm. The larger historical specifications below also cover future catalog items, optional original assets, and formal release reviews. Their 105 formal skin-pair review records are not automatically approved by implementation or screenshots.
|
|
45
|
+
|
|
46
|
+
**Development runtime:** Node.js 24.22.1 LTS, pinned in [.nvmrc](.nvmrc) and used by [CI](.github/workflows/contract-validation.yml).
|
|
47
|
+
|
|
48
|
+
## Original planning references
|
|
49
|
+
|
|
50
|
+
- [Master integration audit](docs/audit/master-integration-audit.md) records the original documentation-only baseline.
|
|
51
|
+
- [Root TODO.md](TODO.md) tracks implemented runtime work and the broader roadmap.
|
|
52
|
+
- [M0 Local Coding Agent Prompt](docs/handoff/moonframe-local-coding-agent-execution-prompt.md) is historical.
|
|
53
|
+
- [Release Train & Adoption](docs/architecture/release-train-and-adoption.md) describes public release gates.
|
|
54
|
+
- [Canonical source-of-truth registry](docs/architecture/decisions-and-governance.md#master-integration-registry--cross-domain-ownership-2026-10-25) records policy owners.
|
|
55
|
+
- [Master Integration Issue Bible](docs/backlog/master-integration-issue-bible.md) and [Implementation roadmap](docs/implementation-roadmap.md) retain the full planned scope.
|
|
56
|
+
|
|
57
|
+
## Product promise
|
|
58
|
+
|
|
59
|
+
- **15 skins**, each intentionally different in layout grammar, geometry, typography, component recipes, navigation, media treatment, and motion signature.
|
|
60
|
+
- **Light + Dark** for every skin: 30 baseline appearances. `system` resolves to Light or Dark and is not another skin.
|
|
61
|
+
- One shared behavioral/accessibility contract and one public component API.
|
|
62
|
+
- Skin, color appearance, density, motion preference, and contrast preference remain independent axes.
|
|
63
|
+
- Optional original vector/bitmap assets and opt-in sound effects are designed and governed as separate asset packs.
|
|
64
|
+
|
|
65
|
+
## The 15 skin catalog
|
|
66
|
+
|
|
67
|
+
| # | Skin | Exclusive visual territory |
|
|
68
|
+
|---:|---|---|
|
|
69
|
+
| 01 | Moonpunk | Acid-lime manga punk; neo-brutalist impact; torn-edge accents; hard offset shadows |
|
|
70
|
+
| 02 | Moonriot | Riot/editorial cyberpunk; red signal marks; angular split compositions |
|
|
71
|
+
| 03 | Moonzine | Underground zine; collage; paper artifacts; editorial asymmetry |
|
|
72
|
+
| 04 | Moonhalftone | Manga screentone; monochrome ink; raster fields; panel pacing |
|
|
73
|
+
| 05 | Moonglitch | Terminal/cybernetic; signal interruption; scanline and telemetry motifs |
|
|
74
|
+
| 06 | Moonsmash | Kinetic impact; oversized display type; radial bursts and explosive transitions |
|
|
75
|
+
| 07 | Moonink | Brush-ink illustration; hand-painted strokes; expressive negative space |
|
|
76
|
+
| 08 | Mooncrash | Industrial hazard; mechanical plates; warning markings and rugged utility |
|
|
77
|
+
| 09 | Moonpanel | Modular comic-panel composition; strict framing and deliberate grids |
|
|
78
|
+
| 10 | Moonscrawl | Sketchbook and hand annotation; loose linework; draft-like visual marks |
|
|
79
|
+
| 11 | Moonraw | Raw/minimal brutalism; exposed structure; reduced decoration; rigid geometry |
|
|
80
|
+
| 12 | Moonchrome | Futuristic metallic surfaces; reflective contours; controlled spectral highlights |
|
|
81
|
+
| 13 | Classic | Familiar shadcn-style baseline; restrained surfaces and predictable hierarchy |
|
|
82
|
+
| 14 | Moonquest | RPG / adventure UI; quest journal, inventory, progression and game-like framing |
|
|
83
|
+
| 15 | Moonledger | Professional ERP; dense and precise data workspaces; compact but accessible controls |
|
|
84
|
+
|
|
85
|
+
Classic is a proposed Moonframe visual reference informed by dated shadcn documentation; it is not a claim of source compatibility or product affiliation. See the [Classic baseline and reference boundary](docs/research/classic-baseline.md). Upstream generated source is not copied. The local runtime uses native HTML semantics; the advanced-provider comparison remains open research.
|
|
86
|
+
|
|
87
|
+
## Documentation
|
|
88
|
+
|
|
89
|
+
### Package Architecture & Developer Experience (2026-10-25)
|
|
90
|
+
|
|
91
|
+
- [Audited live repo and P0–P3 package/DX findings](docs/audit/package-architecture-dx-audit.md)
|
|
92
|
+
- [Verified package/DX research delivery report and CI evidence](docs/audit/package-architecture-dx-delivery-2026-10-25.md)
|
|
93
|
+
- [Official npm/Node/TS/Vite/Tailwind/registry/OIDC research](docs/research/package-architecture-dx-research-log.md)
|
|
94
|
+
- [Canonical Package Architecture & Developer Experience Bible](docs/architecture/package-architecture-dx-bible.md)
|
|
95
|
+
- [ADR-0009 — Package topology, single runtime candidate](docs/adr/0009-package-topology.md)
|
|
96
|
+
- [ADR-0010 — npm runtime vs source-owned registry](docs/adr/0010-package-distribution.md)
|
|
97
|
+
- [Proposed package exports/metadata/distribution machine contract](contracts/moonframe-package-architecture-v0.1.json)
|
|
98
|
+
- [11 planned developer journeys and 13 diagnostics](contracts/moonframe-developer-experience-v0.1.json)
|
|
99
|
+
- [Bounded proposed package JSON Schema](schemas/moonframe-package-architecture.schema.json) and [16 invalid contract fixtures](contracts/fixtures/package-architecture-dx-v0.1.json)
|
|
100
|
+
- [16 small issue-ready DX/package tasks (no GitHub issues created)](docs/backlog/package-architecture-dx-atomic-issues.md)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Accessibility & Visual QA (2026-10-25)
|
|
104
|
+
|
|
105
|
+
- [Live repository accessibility/visual QA audit](docs/audit/accessibility-visual-qa-baseline.md)
|
|
106
|
+
- [Accessibility & Visual QA delivery report and verified CI evidence](docs/audit/accessibility-visual-qa-delivery-2026-10-25.md)
|
|
107
|
+
- [WCAG/ACT/axe/Storybook/Playwright primary-source research](docs/research/accessibility-visual-qa-research-log.md)
|
|
108
|
+
- [Accessibility & Visual QA Bible — canonical methodology](docs/qa/accessibility-visual-qa-bible.md)
|
|
109
|
+
- [51 WCAG criteria and evidence/verification mapping](contracts/moonframe-accessibility-requirements-v0.1.json)
|
|
110
|
+
- [151 component QA profiles joined to the canonical state/keyboard inventory](contracts/moonframe-component-qa-profiles-v0.1.json)
|
|
111
|
+
- [270 unrendered baseline slots — nine reference screens × 30 appearances](contracts/moonframe-visual-baseline-matrix-v0.1.json)
|
|
112
|
+
- [Empty QA/waiver/defect evidence ledger](contracts/moonframe-accessibility-qa-evidence-v0.1.json)
|
|
113
|
+
- [Proposed conditional QA evidence JSON Schema](schemas/moonframe-accessibility-qa-record.schema.json)
|
|
114
|
+
- [14 synthetic invalid QA evidence fixtures](contracts/fixtures/accessibility-visual-qa-v0.1.json)
|
|
115
|
+
- [ADR-0008 — testing tools and browser/AT decision pending](docs/adr/0008-accessibility-visual-qa-tooling.md)
|
|
116
|
+
- [16 issue-ready QA tasks](docs/backlog/accessibility-visual-qa-atomic-issues.md)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Motion, Interaction & SFX (2026-10-25)
|
|
120
|
+
|
|
121
|
+
- [Repository audit and P0–P3 evidence](docs/audit/motion-interaction-sfx-audit.md)
|
|
122
|
+
- [Verified Motion / Interaction / SFX delivery and CI report](docs/audit/motion-interaction-sfx-delivery-2026-10-25.md)
|
|
123
|
+
- [Primary WCAG, browser motion and sound research](docs/research/motion-interaction-sfx-research-log.md)
|
|
124
|
+
- [Motion, Interaction & SFX Bible](docs/motion/motion-interaction-sfx-bible.md)
|
|
125
|
+
- [25 named motion recipes, interrupt and reduced fallbacks](contracts/moonframe-motion-recipes-v0.1.json)
|
|
126
|
+
- [18 cross-component interaction patterns](contracts/moonframe-motion-interactions-v0.1.json)
|
|
127
|
+
- [15 distinct but behavior-stable motion directions](contracts/moonframe-motion-skin-matrix-v0.1.json)
|
|
128
|
+
- [Existing canonical six-event SFX contract, enriched safely](contracts/moonframe-sfx-contract-v0.1.json)
|
|
129
|
+
- [180 unrendered motion/interaction appearance QA cells](contracts/moonframe-motion-qa-coverage-v0.1.json)
|
|
130
|
+
- [Proposed motion recipe schema](schemas/moonframe-motion-recipe.schema.json) and [12 negative fixtures](contracts/fixtures/motion-interaction-sfx-v0.1.json)
|
|
131
|
+
- [ADR-0007 — native CSS / WAAPI / View Transition / Motion and audio engine options](docs/adr/0007-motion-and-optional-audio-engines.md)
|
|
132
|
+
- [QA/release validation plan](docs/qa/motion-interaction-sfx-validation-plan.md) and [14 atomic tasks](docs/backlog/motion-interaction-sfx-atomic-issues.md)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### Original Asset & Brand (2026-10-25)
|
|
136
|
+
|
|
137
|
+
- [Live asset inventory, provenance gaps and P0–P3 audit](docs/audit/original-asset-brand-audit.md)
|
|
138
|
+
- [Original Asset & Brand delivery, validation and owner-decision report](docs/audit/original-asset-brand-delivery-2026-10-25.md)
|
|
139
|
+
- [Original Asset & Brand Bible — canonical identity and rights policy](docs/brand/original-asset-brand-bible.md)
|
|
140
|
+
- [Research log: SVG 2, SVGO, fonts/OFL, licensing, formats, autoplay](docs/research/original-asset-brand-research-log.md)
|
|
141
|
+
- [Existing asset manifest, clarified as planned candidate pool](contracts/moonframe-asset-manifest-v0.1.json)
|
|
142
|
+
- [15 written skin asset briefs and anti-overlap constraints](contracts/moonframe-skin-asset-briefs-v0.1.json)
|
|
143
|
+
- [120 unrendered review cells across 30 Light/Dark appearances](contracts/moonframe-asset-qa-coverage-v0.1.json)
|
|
144
|
+
- [Conditional proposed Draft 2020-12 asset-record schema](schemas/moonframe-asset-record.schema.json)
|
|
145
|
+
- [Planned metadata and 10 synthetic invalid fixtures](contracts/fixtures/original-asset-v0.1.json)
|
|
146
|
+
- [ADR-0006 shared Moonframe brand and provenance pipeline — proposed](docs/adr/0006-original-asset-pipeline-and-brand.md)
|
|
147
|
+
- [Original asset-specific QA and provenance gates](docs/qa/original-asset-validation-plan.md)
|
|
148
|
+
- [15 issue-ready small follow-up tasks](docs/backlog/original-asset-atomic-issues.md)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Auth & Security UI Integration (2026-10-25)
|
|
152
|
+
|
|
153
|
+
- [Auth/Security UI repository audit](docs/audit/auth-security-ui-audit.md)
|
|
154
|
+
- [Auth & Security UI delivery report and CI evidence](docs/audit/auth-security-ui-delivery-2026-10-25.md)
|
|
155
|
+
- [Current security standards and provider research](docs/research/auth-security-ui-research-log.md)
|
|
156
|
+
- [Expanded canonical Auth & Security UI Bible](docs/premium/auth-ui-suite.md)
|
|
157
|
+
- [62 flow contracts, 20 states and 26 guarded transitions](contracts/moonframe-auth-flow-contract-v0.1.json)
|
|
158
|
+
- [Six providers × 14 documented feature statuses](contracts/moonframe-auth-provider-capability-matrix-v0.1.json)
|
|
159
|
+
- [20 threat-informed acceptance cases](contracts/moonframe-auth-threat-model-v0.1.json)
|
|
160
|
+
- [240 planned Light/Dark auth skin specimens](contracts/moonframe-auth-skin-coverage-v0.1.json)
|
|
161
|
+
- [Safe UI event JSON Schema](schemas/moonframe-auth-safe-event.schema.json) and [synthetic fixtures](contracts/fixtures/auth-security-v0.1.json)
|
|
162
|
+
- [ADR-0005 provider-neutral integration](docs/adr/0005-auth-provider-neutral-ui-integration.md)
|
|
163
|
+
- [Auth QA and acceptance strategy](docs/qa/auth-security-ui-validation-plan.md)
|
|
164
|
+
- [14 atomic tasks for later implementation](docs/backlog/auth-security-ui-issues.md)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### Advanced Data Workspace (2026-10-25)
|
|
168
|
+
|
|
169
|
+
- [Repository audit and P0–P3 findings](docs/audit/advanced-data-workspace-audit.md)
|
|
170
|
+
- [Advanced Data Workspace final delivery and CI report](docs/audit/advanced-data-workspace-delivery-2026-10-25.md)
|
|
171
|
+
- [Canonical existing Data Workspace Bible — expanded](docs/premium/data-workspace.md)
|
|
172
|
+
- [Primary-source research and comparison](docs/research/advanced-data-workspace-research-log.md)
|
|
173
|
+
- [ADR-0004 — engine choice proposed, not approved](docs/adr/0004-data-workspace-engine.md)
|
|
174
|
+
- [Data model, query, selection, saved-view and export contract](contracts/moonframe-data-workspace-contract-v0.1.json)
|
|
175
|
+
- [30 appearance / 15 data workspace recipes and 180 pending cases](contracts/moonframe-data-skin-coverage-v0.1.json)
|
|
176
|
+
- [8 domain-neutral presets referencing existing blocks/pages](contracts/moonframe-data-preset-catalog-v0.1.json)
|
|
177
|
+
- [Proposed query/selection/export JSON Schema](schemas/moonframe-data-query.schema.json) and [fixture cases](contracts/fixtures/data-workspace-v0.1.json)
|
|
178
|
+
- [Data Workspace QA strategy](docs/qa/data-workspace-validation-plan.md) and [14 atomic tasks](docs/backlog/advanced-data-workspace-issues.md)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### Component API & Behavior (2026-10-25)
|
|
182
|
+
|
|
183
|
+
- [Component API delivery report with CI evidence](docs/audit/component-api-delivery-2026-10-25.md)
|
|
184
|
+
|
|
185
|
+
- [Live component behavior audit](docs/audit/component-api-behavior-audit.md)
|
|
186
|
+
- [Current primary-source research log](docs/research/component-api-research-log.md)
|
|
187
|
+
- [Component API & Behavior Bible — canonical API convention](docs/component-api-behavior-bible.md)
|
|
188
|
+
- [151 component-level API proposals](contracts/moonframe-component-api-contract-v0.1.json)
|
|
189
|
+
- [151 × 24 state applicability matrix](contracts/moonframe-component-state-matrix-v0.1.json)
|
|
190
|
+
- [37 keyboard patterns + 151 mappings](contracts/moonframe-keyboard-interaction-matrix-v0.1.json)
|
|
191
|
+
- [Component behavior/schema draft](schemas/moonframe-component-behavior.schema.json) and [state schema](schemas/moonframe-component-matrix.schema.json)
|
|
192
|
+
- [Component testing and release evidence plan](docs/qa/component-testing-strategy.md)
|
|
193
|
+
- [12 small issue-ready tasks](docs/backlog/component-api-atomic-issues.md)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### Token Architecture & Theme Engine (2026-10-25)
|
|
197
|
+
|
|
198
|
+
- [Live token/theme audit](docs/audit/token-theme-engine-audit.md)
|
|
199
|
+
- [Token/theme delivery and verification report](docs/audit/token-theme-engine-delivery-2026-10-25.md)
|
|
200
|
+
- [Token/theme primary-source research](docs/research/token-theme-engine-research.md)
|
|
201
|
+
- [Authoritative token pipeline & runtime spec](docs/architecture/token-pipeline.md)
|
|
202
|
+
- [ADR-0002 bounded DTCG format and generator (proposed)](docs/adr/0002-token-format-and-generator.md)
|
|
203
|
+
- [ADR-0003 theme precedence/CSS/SSR (proposed)](docs/adr/0003-theme-runtime-and-css-output.md)
|
|
204
|
+
- [Token/theme QA plan](docs/qa/token-theme-validation-plan.md)
|
|
205
|
+
- [Token subset structural schema](schemas/moonframe-token-subset.schema.json)
|
|
206
|
+
- [Theme preference structural schema](schemas/moonframe-theme-preferences.schema.json)
|
|
207
|
+
- [10 atomic token/theme tasks](docs/backlog/token-theme-atomic-issues.md)
|
|
208
|
+
|
|
209
|
+
### Premium package specifications (2026-10-25)
|
|
210
|
+
|
|
211
|
+
- [Premium scope delivery report — verified commits, tests, issues](docs/audit/premium-scope-delivery-2026-10-25.md)
|
|
212
|
+
|
|
213
|
+
- [Premium Scope Bible — six levels A–F](docs/premium/premium-scope-bible.md)
|
|
214
|
+
- [Premium scope audit with P0–P3 findings](docs/audit/premium-scope-audit-2026-10-25.md)
|
|
215
|
+
- [Research and competitive analysis](docs/research/premium-competitive-analysis.md)
|
|
216
|
+
- [Authentication UI suite](docs/premium/auth-ui-suite.md) and [Auth flow references](contracts/moonframe-auth-ui-catalog-v0.1.json)
|
|
217
|
+
- [Four-tier Data Workspace](docs/premium/data-workspace.md) and [Data contract](contracts/moonframe-data-workspace-contract-v0.1.json)
|
|
218
|
+
- [151 proposed components](contracts/moonframe-component-manifest-v0.1.json), [144 block records (13 families + 131 concrete)](contracts/moonframe-block-manifest-v0.1.json)
|
|
219
|
+
- [72 page templates](contracts/moonframe-page-template-manifest-v0.1.json), [8 starter applications](contracts/moonframe-starter-manifest-v0.1.json)
|
|
220
|
+
- [16 optional integrations](contracts/moonframe-integration-manifest-v0.1.json), [660 pending reference specimens](contracts/moonframe-premium-coverage-v0.1.json)
|
|
221
|
+
- [10 atomic issue-ready premium tasks](docs/backlog/premium-catalog-atomic-issues.md)
|
|
222
|
+
|
|
223
|
+
- [Baseline repository audit](docs/audit/repository-baseline-audit.md)
|
|
224
|
+
- [Refinement delivery report](docs/audit/refinement-delivery-2026-10-25.md)
|
|
225
|
+
- [Primary-source research log](docs/research/research-log.md)
|
|
226
|
+
- [Primitive provider ADR (open)](docs/adr/0001-primitive-provider.md)
|
|
227
|
+
- [Architecture, ownership and governance](docs/architecture/decisions-and-governance.md)
|
|
228
|
+
- [Token pipeline and 30 pending coverage slots](docs/architecture/token-pipeline.md)
|
|
229
|
+
- [QA strategy and release gates](docs/qa/validation-strategy.md)
|
|
230
|
+
- [Initial small-task backlog](docs/backlog/initial-issues.md)
|
|
231
|
+
- [Full skin recipes](contracts/moonframe-skin-specifications-v1.0.json)
|
|
232
|
+
- [Component manifest (103 proposed entries)](contracts/moonframe-component-manifest-v0.1.json)
|
|
233
|
+
- [Blocks and template manifest (13 proposed entries)](contracts/moonframe-block-manifest-v0.1.json)
|
|
234
|
+
- [Token source/coverage plan](contracts/moonframe-token-source-plan-v0.1.json)
|
|
235
|
+
- [Asset contract](contracts/moonframe-asset-manifest-v0.1.json)
|
|
236
|
+
- [SFX contract](contracts/moonframe-sfx-contract-v0.1.json)
|
|
237
|
+
- [Contract validation (Node, no installed packages)](scripts/validate-contracts.mjs)
|
|
238
|
+
- [Contract CI](.github/workflows/contract-validation.yml)
|
|
239
|
+
|
|
240
|
+
- [Design System Bible v1.3](docs/moonframe-ui-design-system-bible-v1.3.md)
|
|
241
|
+
- [Skin Grammar Contract v1.0](contracts/moonframe-skin-grammar-contract-v1.0.json)
|
|
242
|
+
- [Theme Contract v1.3](contracts/moonframe-theme-contract-v1.3.json)
|
|
243
|
+
- [Token Dictionary Contract v0.1](contracts/moonframe-token-dictionary-v0.1.json)
|
|
244
|
+
- [Implementation Roadmap](docs/implementation-roadmap.md)
|
|
245
|
+
|
|
246
|
+
## Non-negotiable design laws
|
|
247
|
+
|
|
248
|
+
1. **Skin ≠ palette.** Every skin changes the visual grammar and must be recognizable in grayscale and with decorative artwork removed.
|
|
249
|
+
2. **One behavior, many skins.** Skin selection never changes component semantics, keyboard behavior, or business logic.
|
|
250
|
+
3. **No duplicate component forks.** Differences use semantic tokens and approved skin recipes; a behavioral fork requires an architecture decision record.
|
|
251
|
+
4. **Accessible by contract.** Focus, keyboard, screen-reader semantics, contrast, target size, forced-colors and reduced-motion are tested—not left to art direction.
|
|
252
|
+
5. **No fake completion.** Contracts and mockups are specifications only. Production status requires code, tests, review, and consumer validation.
|
|
253
|
+
6. **Original assets require provenance.** Each logo, vector, PNG, icon, texture, and sound effect must have a source/creator, license/status, format, intended use, and review record.
|
|
254
|
+
7. **Sound is opt-in.** No automatic audio; sound can be muted and never carries meaning unavailable visually or to assistive technology.
|
|
255
|
+
|
|
256
|
+
## Initial implementation strategy
|
|
257
|
+
|
|
258
|
+
1. Audit the target repository and current React/Tailwind/shadcn setup.
|
|
259
|
+
2. Lock token names, semantic roles, component contracts, and visual primitives.
|
|
260
|
+
3. Prototype Classic, Moonpunk, Moonzine, and Moonledger on the same reference screens.
|
|
261
|
+
4. Validate theme switching and shared behavior before scaling to all 15 skins.
|
|
262
|
+
5. Build the Skin Lab and test 30 baseline appearances plus risk-based state/density/viewport combinations.
|
|
263
|
+
6. Develop remaining skins, premium blocks/templates, original asset packs, and optional SFX.
|
|
264
|
+
7. Publish only after release gates pass.
|
|
265
|
+
|
|
266
|
+
## Scope boundaries
|
|
267
|
+
|
|
268
|
+
Moonframe provides UI components, layouts, tokens, themes, motion, asset contracts, and optional UI feedback sounds. It does **not** own Moonships infrastructure behavior, Moonradio messaging behavior, RPG rules, ERP/accounting logic, authentication policy, authorization policy, or product-specific data models.
|
|
269
|
+
|
|
270
|
+
## Versioning
|
|
271
|
+
|
|
272
|
+
The numbered contracts are versioned independently. Any breaking public API, token rename, skin ID change, or behavior change requires a migration note and an explicit versioning decision. Skin IDs are stable identifiers; display names may evolve only through a documented change.
|
|
2
273
|
|
|
3
|
-
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
package/package.json
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonwitness/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/bjo163/moonframe.git"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"packageManager": "pnpm@10.33.4",
|
|
15
|
+
"files": [
|
|
16
|
+
"src/"
|
|
17
|
+
],
|
|
18
|
+
"description": "React components and fifteen distinct light/dark skins for Moonframe",
|
|
19
|
+
"types": "./src/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": { "types": "./src/index.d.ts", "import": "./src/index.js", "default": "./src/index.js" },
|
|
22
|
+
"./styles.css": "./src/styles.css",
|
|
23
|
+
"./tailwind.css": "./src/tailwind.css",
|
|
24
|
+
"./skins": { "types": "./src/skins.d.ts", "import": "./src/skins.js", "default": "./src/skins.js" },
|
|
25
|
+
"./theme": { "types": "./src/theme.d.ts", "import": "./src/theme.js", "default": "./src/theme.js" }
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": ["**/*.css"],
|
|
28
|
+
"engines": { "node": ">=22.0.0" },
|
|
29
|
+
"scripts": {
|
|
30
|
+
"dev": "pnpm --filter moonframe dev",
|
|
31
|
+
"build": "pnpm --filter moonframe build",
|
|
32
|
+
"start": "pnpm --filter moonframe start",
|
|
33
|
+
"cli": "node scripts/moonframe-cli.mjs",
|
|
34
|
+
"test": "node --test tests/runtime.test.mjs",
|
|
35
|
+
"test:browser": "playwright test",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"validate": "node scripts/validate-contracts.mjs",
|
|
38
|
+
"tokens": "node scripts/generate-tokens.mjs",
|
|
39
|
+
"audit:pairs": "node scripts/audit-skin-pairs.mjs",
|
|
40
|
+
"pack:local": "pnpm pack",
|
|
41
|
+
"check": "pnpm run validate && pnpm test && pnpm run typecheck && pnpm run build"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": { "react": "^19.0.0", "react-dom": "^19.0.0" },
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"react": "19.3.1",
|
|
46
|
+
"react-dom": "19.3.1",
|
|
47
|
+
"typescript": "7.0.2",
|
|
48
|
+
"@types/react": "19.3.0",
|
|
49
|
+
"@types/react-dom": "19.3.0",
|
|
50
|
+
"@playwright/test": "1.64.1"
|
|
51
|
+
}
|
|
52
|
+
}
|