name: 7fitvis-visual-ui description: Design, extend, and review UI for the 7FitVis project using this repository's Visual OS source files, tokens, component states, and layout conventions. Use when creating or refactoring 7Fit pages in HTML or CSS, auditing visual consistency, building new sections in visos or UI kit pages, or producing responsive and print-ready output that must match the 7Fit brand system.
7FitVis Visual UI
Use this skill for UI tasks in f:/7FitVisOs.
Start With Project Context
- Read
references/repo-map.mdto understand the full file inventory. - Read
references/design-tokens-and-components.mdfor tokens and reusable classes. - Read
references/page-patterns.mdonly for the page family that matches the current task. - Read
references/quality-checklist.mdbefore finalizing edits.
Apply Non-Negotiable Rules
- Keep token-first styling; do not hardcode new colors or spacing when an existing token can be used.
- Keep brand color usage controlled:
- Primary brand color:
#9566F2. - Brand area ratio target:
<= 15%(tokens.jsonrulebrandRatioMax).
- Primary brand color:
- Keep interaction and accessibility baselines:
- Minimum tap target:
44x44(minTap). - Minimum mobile text size:
14px(textMinMobile). - Keep visible focus styles and semantic states (
success,warning,danger). - Keep or add live regions for transient feedback when applicable.
- Minimum tap target:
- Keep responsive and print behavior:
- Preserve existing breakpoints and one-column collapse patterns on small screens.
- Preserve
@media printbehavior and A4-friendly export settings.
Implement UI Changes
- Pick the closest existing page pattern from
references/page-patterns.mdbefore creating new layout structure. - Reuse existing classes in
styles/components.cssandstyles/page-visos.csswhere possible. - Add new styles to the correct layer:
styles/tokens.cssfor tokens only.styles/components.cssfor reusable components.styles/page-visos.cssfor page composition/layout.
- Keep dark-theme behavior consistent with current toggles:
visos.htmluses#appRoot+data-theme.- Other pages use
document.documentElement+localStorage('7fit-theme').
- For content-heavy pages, preserve the 7Fit tone: professional, evidence-driven, no exaggerated claims.
Review Workflow
- Audit against token usage, spacing rhythm, hierarchy, state coverage, and accessibility.
- Report issues by severity with file references.
- Include concrete fixes, not only observations.
Validation
- Run
npm run check:tokenswhen token-related files change. - Interpret failures carefully: current script resolves variables after dark-mode overrides in
styles/tokens.css, so mismatches may reflect mode-order behavior rather than missing tokens. - Always add a manual check for:
:roottoken values vstokens.json- focus visibility
- mobile readability
- print output (
Ctrl+P)