Frontend Design

作者: Anthropic

生成獨特且具備生產級品質的前端介面,避免常見的AI美學風格。

npx skills add https://github.com/anthropics/skills --skill frontend-design

Frontend Design

Approach this as the design lead at a small studio known for giving every client a visual identity that could not be mistaken for anyone else's. This client has already rejected proposals that felt templated, and is paying for a distinctive point of view: make deliberate, opinionated choices about palette, typography, and layout that are specific to this brief, and take one real aesthetic risk you can justify.

Ground it in the subject

If the brief does not pin down what the product or subject is, pin it yourself before designing: name one concrete subject, its audience, and the page's single job, and state your choice. If there's any information in your memory about the human's preferences, context about what they're building, or designs you've made before – use that as a hint. The subject's own world, its materials, instruments, artifacts, and vernacular, is where distinctive choices come from. Build with the brief's real content and subject matter throughout.

Design principles

For web designs, the hero is a thesis. Open with the most characteristic thing in the subject's world, in whatever form makes sense for it: a headline, an image, an animation, a live demo, an interactive moment. Be deliberate with your choice: a big number with a small label, supporting stats, and a gradient accent is the template answer, only use if that's truly the best option.

Typography carries the personality of the page. Pair the display and body faces deliberately, not the same families you would reach for on any other project, and set a clear type scale with intentional weights, widths, and spacing. Make the type treatment itself a memorable part of the design, not a neutral delivery vehicle for the content.

Structure is information. Structural devices, numbering, eyebrows, dividers, labels, should encode something true about the content, not decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence - like a real process or a typed timeline where order carries information the reader needs. Question if choices like numbered markers actually make sense before incorporating them.

Leverage motion deliberately. Think about where and if animation can serve the subject: a page-load sequence, a scroll-triggered reveal, hover micro-interactions, ambient atmosphere. An orchestrated moment usually lands harder than scattered effects; choose what the direction calls for. However, sometimes less is more, and extra animation contributes to the feeling that the design is AI-generated.

Match complexity to the vision. Maximalist directions need elaborate execution; minimal directions need precision in spacing, type, and detail. Elegance is executing the chosen vision well.

Consider written content carefully. Often a design brief may not contain real content, and it's up to you to come up with copy. Copy can make a design feel as templated as the design itself. See the below section on writing for more guidance.

Process: brainstorm, explore, plan, critique, build, critique again

For calibration: AI-generated design right now clusters around three looks: (1) a warm cream background (near #F4F1EA) with a high-contrast serif display and a terracotta accent; (2) a near-black background with a single bright acid-green or vermilion accent; (3) a broadsheet-style layout with hairline rules, zero border-radius, and dense newspaper-like columns. All three are legitimate for some briefs, but they are defaults rather than choices, and they appear regardless of subject. Where the brief pins down a visual direction, follow it exactly — the brief's own words always win, including when it asks for one of these looks. Where it leaves an axis free, don't spend that freedom on one of these defaults. Just like a human designer who's hired, there's often a careful balance between doing what you're good at and taking each project as a chance to experiment and learn.

Work in two passes. First, brainstorm a short design plan based on the human's design brief: create a compact token system with color, type, layout, and signature. Color: describe the palette as 4–6 named hex values. Type: the typefaces for 2+ roles (a characterful display face that's used with restraint, a complementary body face, and a utility face for captions or data if needed). Layout: a layout concept, using one-sentence prose descriptions and ASCII wireframes to ideate and compare. Signature: the single unique element this page will be remembered by that embodies the brief in an appropriate way.

Then review that plan against the brief before building: if any part of it reads like the generic default you would produce for any similar page (work through a similar prompt to see if you arrive somewhere similar) rather than a choice made for this specific brief — revise that part, say what you changed and why. Only after you've confirmed the relative uniqueness of your design plan should you start to write the code, following the revised plan exactly and deriving every color and type decision from it.

When writing the code, be careful of structuring your CSS selector specificities. It's easy to generate CSS classes that cancel each other out (especially with a type-based selector like .section and a element-based selector like .cta). This can happen often with paddings/margins between sections.

Try to do a lot of this planning and iteration in your thinking, and only show ideas to the user when you have higher confidence it'll delight them.

Restraint and self-critique

Spend your boldness in one place. Let the signature element be the one memorable thing, keep everything around it quiet and disciplined, and cut any decoration that does not serve the brief. Not taking a risk can be a risk itself! Build to a quality floor without announcing it: responsive down to mobile, visible keyboard focus, reduced motion respected. Critique your own work as you build, taking screenshots if your environment supports it – a picture is worth 1000 tokens. Consider Chanel's advice: before leaving the house, take a look in the mirror and remove one accessory. Human creators have memory and always try to do something new, so if you have a space to quickly jot down notes about what you've tried, it can help you in future passes.

More on writing in design

Words appear in a design for one reason: to make it easier to understand, and therefore easier to use. They are design material, not decoration. Bring the same intentionality to copy that you would bring to spacing and color. Before writing anything, ask what the design needs to say, and how it can best be said to help the person navigate the experience.

Write from the end user's side of the screen. Name things by what people control and recognize, never by how the system is built. A person manages notifications, not webhook config. Describe what something does in plain terms rather than selling it. Being specific is always better than being clever.

Use active voice as default. A control should say exactly what happens when it's used: "Save changes," not "Submit." An action keeps the same name through the whole flow, so the button that says "Publish" produces a toast that says "Published." The vocabulary of an interface is the signposting for someone navigating the product. Cohesion and consistency are how people learn their way around.

Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it, in the interface's voice rather than a person's. Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act.

Keep the register conversational and tuned: plain verbs, sentence case, no filler, with tone matched to the brand and the audience. Let each element do exactly one job. A label labels, an example demonstrates, and nothing quietly does double duty.

來自 Anthropic 的更多技能

Algorithmic Art
Anthropic
使用p5.js建立演算法藝術,包含種子隨機性與互動式參數探索。當使用者要求以程式碼創作藝術、生成式藝術、演算法藝術、流場或粒子系統時使用此功能。創作原創演算法藝術,避免抄襲現有藝術家作品以規避版權問題。 授權:完整條款請見LICENSE.txt
creativeofficial
Brand Guidelines
Anthropic
將Anthropic官方品牌色彩與字體應用於任何可能需要呈現Anthropic風格與視覺感受的成品。當涉及品牌色彩、風格指南、視覺格式或公司設計標準時使用此規範。 授權:完整條款請見LICENSE.txt
creativeofficial
Canvas Design
Anthropic
使用設計理念在 .png 和 .pdf 文件中創作精美的視覺藝術。當使用者要求製作海報、藝術作品、設計或其他靜態作品時,應使用此技能。創作原創視覺設計,切勿抄襲現有藝術家的作品以避免版權侵權。 授權條款:完整條款請見 LICENSE.txt
creativeofficial
Docx
Anthropic
全面的文件建立、編輯與分析,支援追蹤修訂、註解、格式保留及文字擷取。當Claude需要處理專業文件(.docx檔案)以進行:(1) 建立新文件、(2) 修改或編輯內容、(3) 處理追蹤修訂、(4) 新增註解,或其他文件相關任務時適用。 授權:專有軟體。完整條款請見LICENSE.txt。
documentofficial
Internal Comms
Anthropic
一套資源,幫助我撰寫各種內部溝通內容,使用公司偏好的格式。每當需要撰寫內部溝通文件(如狀態報告、領導層更新、第三方更新、公司通訊、常見問題、事件報告、專案更新等)時,Claude 應使用此技能。 授權:完整條款請見 LICENSE.txt
official
MCP Builder
Anthropic
建立高品質 MCP(模型上下文協定)伺服器的指南,讓大型語言模型能透過設計完善的工具與外部服務互動。適用於建置 MCP 伺服器以整合外部 API 或服務時,無論是使用 Python(FastMCP)或 Node/TypeScript(MCP SDK)。 授權條款:完整條款請見 LICENSE.txt
developmentofficial
Artifacts Builder
Anthropic
用於創建精緻、多組件 claude.ai HTML 工件的一套工具,採用現代前端網頁技術(React、Tailwind CSS、shadcn/ui)。適用於需要狀態管理、路由或 shadcn/ui 元件的複雜工件,不適用於簡單的單一檔案 HTML/JSX 工件。 授權條款:完整條款請見 LICENSE.txt
development
PDF
Anthropic
全面的PDF操作工具包,用於提取文字與表格、建立新PDF、合併/分割文件以及處理表單。當Claude需要填寫PDF表單或以程式化方式大規模處理、生成或分析PDF文件時使用。 授權:專有。LICENSE.txt包含完整條款
documentofficial