frontend-enhancer by ailabs-393/ai-labs-claude-skills
npx skills add https://github.com/ailabs-393/ai-labs-claude-skills --skill frontend-enhancerFrontend Enhancer 技能将 Next.js 应用程序转变为视觉惊艳、现代化的网页体验。它提供生产就绪的组件、全面的设计指南、精选的调色板、流畅的动画以及为响应性和可访问性优化的灵活布局模板。
在以下情况下调用此技能:
使用预构建、生产就绪的 React 组件,包含多种变体和状态:
按钮组件 (assets/button-variants.tsx):
卡片组件 (assets/card-variants.tsx):
输入组件 (assets/input-variants.tsx):
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
实现工作流:
assets/ 复制到您项目的组件目录cn 工具函数存在(参见 assets/utils-cn.ts)为常见的页面区域使用预先设计好的响应式布局模式:
英雄区域 (assets/layout-hero-section.tsx):
功能网格 (assets/layout-feature-grid.tsx):
实现工作流:
assets/ 复制到您的组件目录参考全面的设计原则,打造一致、专业的界面:
设计原则 (references/design_principles.md):
何时参考:
如何使用: 阅读 references/design_principles.md 以了解最佳实践,然后将其应用到您特定的设计挑战中。该文档涵盖了理论和实际实现。
访问为现代网页应用程序优化的专业精选配色方案:
可用调色板 (references/color_palettes.md):
每个调色板包括:
实现选项:
tailwind.config.js(提供示例)选择工作流:
references/color_palettes.md 以了解所有可用调色板使用预构建的 CSS 类和关键帧添加流畅、专业的动画:
动画库 (assets/animations.css):
可访问性: 所有动画都尊重 prefers-reduced-motion 以确保符合可访问性要求。
实现工作流:
assets/animations.css 复制到您的全局 CSS 文件(或创建单独的动画文件)animate-fade-in-up、hover-lift 等最佳实践:
prefers-reduced-motion 进行测试在增强前端应用程序时,请遵循此系统化方法:
references/color_palettes.md 中选择一个调色板references/design_principles.md 中的设计原则cn 工具函数(assets/utils-cn.ts)assets/animations.css)添加到全局样式assets/ 中的增强组件替换基本元素prefers-reduced-motion 进行测试大多数组件需要 cn 工具函数来合并类名。设置方法如下:
将 assets/utils-cn.ts 复制到您项目的 lib/utils.ts
安装依赖项:
npm install clsx tailwind-merge
在组件中导入:
import { cn } from '@/lib/utils';
所有组件和布局都遵循移动优先的方法:
测试每个断点以确保正确的布局和可读性。
确保所有增强的界面符合以下标准:
要将组件和模板适配到您的品牌:
rounded-lg 改为 rounded-xl)shadow-md 改为 shadow-lg)此技能包括:
color_palettes.md - 六个专业设计的配色方案,包含实现示例design_principles.md - 全面的设计指南,涵盖视觉层次、排版、可访问性和常见模式button-variants.tsx - 现代按钮组件,包含 5 种变体和 3 种尺寸card-variants.tsx - 灵活的卡片组件,包含子组件input-variants.tsx - 输入框和文本区域组件,包含验证状态layout-hero-section.tsx - 英雄区域,包含 3 种布局变体layout-feature-grid.tsx - 响应式功能网格,包含可配置的列数animations.css - 完整的动画库,包含可访问性支持utils-cn.ts - 用于合并类名的工具函数每周安装次数
64
代码仓库
GitHub 星标数
322
首次出现
2026 年 1 月 23 日
安全审计
安装于
opencode50
codex48
gemini-cli46
cursor43
claude-code42
github-copilot37
The Frontend Enhancer skill transforms Next.js applications into visually stunning, modern web experiences. It provides production-ready components, comprehensive design guidelines, curated color palettes, smooth animations, and flexible layout templates optimized for responsiveness and accessibility.
Invoke this skill when:
Use pre-built, production-ready React components with multiple variants and states:
Button Component (assets/button-variants.tsx):
Card Component (assets/card-variants.tsx):
Input Components (assets/input-variants.tsx):
Implementation workflow:
assets/ to your project's components directorycn utility function exists (see assets/utils-cn.ts)Use pre-designed, responsive layout patterns for common page sections:
Hero Section (assets/layout-hero-section.tsx):
Feature Grid (assets/layout-feature-grid.tsx):
Implementation workflow:
assets/ to your components directoryReference comprehensive design principles for consistent, professional interfaces:
Design Principles (references/design_principles.md):
When to reference:
How to use: Read references/design_principles.md to understand best practices, then apply them to your specific design challenges. The document covers both theory and practical implementation.
Access professionally curated color schemes optimized for modern web applications:
Available Palettes (references/color_palettes.md):
Each palette includes:
Implementation options:
tailwind.config.js (examples provided)Selection workflow:
references/color_palettes.md to see all available palettesAdd smooth, professional animations using pre-built CSS classes and keyframes:
Animation Library (assets/animations.css):
Accessibility: All animations respect prefers-reduced-motion for accessibility compliance.
Implementation workflow:
assets/animations.css to your global CSS file (or create a separate animations file)animate-fade-in-up, hover-lift, etc.Best practices:
prefers-reduced-motion enabledFollow this systematic approach when enhancing a frontend application:
references/color_palettes.mdreferences/design_principles.mdcn utility function (assets/utils-cn.ts)assets/animations.css) to global stylesassets/prefers-reduced-motionMost components require the cn utility function for class name merging. To set it up:
Copy assets/utils-cn.ts to your project's lib/utils.ts
Install dependencies:
npm install clsx tailwind-merge
Import in components:
import { cn } from '@/lib/utils';
All components and layouts follow a mobile-first approach:
Test each breakpoint to ensure proper layout and readability.
Ensure all enhanced interfaces meet these standards:
To adapt components and templates to your brand:
rounded-lg to rounded-xl)shadow-md to shadow-lg)This skill includes:
color_palettes.md - Six professionally designed color schemes with implementation examplesdesign_principles.md - Comprehensive design guidelines covering visual hierarchy, typography, accessibility, and common patternsbutton-variants.tsx - Modern button component with 5 variants and 3 sizescard-variants.tsx - Flexible card component with subcomponentsinput-variants.tsx - Input and textarea components with validation stateslayout-hero-section.tsx - Hero section with 3 layout variantslayout-feature-grid.tsx - Responsive feature grid with configurable columnsanimations.css - Complete animation library with accessibility supportutils-cn.ts - Utility function for class name mergingWeekly Installs
64
Repository
GitHub Stars
322
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode50
codex48
gemini-cli46
cursor43
claude-code42
github-copilot37
json-render生成式UI框架:AI驱动、多平台JSON渲染,安全构建动态界面
588 周安装