@nick848/ft 0.1.0 → 0.1.1
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 +42 -106
- package/cursor-commands-templates/ft-archive.md +11 -0
- package/cursor-commands-templates/ft-build.md +44 -0
- package/cursor-commands-templates/ft-design.md +11 -0
- package/cursor-commands-templates/ft-fill-context.md +13 -0
- package/cursor-commands-templates/ft-hotfix.md +33 -0
- package/cursor-commands-templates/ft-open.md +11 -0
- package/cursor-commands-templates/ft-sync-cursor-commands.md +11 -0
- package/cursor-commands-templates/ft-tweak.md +36 -0
- package/cursor-commands-templates/ft-verify.md +43 -0
- package/cursor-commands-templates/ft-visual-tools-install.md +26 -0
- package/dist/index.js +1109 -304
- package/dist/index.js.map +1 -1
- package/locales/en.json +95 -16
- package/locales/zh-CN.json +95 -16
- package/package.json +5 -4
- package/scripts/visual-diff.mjs +193 -0
- package/skills-templates/visual-fidelity/SKILL.md +77 -0
- package/skills-templates/visual-fidelity/checklist-schema.md +33 -0
- package/templates/AGENTS.md.en.hbs +5 -3
- package/templates/AGENTS.md.zh.hbs +5 -3
- package/templates/visual-spec.md +25 -0
- package/templates/visual-verify.json +14 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Visual Spec
|
|
2
|
+
|
|
3
|
+
> Generated by FT. Agent: read this file and `.ft/visual-checklist.json` before UI work.
|
|
4
|
+
> Update tokens via Figma MCP (`get_figma_data`) or `ft slash build` auto-fill.
|
|
5
|
+
|
|
6
|
+
## Design Sources
|
|
7
|
+
|
|
8
|
+
{{designSources}}
|
|
9
|
+
|
|
10
|
+
## Design Tokens
|
|
11
|
+
|
|
12
|
+
| Token | Value | CSS Variable | Source |
|
|
13
|
+
|-------|-------|--------------|--------|
|
|
14
|
+
{{tokenRows}}
|
|
15
|
+
|
|
16
|
+
## Component Map
|
|
17
|
+
|
|
18
|
+
| Figma Layer | Code Component | File |
|
|
19
|
+
|-------------|----------------|------|
|
|
20
|
+
| TBD | TBD | TBD |
|
|
21
|
+
|
|
22
|
+
## Notes
|
|
23
|
+
|
|
24
|
+
- Responsive/adaptation rules: see design annotations or AGENTS.md
|
|
25
|
+
- Do not mark checklist items `passed` without verifying implementation values
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"enabled": false,
|
|
3
|
+
"baseUrl": "http://localhost:5173",
|
|
4
|
+
"threshold": 0.1,
|
|
5
|
+
"outputDir": ".ft/visual-diffs",
|
|
6
|
+
"screens": [
|
|
7
|
+
{
|
|
8
|
+
"id": "example-screen",
|
|
9
|
+
"path": "/",
|
|
10
|
+
"baseline": ".ft/visual-baselines/example-screen.png",
|
|
11
|
+
"viewport": { "width": 375, "height": 812 }
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|