[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7394BFFCQEMGX52ZBKHHFEN":3,"skill-same:01M7394BFFCQEMGX52ZBKHHFEN":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M7394BFFCQEMGX52ZBKHHFEN","frontend-design",null,"Design and build web interfaces that look intentional, not templated. Use when building any UI, page, app or HTML; when making a landing page or portfolio; when redesigning an existing site; or when asked to make something look better.","0xherve\u002Fskills","0xherve","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F111514111?v=4","01M739439KKBY6WSTVA0YA3Y59","Herve Rwigema","01M73943A8PHK3WXV8E25TBYYR",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002F0xherve\u002Fskills\u002Fblob\u002Fmain\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002F0xherve\u002Fskills\u002Fblob\u002Fmain\u002Ffrontend-design\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: frontend-design\ndescription: Design and build web interfaces that look intentional, not templated. Use when building any UI, page, app or HTML; when making a landing page or portfolio; when redesigning an existing site; or when asked to make something look better.\n---\n\n# Frontend design\n\nEvery rule here is contextual. Read the brief first, then pull only what fits it. \n\nExisting design language in the project wins over everything below. Match its tokens, components and tone before adding anything new. You can also help standardize the design system for the project you are working in.\n\n## 1. Design read\n\nBefore any code, read these signals: page kind (app screen, landing, portfolio, editorial, redesign), the user's vibe words, references they linked or named, the audience, existing brand assets, and quiet constraints (public sector, regulated, accessibility-first, kids). Quiet constraints and the audience outrank your taste.\n\nState the read in one line, with the three dials:\n\n> Reading this as: \u003Cpage kind> for \u003Caudience>, with a \u003Cvibe> language, leaning toward \u003Cdesign system or aesthetic>. Dials: variance 7, motion 6, density 4.\n\n- **Variance** (1 symmetric, 10 asymmetric): 1-3 equal grid, centered. 4-7 offsets, mixed aspect ratios, left-aligned headers. 8-10 masonry, fractional grids (`2fr 1fr 1fr`), large empty zones. Asymmetry lives above `md`; below 768px every layout collapses to one column.\n- **Motion** (1 static, 10 cinematic): 1-3 hover and active states only. 4-7 eased CSS transitions and staggered load-ins. 8-10 scroll choreography, pinning, scrubbing.\n- **Density** (1 gallery, 10 cockpit): 1-3 `py-32` to `py-48` between sections. 4-7 `py-16` to `py-24`. 8-10 tight padding, 1px dividers in place of cards, `font-mono` for numbers.\n\nStarting presets: SaaS landing 7\u002F6\u002F4, agency 9\u002F8\u002F3, premium consumer 7\u002F6\u002F3, designer portfolio 8\u002F7\u002F3, developer portfolio 6\u002F5\u002F4, editorial 6\u002F4\u002F3, public sector 3\u002F2\u002F5, app screen 4\u002F3\u002F6. \"Minimal, calm, Linear-style\" pulls toward 5\u002F3\u002F2; \"Awwwards, experimental\" toward 9\u002F9\u002F3.\n\nIf the read forks (say, Linear-clean vs Awwwards-experimental), ask exactly one question. Otherwise declare the read and proceed.\n\nVary deliberately. Choose layout, type and palette from the read, and make a different choice from the last page you built for a similar brief.\n\n## 2. Foundation\n\nIf the brief reads as a real design system (Fluent, Material, Carbon, Polaris, Atlassian, Primer, GOV.UK, USWDS, Radix, shadcn\u002Fui, Bootstrap), install the official package and use it as shipped. One system per project. See [DESIGN-SYSTEMS.md](DESIGN-SYSTEMS.md) for the map, install commands and canonical docs.\n\nOtherwise it's an aesthetic (glass, bento, brutalist, editorial, dark tech, kinetic type). Build with Tailwind and native CSS.\n\nDefault stack when the project has none: React or Next.js with Server Components, Tailwind v4 (`@tailwindcss\u002Fpostcss` or the Vite plugin), Motion from `motion\u002Freact`, fonts through `next\u002Ffont` or self-hosted with `font-display: swap`. Check `package.json` before importing any library and print the install command for anything missing. Interactive pieces (motion, scroll, pointer physics) live in isolated `\"use client\"` leaf components.\n\n## 3. Constraints\n\n**Scales.** Spacing from a 4px or 8px base (4, 8, 12, 16, 24, 32, 48, 64, 96, 128), no magic numbers. Type from a 1.25 or 1.333 ratio, each size with a job. Body `text-base leading-relaxed max-w-[65ch]`.\n\n**Type.** Default display and body sans: Geist, Satoshi, Outfit, Cabinet Grotesk or a brand font. Inter fits neutral, Linear-style or public-sector briefs. Reach for serif only when the brand names one or the brief is editorial, luxury or heritage, and rotate the serif between projects. Emphasise a word with italic or bold of the same family. Italic display words with descenders (`y g j p q`) need `leading-[1.1]` and `pb-1`.\n\n**Color.** Neutral base (zinc, slate, stone) plus one accent, saturation under 80%. Lock the accent across the whole page. One gray temperature per project. Off-black and off-white in place of pure `#000` and `#fff`. Purple or neon glow only when the brand asks for it.\n\n**Shape.** One radius system per page (all sharp, all soft 12-16px, or pill for interactive), or a written rule followed everywhere. Shadows tinted to the background hue. Cards only when elevation means hierarchy; otherwise group with spacing, `border-t` or `divide-y`.\n\n**Layout.**\n- CSS Grid for multi-column layouts, not flex percentage math.\n- Full-height sections use `min-h-[100dvh]`.\n- Contain pages with `max-w-7xl mx-auto` or `max-w-[1400px]`.\n- Every multi-column component declares its under-768px fallback in the same file.\n- Navigation fits one line on desktop, 64-72px tall (80px max).\n- Z-index only for real layers (nav, modal, overlay, grain), from a documented scale.\n- Wrap animated pages in `overflow-x-hidden` so off-screen motion never adds a horizontal scrollbar.\n\n**States.** Every view ships loading (skeleton matching the final shape), empty (says how to populate), and error (inline for forms, toast only for transient). Buttons get `:active` feedback (`scale-[0.98]` or `-translate-y-px`).\n\n**Forms.** Label above input, helper text, error below, `gap-2`. Every input has a real label; the placeholder is only an example.\n\n**Theme.** One theme per page, light, dark or auto at the root; sections stay in it. Design both modes from the start for consumer pages, with Tailwind `dark:` or CSS variable tokens (pick one). Hierarchy and brand accent must hold in both.\n\n**Accessibility.** WCAG AA contrast on every text, button, placeholder, focus ring and error (4.5:1 body, 3:1 large). Visible focus rings. Semantic HTML. 44px touch targets. Meaningful alt text.\n\n**Motion.** Animate `transform` and `opacity` only. Continuous values (pointer, scroll progress) go through `useMotionValue`\u002F`useTransform`\u002F`useScroll` or ScrollTrigger, never React state or raw `scroll` listeners. Above motion 3, everything honours `prefers-reduced-motion` and collapses to static. Every animation has a one-sentence reason: hierarchy, story, feedback or state change. For motion 5 and up, read [MOTION.md](MOTION.md).\n\n**Icons.** One library: Phosphor, Hugeicons, Radix or Tabler (Lucide only if asked or already present). Consistent stroke width. A missing glyph means a second library, not a hand-drawn path.\n\n**Content.** Realistic text lengths and data. Names, brands and numbers sound real and specific (`47.2%`, not `99.99%`; a contextual brand, not Acme). Concrete verbs over \"elevate, seamless, unleash\", and the plain word over the fancy one (\"use\", not \"leverage\"). Each claim names what the product does or gives a number, not a feeling. Visible text uses periods, commas, colons or a hyphen; zero em or en dashes. Emoji only for a deliberately playful brief.\n\n## 4. Branches\n\n- **Landing page, portfolio, marketing or editorial page**: read [MARKETING.md](MARKETING.md) before building. It holds the hero rules, section flow, bento, imagery, copy and the marketing tells.\n- **Redesign of an existing site**: read [REDESIGN.md](REDESIGN.md) first; it decides the mode and the audit.\n- **Dashboards, data tables, wizards, editors, native mobile**: use the matching design system or specialist library (TanStack Table, AG Grid, Monaco). Apply only sections 1-3 here.\n\n## 5. Pre-flight\n\nThe work is done when every line holds. Check each against the actual code; if one fails, fix it and recheck.\n\n- [ ] Design read and dials stated, and the build matches them.\n- [ ] Foundation chosen: official system as shipped, or aesthetic built honestly.\n- [ ] Spacing and type come from the scales.\n- [ ] One accent, one radius system, one theme, locked across the page.\n- [ ] Every text, button, form element and focus ring passes AA contrast in each shipped mode.\n- [ ] Loading, empty and error states exist.\n- [ ] Every multi-column layout has its mobile fallback; nothing scrolls sideways at 375px.\n- [ ] Motion is motivated, transform\u002Fopacity only, cleaned up in `useEffect`, and reduced-motion safe.\n- [ ] Every imported library is installed; icons come from one library.\n- [ ] Zero em or en dashes in visible text; copy read back once and every string makes sense.\n- [ ] Branch checklist passed (MARKETING.md or REDESIGN.md), if one applied.\n- [ ] You opened the page and looked at it, in both modes if it ships both.\n","# Frontend design\n\nEvery rule here is contextual. Read the brief first, then pull only what fits it. \n\nExisting design language in the project wins over everything below. Match its tokens, components and tone before adding anything new. You can also help standardize the design system for the project you are working in.\n\n## 1. Design read\n\nBefore any code, read these signals: page kind (app screen, landing, portfolio, editorial, redesign), the user's vibe words, references they linked or named, the audience, existing brand assets, and quiet constraints (public sector, regulated, accessibility-first, kids). Quiet constraints and the audience outrank your taste.\n\nState the read in one line, with the three dials:\n\n> Reading this as: \u003Cpage kind> for \u003Caudience>, with a \u003Cvibe> language, leaning toward \u003Cdesign system or aesthetic>. Dials: variance 7, motion 6, density 4.\n\n- **Variance** (1 symmetric, 10 asymmetric): 1-3 equal grid, centered. 4-7 offsets, mixed aspect ratios, left-aligned headers. 8-10 masonry, fractional grids (`2fr 1fr 1fr`), large empty zones. Asymmetry lives above `md`; below 768px every layout collapses to one column.\n- **Motion** (1 static, 10 cinematic): 1-3 hover and active states only. 4-7 eased CSS transitions and staggered load-ins. 8-10 scroll choreography, pinning, scrubbing.\n- **Density** (1 gallery, 10 cockpit): 1-3 `py-32` to `py-48` between sections. 4-7 `py-16` to `py-24`. 8-10 tight padding, 1px dividers in place of cards, `font-mono` for numbers.\n\nStarting presets: SaaS landing 7\u002F6\u002F4, agency 9\u002F8\u002F3, premium consumer 7\u002F6\u002F3, designer portfolio 8\u002F7\u002F3, developer portfolio 6\u002F5\u002F4, editorial 6\u002F4\u002F3, public sector 3\u002F2\u002F5, app screen 4\u002F3\u002F6. \"Minimal, calm, Linear-style\" pulls toward 5\u002F3\u002F2; \"Awwwards, experimental\" toward 9\u002F9\u002F3.\n\nIf the read forks (say, Linear-clean vs Awwwards-experimental), ask exactly one question. Otherwise declare the read and proceed.\n\nVary deliberately. Choose layout, type and palette from the read, and make a different choice from the last page you built for a similar brief.\n\n## 2. Foundation\n\nIf the brief reads as a real design system (Fluent, Material, Carbon, Polaris, Atlassian, Primer, GOV.UK, USWDS, Radix, shadcn\u002Fui, Bootstrap), install the official package and use it as shipped. One system per project. See [DESIGN-SYSTEMS.md](DESIGN-SYSTEMS.md) for the map, install commands and canonical docs.\n\nOtherwise it's an aesthetic (glass, bento, brutalist, editorial, dark tech, kinetic type). Build with Tailwind and native CSS.\n\nDefault stack when the project has none: React or Next.js with Server Components, Tailwind v4 (`@tailwindcss\u002Fpostcss` or the Vite plugin), Motion from `motion\u002Freact`, fonts through `next\u002Ffont` or self-hosted with `font-display: swap`. Check `package.json` before importing any library and print the install command for anything missing. Interactive pieces (motion, scroll, pointer physics) live in isolated `\"use client\"` leaf components.\n\n## 3. Constraints\n\n**Scales.** Spacing from a 4px or 8px base (4, 8, 12, 16, 24, 32, 48, 64, 96, 128), no magic numbers. Type from a 1.25 or 1.333 ratio, each size with a job. Body `text-base leading-relaxed max-w-[65ch]`.\n\n**Type.** Default display and body sans: Geist, Satoshi, Outfit, Cabinet Grotesk or a brand font. Inter fits neutral, Linear-style or public-sector briefs. Reach for serif only when the brand names one or the brief is editorial, luxury or heritage, and rotate the serif between projects. Emphasise a word with italic or bold of the same family. Italic display words with descenders (`y g j p q`) need `leading-[1.1]` and `pb-1`.\n\n**Color.** Neutral base (zinc, slate, stone) plus one accent, saturation under 80%. Lock the accent across the whole page. One gray temperature per project. Off-black and off-white in place of pure `#000` and `#fff`. Purple or neon glow only when the brand asks for it.\n\n**Shape.** One radius system per page (all sharp, all soft 12-16px, or pill for interactive), or a written rule followed everywhere. Shadows tinted to the background hue. Cards only when elevation means hierarchy; otherwise group with spacing, `border-t` or `divide-y`.\n\n**Layout.**\n- CSS Grid for multi-column layouts, not flex percentage math.\n- Full-height sections use `min-h-[100dvh]`.\n- Contain pages with `max-w-7xl mx-auto` or `max-w-[1400px]`.\n- Every multi-column component declares its under-768px fallback in the same file.\n- Navigation fits one line on desktop, 64-72px tall (80px max).\n- Z-index only for real layers (nav, modal, overlay, grain), from a documented scale.\n- Wrap animated pages in `overflow-x-hidden` so off-screen motion never adds a horizontal scrollbar.\n\n**States.** Every view ships loading (skeleton matching the final shape), empty (says how to populate), and error (inline for forms, toast only for transient). Buttons get `:active` feedback (`scale-[0.98]` or `-translate-y-px`).\n\n**Forms.** Label above input, helper text, error below, `gap-2`. Every input has a real label; the placeholder is only an example.\n\n**Theme.** One theme per page, light, dark or auto at the root; sections stay in it. Design both modes from the start for consumer pages, with Tailwind `dark:` or CSS variable tokens (pick one). Hierarchy and brand accent must hold in both.\n\n**Accessibility.** WCAG AA contrast on every text, button, placeholder, focus ring and error (4.5:1 body, 3:1 large). Visible focus rings. Semantic HTML. 44px touch targets. Meaningful alt text.\n\n**Motion.** Animate `transform` and `opacity` only. Continuous values (pointer, scroll progress) go through `useMotionValue`\u002F`useTransform`\u002F`useScroll` or ScrollTrigger, never React state or raw `scroll` listeners. Above motion 3, everything honours `prefers-reduced-motion` and collapses to static. Every animation has a one-sentence reason: hierarchy, story, feedback or state change. For motion 5 and up, read [MOTION.md](MOTION.md).\n\n**Icons.** One library: Phosphor, Hugeicons, Radix or Tabler (Lucide only if asked or already present). Consistent stroke width. A missing glyph means a second library, not a hand-drawn path.\n\n**Content.** Realistic text lengths and data. Names, brands and numbers sound real and specific (`47.2%`, not `99.99%`; a contextual brand, not Acme). Concrete verbs over \"elevate, seamless, unleash\", and the plain word over the fancy one (\"use\", not \"leverage\"). Each claim names what the product does or gives a number, not a feeling. Visible text uses periods, commas, colons or a hyphen; zero em or en dashes. Emoji only for a deliberately playful brief.\n\n## 4. Branches\n\n- **Landing page, portfolio, marketing or editorial page**: read [MARKETING.md](MARKETING.md) before building. It holds the hero rules, section flow, bento, imagery, copy and the marketing tells.\n- **Redesign of an existing site**: read [REDESIGN.md](REDESIGN.md) first; it decides the mode and the audit.\n- **Dashboards, data tables, wizards, editors, native mobile**: use the matching design system or specialist library (TanStack Table, AG Grid, Monaco). Apply only sections 1-3 here.\n\n## 5. Pre-flight\n\nThe work is done when every line holds. Check each against the actual code; if one fails, fix it and recheck.\n\n- [ ] Design read and dials stated, and the build matches them.\n- [ ] Foundation chosen: official system as shipped, or aesthetic built honestly.\n- [ ] Spacing and type come from the scales.\n- [ ] One accent, one radius system, one theme, locked across the page.\n- [ ] Every text, button, form element and focus ring passes AA contrast in each shipped mode.\n- [ ] Loading, empty and error states exist.\n- [ ] Every multi-column layout has its mobile fallback; nothing scrolls sideways at 375px.\n- [ ] Motion is motivated, transform\u002Fopacity only, cleaned up in `useEffect`, and reduced-motion safe.\n- [ ] Every imported library is installed; icons come from one library.\n- [ ] Zero em or en dashes in visible text; copy read back once and every string makes sense.\n- [ ] Branch checklist passed (MARKETING.md or REDESIGN.md), if one applied.\n- [ ] You opened the page and looked at it, in both modes if it ships both.\n",{"name":5,"description":7},"main","38f64384cd54ebce007dcd2d5d6533c571986269","https:\u002F\u002Fgithub.com\u002F0xherve\u002Fskills","https:\u002F\u002Fgithub.com\u002F0xherve","I hate doing things more than once","2026-10-15 19:04:13",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add 0xherve\u002Fskills --skill frontend-design",{"tool":37,"command":38},"bunx","bunx skills add 0xherve\u002Fskills --skill frontend-design",{"tool":40,"command":41},"pnpm","pnpm dlx skills add 0xherve\u002Fskills --skill frontend-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xherve\u002Fskills\u002Fblob\u002Fmain\u002Ffrontend-design\u002FSKILL.md",true,[45,51,56,60,64],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"DESIGN-SYSTEMS.md","REFERENCE","参考文档",6392,"https:\u002F\u002Fgithub.com\u002F0xherve\u002Fskills\u002Fblob\u002Fmain\u002Ffrontend-design\u002FDESIGN-SYSTEMS.md",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":16},"LICENSE.txt","LICENSE","许可证",10174,{"path":57,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":58,"sourceHtmlUrl":59},"MARKETING.md",7455,"https:\u002F\u002Fgithub.com\u002F0xherve\u002Fskills\u002Fblob\u002Fmain\u002Ffrontend-design\u002FMARKETING.md",{"path":61,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":62,"sourceHtmlUrl":63},"MOTION.md",7175,"https:\u002F\u002Fgithub.com\u002F0xherve\u002Fskills\u002Fblob\u002Fmain\u002Ffrontend-design\u002FMOTION.md",{"path":65,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":66,"sourceHtmlUrl":67},"REDESIGN.md",2325,"https:\u002F\u002Fgithub.com\u002F0xherve\u002Fskills\u002Fblob\u002Fmain\u002Ffrontend-design\u002FREDESIGN.md",[]]