Frontend design

From ShuaiMXu/happyhands · View interactive version

Frontend design is an AI agent skill from the GitHub repository ShuaiMXu/happyhands. Craft doctrine for building distinctive, polished frontend interfaces. Use when building or reviewing web UI — components, pages, layouts, styling, animation. Covers design direction, typography, surfaces, and motion. Defers to the repo's DESIGN.md for all project-specific choices.

How to use this skill

Skill file

<!-- generated by design-md v1.0.0 -->

Great interfaces are a collection of small, intentional details that compound. Apply this doctrine when building or reviewing any UI.

DESIGN.md wins. If this repo has a DESIGN.md, its fonts, tokens, budgets, and recipes override everything below — this skill covers the craft layer underneath any design language. Express every change in the styling system the project already uses (Tailwind, CSS Modules, styled-components, plain CSS); never introduce a second one for a fix.

Direction

Before coding a new surface, commit to a clear aesthetic point of view — the repo's DESIGN.md if one exists, otherwise a deliberate choice for the context. Intentionality matters more than intensity: refined minimalism and bold maximalism both work; timid, evenly-distributed defaults do not. Never ship generic AI aesthetics: stock font stacks chosen by habit, purple-gradient-on-white, cookie-cutter card grids with no context-specific character. Match implementation effort to the vision — maximalist designs need elaborate effects, minimal ones need precision in spacing and type.

Typography

Good typography is mostly restraint: a sensible scale, comfortable spacing, enough contrast.

Surfaces

```

shadow-[0px_0px_0px_1px_rgba(0,0,0,0.06),0px_1px_2px_-1px_rgba(0,0,0,0.06),0px_2px_4px_0px_rgba(0,0,0,0.04)]

dark:shadow-[0px_0px_0px_1px_rgba(255,255,255,0.06),0px_1px_2px_-1px_rgba(255,255,255,0.03),0px_2px_4px_0px_rgba(0,0,0,0.2)]

```

Strengthen the same layers for hover/selected. Extract a shared component after the third repetition, with transition-shadow duration-200.

Motion

```css

@keyframes enter {

from { opacity: 0; transform: translateY(8px); filter: blur(4px); }

}

.animate-enter {

animation: enter 600ms cubic-bezier(0.2, 0, 0, 1) both;

animation-delay: calc(80ms * var(--stagger, 0));

}

```

Review checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.