Logo Frontend Design

Frontend Design

Cộng đồng
unobtuse
frontend-design

This skill should be used when the user asks to "build a frontend", "create a React component", "add animations", "design a landing page", "make it look modern", "add animated backgrounds", "create hero section", "design dashboard UI", or wants to use ReactBits components for stunning visual interfaces.

Tổng quan

Nhà phát hànhunobtuse
Kho mãreactbits-frontend-design-skill
Tên kỹ năngfrontend-design
Sao
4
Bản fork
1
Tệp đi kèm
8
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 8 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được unobtuse công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Frontend Design trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/unobtuse/reactbits-frontend-design-skill/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/unobtuse/reactbits-frontend-design-skill.git \
  .claude/skills/frontend-design
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Frontend Design trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Frontend Design ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Frontend Design với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Frontend Design with ReactBits

Purpose

This skill provides comprehensive guidance for building distinctive, production-grade frontend interfaces using ReactBits—an open-source collection of 135+ animated, interactive React components. ReactBits specializes in creative UI elements that help applications stand out visually, including text animations, animated backgrounds, and interactive components.

Use this skill when building modern React frontends that require visual impact, smooth animations, and memorable user experiences. ReactBits complements traditional component libraries (like shadcn/ui for forms and buttons) by providing the creative, animated elements that make interfaces memorable.

When to Use ReactBits

Use ReactBits components for:

  • Hero sections with animated text or backgrounds
  • Landing pages requiring visual impact
  • Interactive dashboards with animated metrics
  • Portfolio sites with creative transitions
  • Marketing pages with eye-catching animations
  • Creative UI elements that need to stand out
  • Background effects and ambient animations

Don't use ReactBits for:

  • Basic form inputs and buttons (use shadcn/ui, Radix, etc.)
  • Standard CRUD interfaces
  • Simple admin panels without creative requirements
  • Projects with strict accessibility-first requirements (verify component compatibility first)

Installation Methods

Method 1: CLI Installation (Recommended)

ReactBits integrates with shadcn CLI for seamless installation:

bash
npx shadcn@latest add @react-bits/ComponentName-TS-TW

Replace ComponentName with the specific component and choose your variant:

  • JS-CSS - JavaScript with CSS
  • JS-TW - JavaScript with Tailwind CSS
  • TS-CSS - TypeScript with CSS
  • TS-TW - TypeScript with Tailwind CSS (most common)

Example:

bash
npx shadcn@latest add @react-bits/BlurText-TS-TW

Use the provided scripts/install-component.sh helper for interactive installation.

Method 2: Manual Copy-Paste

  1. Browse components at reactbits.dev
  2. Select your technology stack (JS/TS, CSS/Tailwind)
  3. Copy the component code directly
  4. Paste into your components directory
  5. Customize as needed

Method 3: MCP Tools (Claude Integration)

When this plugin is active, use the ReactBits MCP server tools directly:

  • list_components - Browse all available components
  • search_components - Find components by name/description
  • get_component - Retrieve component source code
  • get_component_example - Get usage examples and demos
  • list_categories - View component categories

Component Selection Strategy

1. Understand the Four Categories

Text Animations - Dynamic text effects:

  • BlurText, TypingEffect, WavyText, GlitchText
  • Use for: Headlines, hero titles, attention-grabbing text
  • When: Landing pages, headers, marketing content

UI Components - Interactive interface elements:

  • AnimatedCard, HoverButton, ParallaxScroll, RevealLinks
  • Use for: Interactive sections, content cards, navigation
  • When: Product showcases, feature sections, portfolios

Backgrounds - Animated background effects:

  • ParticleBackground, GradientMesh, AnimatedGrid, WaveBackground
  • Use for: Section backgrounds, hero backgrounds, ambient effects
  • When: Full-page sections, landing page heroes, creative layouts

Animations - Motion-based components:

  • FadeIn, SlideIn, ScaleIn, RotateIn, BounceIn
  • Use for: Enter animations, scroll-triggered effects, micro-interactions
  • When: Progressive disclosure, scroll experiences, transitions

2. Component Selection Workflow

To choose the right component:

  1. Identify the UI goal - What impression or interaction do you want?
  2. Match to category - Which category fits the use case?
  3. Search available components - Use MCP tools or browse reactbits.dev
  4. Check variants - Ensure your stack (TS/JS, TW/CSS) is supported
  5. Review examples - Use get_component_example to see usage patterns
  6. Install and customize - Add via CLI or copy-paste, then customize props

3. Design Principles

Performance:

  • ReactBits components are lightweight and tree-shakeable
  • Only install components you actually use
  • Each component is self-contained with minimal dependencies
  • Animation performance is optimized for 60fps

Customization:

  • All components accept props for customization
  • Source code can be edited directly after installation
  • Tailwind variants are easily themeable
  • CSS variants provide full style control

Composition:

  • Combine multiple ReactBits components for complex effects
  • Layer background animations behind content components
  • Use text animations within UI components
  • Nest animations for progressive reveals

Integration Patterns

Pattern 1: Hero Section with Animated Background

tsx
import { ParticleBackground } from '@/components/reactbits/ParticleBackground-TS-TW'
import { BlurText } from '@/components/reactbits/BlurText-TS-TW'

export function Hero() {
  return (
    <section className="relative h-screen">
      <ParticleBackground className="absolute inset-0" />
      <div className="relative z-10 flex h-full items-center justify-center">
        <BlurText text="Build Something Stunning" className="text-6xl font-bold" />
      </div>
    </section>
  )
}

Pattern 2: Animated Dashboard Cards

tsx
import { AnimatedCard } from '@/components/reactbits/AnimatedCard-TS-TW'
import { FadeIn } from '@/components/reactbits/FadeIn-TS-TW'

export function Dashboard() {
  return (
    <div className="grid grid-cols-3 gap-6">
      {metrics.map((metric, i) => (
        <FadeIn key={metric.id} delay={i * 0.1}>
          <AnimatedCard>
            <h3>{metric.title}</h3>
            <p>{metric.value}</p>
          </AnimatedCard>
        </FadeIn>
      ))}
    </div>
  )
}

Pattern 3: Feature Section with Text Animation

tsx
import { WavyText } from '@/components/reactbits/WavyText-TS-TW'
import { RevealLinks } from '@/components/reactbits/RevealLinks-TS-TW'

export function Features() {
  return (
    <section>
      <WavyText text="Our Features" className="text-4xl mb-8" />
      <RevealLinks links={featureLinks} />
    </section>
  )
}

Using MCP Tools

When this plugin is active, use ReactBits MCP tools to discover and implement components:

List all components:

Use the list_components tool to see all available ReactBits components

Search for specific needs:

Use search_components with query "animated button" or "text effect"

Get component code:

Use get_component with name "BlurText-TS-TW" to retrieve source code

View usage examples:

Use get_component_example with name "ParticleBackground-TS-TW"

Project Setup Checklist

Before using ReactBits components, ensure:

  • React project is set up (Next.js, Vite, CRA, etc.)
  • TypeScript configured (if using TS variants)
  • Tailwind CSS installed and configured (if using TW variants)
  • Component directory exists (typically src/components/ or app/components/)
  • Dependencies installed: react, framer-motion (common for animations)

Customization Best Practices

Props Customization:

  • Check component props using TypeScript IntelliSense
  • Common props: className, delay, duration, variant, color
  • Pass custom props for dynamic behavior

Direct Source Editing:

  • ReactBits components are installed as source code, not npm packages
  • Edit component files directly for deep customization
  • Modify animations, colors, behaviors as needed
  • No need to fork or eject—it's your code

Theming:

  • Tailwind variants automatically respect your Tailwind theme
  • Customize colors via tailwind.config.js
  • Override component classes with custom utilities
  • Use CSS variables for consistent theming

Additional Resources

Reference Files

For detailed information, consult these reference files as needed:

  • references/component-catalog.md - Complete catalog of all 135+ components with descriptions and use cases
  • references/animation-patterns.md - Common animation patterns, timing guidelines, and composition strategies
  • references/best-practices.md - Performance optimization, accessibility considerations, and production tips

Example Files

Working examples in examples/:

  • hero-section.tsx - Complete hero section with animated background and text
  • animated-card.tsx - Dashboard card with hover effects and animations
  • background-demo.tsx - Multiple background component examples

Utility Scripts

Helper scripts in scripts/:

  • install-component.sh - Interactive component installation wizard

Commands

Plugin commands available:

  • /browse-components - Interactive component browser
  • /add-component - Quick component installer with variant selection

Design Assistant Agent

For complex design decisions, architectural guidance, or creative consultation, use the design-assistant agent. This specialized agent helps with:

  • Component selection for specific use cases
  • Animation timing and choreography
  • Layout composition strategies
  • Accessibility and performance considerations

Common Workflows

Workflow 1: Building a Landing Page

  1. Start with hero section (background + animated text)
  2. Add feature sections (UI components + text animations)
  3. Include CTA sections (animated buttons or cards)
  4. Add footer with ambient background animation
  5. Test animations on scroll (use scroll-triggered components)

Workflow 2: Creating a Portfolio

  1. Hero with particle background and wavy text
  2. Project grid with animated cards
  3. About section with reveal animations
  4. Contact section with interactive elements
  5. Smooth scroll transitions between sections

Workflow 3: Dashboard Interface

  1. Keep standard UI elements standard (shadcn/ui)
  2. Add ReactBits for metric cards (animated numbers)
  3. Use subtle background effects (gradient mesh)
  4. Add animated charts/visualizations (if available)
  5. Implement smooth transitions between views

Tips for Success

Start Simple:

  • Begin with one or two components
  • Master basics before complex compositions
  • Test animations in isolation first
  • Build complexity progressively

Performance Matters:

  • Limit number of active animations
  • Use will-change CSS property sparingly
  • Prefer CSS/GPU-accelerated animations
  • Test on lower-end devices

Accessibility:

  • Respect prefers-reduced-motion
  • Provide animation opt-outs
  • Ensure text remains readable
  • Don't rely solely on animation for information

Composition Over Quantity:

  • A few well-placed animations > many scattered effects
  • Use animations to guide attention
  • Create visual hierarchy with motion
  • Maintain consistency in animation style

Next Steps

  1. Browse available components using MCP tools or reactbits.dev
  2. Identify components that fit your design needs
  3. Install using CLI or copy-paste method
  4. Customize via props or direct source editing
  5. Compose multiple components for complex effects
  6. Refer to reference files for detailed guidance
  7. Use example files as starting points

Remember: ReactBits components are about making your interface memorable. Use them strategically where visual impact matters most, and combine them with traditional component libraries for a complete design system.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Frontend Design làm được gì?

This skill should be used when the user asks to "build a frontend", "create a React component", "add animations", "design a landing page", "make it look modern", "add animated backgrounds", "create hero section", "design dashboard UI", or wants to use ReactBits components for stunning visual interfaces.

Vì sao nên dùng Frontend Design trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Frontend Design là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Frontend Design trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/unobtuse/reactbits-frontend-design-skill/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Frontend Design?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Frontend Design với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Frontend Design với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Frontend Design có miễn phí không?

Có. Kỹ năng này được unobtuse phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇