‹ 首页

formax-web-style-system

@yusifeng · 收录于 5 天前 · 上游提交 3 周前

Use for all frontend and web UI tasks by default to apply a business-agnostic desktop web visual style system with medium-strength guardrails; if an existing design system is present, follow it first and use this skill only as a style harmonizer.

适合你,如果你需要为桌面网页应用快速应用一套中强度约束的视觉风格系统。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add yusifeng/formax/formax-web-style-system
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- yusifeng/formax/formax-web-style-system
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify yusifeng/formax/formax-web-style-system
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
192GitHub stars
~731最小装载
~2.9K含声明引用
~2.9K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 5a48573 · 表述以原文为准
它做什么

当你在处理前端或Web UI任务时,Claude会默认应用一套桌面优先的视觉风格系统,强调清晰可读、基于CSS变量(token)的样式和明确的交互层级。

什么时候触发

默认用于所有前端和Web UI任务,但如果已有现成的设计系统,则优先遵循已有系统,仅用本技能协调风格。

装好后可以这样说
Claude会应用本技能定义的视觉系统来设计页面。
Claude会使用CSS变量定义颜色、间距等。
技能原文 SKILL.md作者撰写 · MIT · 5a48573

Formax Web Style System

Goal

Apply a business-agnostic visual style system for web interfaces.

Enforce a calm, desktop-grade aesthetic with strong readability, token-first styling, and clear interaction hierarchy.

Do not introduce product workflow assumptions, domain copy assumptions, or business IA decisions.

Trigger Contract

Use this skill by default for all frontend and web UI tasks.

If the task is not frontend/UI work, do not apply this skill.

If the repository or task provides an existing design system, brand guide, or component library:

  • Follow the existing system first.
  • Use this skill only to harmonize tone, spacing rhythm, and state clarity.
  • Never override explicit local design constraints.
Workflow
  1. Read references/style-doctrine.md first to lock the visual direction.
  2. Read references/token-blueprint.md to define CSS variable layers before proposing UI details.
  3. Read references/layout-patterns.md when composing desktop layout, density, and responsive fallback.
  4. Read references/component-tone.md when styling components, states, and interaction emphasis.
  5. Read references/anti-patterns.md as a final rejection checklist before returning output.
  6. Apply all CRITICAL STYLE OVERRIDES from the references as mandatory constraints.

For small styling requests, keep output concise but still include token strategy and state clarity.

Formax Overrides (Mandatory for CSS Rework)

When the task touches CSS in packages/web-reference-react/**, do this before editing:

  1. Read .codex/skills/formax-web-css-convergence-workflow/SKILL.md.
  2. Lock a pre-edit intake contract (target model, non-goals, ownership boundary, acceptance checks).
  3. Use single-axis passes (geometry -> color -> interaction), avoid mixed multi-axis edits.
  4. Validate with:
  5. bun run test -- src/App.test.tsx (in packages/web-reference-react)
  6. If and only if the task includes transparency/window layering:
  7. Read docs/contracts/web/window-transparency-construct.md
  8. Run bun run test:e2e -- e2e/window-transparency.evidence.spec.js --project=chromium (in packages/web-reference-react)
Output Contract

For each frontend/web UI response, always include these sections (explicit headings):

  1. visual_direction
  2. tokens
  3. layout
  4. component_tone
  5. responsive_notes

Inside tokens, provide CSS variable categories at minimum for:

  • color
  • typography
  • spacing
  • radius
  • shadow
  • motion

Prefer style system guidance and representative snippets over large hard-coded CSS dumps.

Guardrails

Never do the following:

  • Assume product business flows, user journeys, or domain-specific copy.
  • Default to purple-first palettes when not requested.
  • Default to dark-mode-first styling when not requested.
  • Produce generic template-like SaaS visuals without distinct visual intent.
  • Hard-code ad-hoc colors and spacing without a token layer.
  • Copy screenshot pixels exactly; preserve mood, not exact geometry.
  • Replace required glass-material sidebars with opaque flat fills.
  • Use bordered inputs in default state when soft-filled inputs are specified.

Always keep medium constraint strength:

  • Strong enough to maintain consistent visual quality.
  • Flexible enough to adapt to different frontend tasks and local systems.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。