frontend-design

A design and coding guide for building distinctive web interfaces, including pages, dashboards, landing pages, and reusable components.

In plain words
What is it for?
Use it when creating or restyling HTML, CSS, JavaScript, React, or Vue interfaces.
Why use it?
It helps turn a functional frontend into a deliberate visual design instead of a generic layout.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/itmisx/deepx-code/frontend-design
Any agent
npx skills add itmisx/deepx-code --skill frontend-design
Clone the repo
git clone --depth 1 https://github.com/itmisx/deepx-code

Made for: Claude Code, Codex.

Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,099 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00088 $0.01099
Opus 5 $0.00044 $0.00549
Sonnet 5 $0.00018 $0.00220
Haiku 4.5 $0.00009 $0.00110

Measured yesterday against content hash 05c2e98535c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill/skills/frontend-design/SKILL.md · 46 lines

What it actually says

本 skill 指导你做出有辨识度、生产级的前端界面,避开千篇一律的"AI 流水线"审美。要写出真正能跑的代码,并在美学细节与创意取舍上格外用心。

用户会给出前端需求:要构建的某个组件、页面、应用或界面。可能附带用途、受众或技术约束的背景。

设计思考

写代码前,先理解场景,并笃定地选一个大胆的美学方向:

  • 用途:这个界面解决什么问题?谁在用?
  • 基调:选一个极致方向——极简到狠、极繁到乱、复古未来、有机自然、奢华精致、俏皮玩具感、杂志编辑风、粗野原始、装饰艺术/几何、柔和马卡龙、工业实用,等等。风味很多,拿来找灵感,但要设计一个真正贴合所选方向的。
  • 约束:技术要求(框架、性能、无障碍)。
  • 差异化:什么让它令人难忘?别人会记住的那一个点是什么?

关键:选一个清晰的概念方向,并精准执行。大胆的极繁和克制的极简都行——重点是意图明确,而非强度。

然后实现能跑的代码(HTML/CSS/JS、React、Vue 等),要做到:

  • 生产级、功能完整
  • 视觉抢眼、令人记住
  • 有统一、清晰的美学观点
  • 每个细节都精雕细琢

前端美学准则

重点关注:

  • 字体(Typography):选漂亮、独特、有意思的字体。避开 Arial、Inter 这类通用字体;选有特点、出人意料、能拔高质感的字体。用一个有个性的展示字体搭一个精致的正文字体。
  • 配色与主题(Color & Theme):笃定一个统一的美学。用 CSS variables 保持一致。主色 + 锐利点缀胜过怯生生、平均分配的调色板。
  • 动效(Motion):用动画做效果和微交互。HTML 优先纯 CSS 方案;React 在可用时用 Motion 库。聚焦高冲击力的时刻:一次编排良好、错落渐显(animation-delay)的页面加载,比零散的微交互更令人愉悦。用会让人惊喜的滚动触发与 hover 态。
  • 空间构图(Spatial Composition):出人意料的布局。非对称。叠压。对角线流动。打破网格的元素。慷慨的留白,受控的密集。
  • 背景与视觉细节:营造氛围与层次,而不是默认用纯色。加入契合整体美学的情境效果与纹理。运用渐变网格、噪点纹理、几何图案、分层透明、戏剧化阴影、装饰性边框、自定义光标、颗粒叠层等创意手法。

绝不使用通用的 AI 生成审美:被用烂的字体族(Inter、Roboto、Arial、系统字体)、套路化配色(尤其是白底紫色渐变)、可预测的布局与组件套路,以及缺乏场景特异性的模板化设计。

要有创意地解读、做出真正"为这个场景而设计"的意外选择。没有两个设计该是一样的。在亮色/暗色主题、不同字体、不同美学之间变化。绝不在多次生成里收敛到同一个常见选择(例如 Space Grotesk)。

重要:让实现的复杂度匹配美学愿景。极繁设计需要繁复的代码、大量动画与效果;极简或精致设计需要克制、精准,以及对间距、字体、微妙细节的悉心打磨。优雅来自把愿景执行到位。

记住:你有能力做出非凡的创意作品。别保守——拿出跳出框框、全力投入一个独特愿景时真正能创造的东西。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 46 lines · 88 tokens per session scan A 05c2e98535c6

Subscribe to this mod's changes

frontend-design is a skill published in the GitHub repository itmisx/deepx-code (383 stars, last pushed 7d ago), licensed MIT. It adds 88 tokens to every session and 1,099 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.