Aceternity Ui 标志

Aceternity Ui

社区
secondsky
aceternity-ui

100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or encountering animation, shadcn CLI integration errors.

Add to TypingMind

概览

发布者secondsky
代码仓库claude-skills
技能名称aceternity-ui
星标数
219
复刻数
31
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 secondsky 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Aceternity Ui AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/secondsky/claude-skills/tree/main/plugins/aceternity-ui/skills/aceternity-ui
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/secondsky/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/plugins/aceternity-ui/skills/aceternity-ui .claude/skills/aceternity-ui
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Aceternity Ui,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Aceternity Ui。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Aceternity Ui 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Aceternity UI Skill

Overview

Aceternity UI is a premium, production-ready React component library designed for Next.js applications. It provides 100+ beautifully animated and interactive components built with Tailwind CSS and Framer Motion. Components are installed via the shadcn CLI and can be customized directly in your codebase.

Key Features:

  • 100+ animated, production-ready components
  • Built for Next.js 13+ with App Router support
  • Full TypeScript support
  • Tailwind CSS v4+ styling (CSS-first config; v3 also works with JS config)
  • Framer Motion animations
  • Dark mode support
  • Copy-paste friendly (not an npm package)
  • Full source code access for customization

Prerequisites:

  • Next.js 13+ (App Router recommended)
  • React 16.8+
  • Tailwind CSS v4+ (CSS-first @import "tailwindcss" and @theme; v3 also supported)
  • TypeScript (recommended)
  • Node.js 20+ with bun, npm, or pnpm

Installation

Initial Setup

For New Projects:

bash
# Create Next.js project (bun preferred)
bunx create-next-app@latest my-app
# or: npx create-next-app@latest my-app
# or: pnpm create next-app@latest my-app

cd my-app

# Select these options:
# - TypeScript: Yes
# - ESLint: Yes
# - Tailwind CSS: Yes
# - src/ directory: Optional
# - App Router: Yes (recommended)
# - Import alias: @/* (default)

Initialize Aceternity UI via shadcn CLI:

bash
# Using bun (preferred)
bunx --bun shadcn@latest init

# Using npm
npx shadcn@latest init

# Using pnpm
pnpm dlx shadcn@latest init

# During setup:
# - Style: New York (recommended)
# - Color: Zinc (or your preference)
# - CSS variables: Yes (recommended)

Configure Registry:

After initialization, update components.json to add Aceternity registry:

json
{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "new-york",
  "rsc": true,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.ts",
    "css": "app/globals.css",
    "baseColor": "zinc",
    "cssVariables": true
  },
  "aliases": {
    "components": "@/components",
    "utils": "@/lib/utils"
  },
  "registries": {
    "@aceternity": "https://ui.aceternity.com/registry/{name}.json"
  }
}

Installing Components

Using shadcn CLI 3.0+ (Namespaced Registry):

bash
# Install specific component
bunx shadcn@latest add @aceternity/background-beams
# or: npx shadcn@latest add @aceternity/background-beams
# or: pnpm dlx shadcn@latest add @aceternity/background-beams

# Component will be added to: components/ui/background-beams.tsx

Manual Installation:

If the registry method doesn't work, install manually:

  1. Install required dependencies:
bash
bun add motion clsx tailwind-merge
# or: npm install motion clsx tailwind-merge
  1. Add utility function to lib/utils.ts:
typescript
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}
  1. Copy component code from ui.aceternity.com to your project

Secure Installation

This setup runs multiple remote code executions (create-next-app, shadcn init, shadcn add). Before installing, follow supply chain security best practices:

  • Block post-install scripts — npm config set ignore-scripts true (or Bun: disabled by default)
  • Cooldown period — Wait 7 days for new package versions to be vetted by the community
  • Audit before installing — Run socket package score npm <pkg> or use socket npm install <pkg> to check packages

Load the dependency-upgrade skill for full security configuration including Socket CLI integration, cooldown setup, lockfile validation, and CI enforcement.

Component Categories

1. Backgrounds & Effects (28 components)

Create stunning animated backgrounds and visual effects for hero sections and full-page layouts.

Key Components:

  • Background Beams - Animated glowing beams following SVG paths
  • Background Gradient - Smooth gradient backgrounds with transitions
  • Wavy Background - Animated wave patterns
  • Aurora Background - Northern lights inspired animated gradients
  • Sparkles - Particle sparkle effects
  • Meteors - Falling meteor animations
  • Spotlight - Dynamic spotlight effects
  • Grid and Dot Backgrounds - Subtle grid/dot patterns
  • Vortex - Swirling vortex animations
  • Canvas Reveal Effect - Revealing content with canvas animations

Usage Example:

tsx
"use client";
import { BackgroundBeams } from "@/components/ui/background-beams";

export default function HeroSection() {
  return (
    <div className="h-screen w-full relative">
      <div className="max-w-4xl mx-auto z-10 relative p-8">
        <h1 className="text-5xl font-bold">Welcome</h1>
        <p className="text-xl mt-4">Beautiful animated backgrounds</p>
      </div>
      <BackgroundBeams />
    </div>
  );
}

When to Use:

  • Hero sections requiring visual impact
  • Landing pages with animated backgrounds
  • Full-screen sections needing depth
  • Portfolio or agency websites
  • Marketing pages with call-to-actions

2. Card Components (15 components)

Interactive cards with hover effects, animations, and 3D transformations.

Key Components:

  • 3D Card Effect - Cards with CSS perspective and 3D transforms
  • Card Hover Effect - Smooth hover animations and transitions
  • Expandable Card - Cards that expand to show more content
  • Focus Cards - Cards that focus/highlight on hover
  • Card Spotlight - Spotlight effect following mouse
  • Glare Card - Holographic glare effect
  • Wobble Card - Playful wobble animations
  • Infinite Moving Cards - Auto-scrolling card carousel
  • Direction Aware Hover - Hover effects based on cursor direction

Usage Example:

tsx
"use client";
import { CardBody, CardContainer, CardItem } from "@/components/ui/3d-card";

export function ProductCard() {
  return (
    <CardContainer>
      <CardBody className="bg-gray-50 rounded-xl p-6">
        <CardItem translateZ="50" className="text-2xl font-bold">
          Product Title
        </CardItem>
        <CardItem translateZ="60" as="p" className="text-sm mt-2">
          Product description goes here
        </CardItem>
        <CardItem translateZ="100" className="w-full mt-4">
          <img src="/product.jpg" className="rounded-xl" alt="Product" />
        </CardItem>
      </CardBody>
    </CardContainer>
  );
}

When to Use:

  • Product showcases
  • Feature highlights
  • Portfolio items
  • Team member profiles
  • Pricing tiers
  • Blog post previews

3. Scroll & Parallax (5 components)

Create engaging scroll-based animations and parallax effects.

Key Components:

  • Parallax Scroll - Images with parallax scrolling
  • Sticky Scroll Reveal - Content reveals while scrolling
  • Container Scroll Animation - Animated scroll containers
  • Hero Parallax - Parallax hero sections
  • MacBook Scroll - MacBook-style scroll interactions

Usage Example:

tsx
import { StickyScroll } from "@/components/ui/sticky-scroll-reveal";

const content = [
  {
    title: "Feature One",
    description: "Description of feature one...",
    content: <div>Visual content here</div>
  },
  // More items...
];

export function Features() {
  return <StickyScroll content={content} />;
}

When to Use:

  • Feature showcases with scroll interactions
  • Storytelling layouts
  • Product tours
  • Long-form content with visual breaks
  • Interactive timelines

4. Text Components (10 components)

Animated text effects for headings, titles, and interactive typography.

Key Components:

  • Text Generate Effect - Text appearing character by character
  • Typewriter Effect - Typing animation
  • Flip Words - Word rotation animations
  • Text Hover Effect - Interactive text on hover
  • Hero Highlight - Gradient text highlights
  • Encrypted Text - Matrix-style encrypted text effect
  • Colourful Text - Gradient animated text

Usage Example:

tsx
import { TypewriterEffect } from "@/components/ui/typewriter-effect";

const words = [
  { text: "Build" },
  { text: "amazing" },
  { text: "websites", className: "text-blue-500" }
];

export function Hero() {
  return <TypewriterEffect words={words} />;
}

When to Use:

  • Hero headings
  • Attention-grabbing titles
  • Dynamic content displays
  • Interactive landing pages
  • Animated CTAs

5. Buttons (4 components)

Enhanced button components with animations and effects.

Key Components:

  • Tailwind CSS Buttons - Collection of styled buttons
  • Hover Border Gradient - Animated gradient borders
  • Moving Border - Animated border movement
  • Stateful Button - Multi-state button with transitions

Usage Example:

tsx
import { MovingBorder } from "@/components/ui/moving-border";

export function CTAButton() {
  return (
    <MovingBorder duration={2000} className="p-4">
      <span>Get Started</span>
    </MovingBorder>
  );
}

6. Navigation (5 components)

Modern navigation menus and tab systems.

Key Components:

  • Floating Navbar - Floating navigation bar
  • Navbar Menu - Full-featured navigation menu
  • Tabs - Animated tab components
  • Resizable Navbar - Responsive navigation
  • Sticky Banner - Sticky announcement banners

7. Input & Forms (3 components)

Enhanced form inputs and file upload components.

Key Components:

  • Signup Form - Animated signup forms
  • Placeholders and Vanish Input - Inputs with animated placeholders
  • File Upload - Drag-and-drop file upload

Usage Example:

tsx
import { PlaceholdersAndVanishInput } from "@/components/ui/placeholders-and-vanish-input";

export function SearchBar() {
  const placeholders = [
    "Search for anything...",
    "What are you looking for?",
    "Type to search..."
  ];

  return (
    <PlaceholdersAndVanishInput
      placeholders={placeholders}
      onChange={(e) => console.log(e.target.value)}
      onSubmit={(e) => {
        e.preventDefault();
        console.log("submitted");
      }}
    />
  );
}

8. Overlays & Popovers (3 components)

Modal dialogs and tooltips with animations.

Key Components:

  • Animated Modal - Modal with smooth animations
  • Animated Tooltip - Tooltips with enter/exit animations
  • Link Preview - Link preview popover on hover

Usage Example:

tsx
import { Modal, ModalBody, ModalContent, ModalTrigger } from "@/components/ui/animated-modal";

export function BookingModal() {
  return (
    <Modal>
      <ModalTrigger className="bg-black text-white px-4 py-2 rounded-md">
        Book Now
      </ModalTrigger>
      <ModalBody>
        <ModalContent>
          <h2>Booking Details</h2>
          {/* Modal content */}
        </ModalContent>
      </ModalBody>
    </Modal>
  );
}

9. Carousels & Sliders (4 components)

Image sliders and carousel components.

Key Components:

  • Images Slider - Full-screen image slider
  • Carousel - Standard carousel component
  • Apple Cards Carousel - Apple-style card carousel
  • Animated Testimonials - Testimonial slider

10. Layout & Grid (3 components)

Grid layouts and container components.

Key Components:

  • Layout Grid - Animated grid layouts
  • Bento Grid - Bento-box style grid
  • Container Cover - Full-screen container

11. Data & Visualization (2 components)

Components for displaying data and comparisons.

Key Components:

  • Timeline - Animated timeline component
  • Compare - Before/after comparison slider

12. Cursor & Pointer (3 components)

Cursor-following effects and interactions.

Key Components:

  • Following Pointer - Elements following cursor
  • Pointer Highlight - Highlight effect on cursor
  • Lens - Magnifying lens effect

13. 3D Components (2 components)

3D visual effects using CSS transforms.

Key Components:

  • 3D Pin - Pinterest-style 3D card
  • 3D Marquee - 3D rotating marquee

14. Loaders (2 components)

Loading animations and progress indicators.

Key Components:

  • Multi-step Loader - Multi-step loading animation
  • Loader - Various loading spinners

15. Sections & Blocks (3 components)

Pre-built section templates.

Key Components:

  • Feature Sections - Feature showcase templates
  • Cards - Pre-designed card layouts
  • Hero Sections - Hero section templates

Common Patterns

Dark Mode Support

All Aceternity components support dark mode via Tailwind's dark mode classes:

tsx
<div className="bg-white dark:bg-black text-black dark:text-white">
  {/* Content */}
</div>

Responsive Design

Components are responsive by default. Use Tailwind's responsive prefixes:

tsx
<h1 className="text-2xl md:text-4xl lg:text-6xl">
  Responsive Heading
</h1>

Combining Components

Components can be combined for complex layouts:

tsx
import { BackgroundBeams } from "@/components/ui/background-beams";
import { TypewriterEffect } from "@/components/ui/typewriter-effect";
import { MovingBorder } from "@/components/ui/moving-border";

export default function Hero() {
  return (
    <div className="h-screen relative">
      <div className="z-10 relative flex flex-col items-center justify-center h-full">
        <TypewriterEffect words={words} />
        <MovingBorder>
          <button>Get Started</button>
        </MovingBorder>
      </div>
      <BackgroundBeams />
    </div>
  );
}

Best Practices

1. Performance Optimization

Use "use client" directive - Aceternity components use Framer Motion, requiring client-side rendering:

tsx
"use client";
import { Component } from "@/components/ui/component";

Lazy load heavy components:

tsx
import dynamic from 'next/dynamic';

const HeavyBackground = dynamic(
  () => import('@/components/ui/background-beams'),
  { ssr: false }
);

2. Accessibility

Add ARIA labels:

tsx
<button aria-label="Open menu">
  <MenuIcon />
</button>

Ensure keyboard navigation:

tsx
<div role="button" tabIndex={0} onKeyDown={handleKeyDown}>
  Interactive element
</div>

3. Customization

Override styles using className:

tsx
<BackgroundBeams className="opacity-50" />

Modify component source directly - Since components are copied to your project, you can edit them:

tsx
// components/ui/background-beams.tsx
export function BackgroundBeams({ className, myCustomProp }: Props) {
  // Customize as needed
}

4. Type Safety

Use TypeScript for prop types:

tsx
interface CardProps {
  title: string;
  description: string;
  image?: string;
}

export function Card({ title, description, image }: CardProps) {
  // Component implementation
}

Troubleshooting

Common Issues

1. "Module not found: motion"

bash
bun add motion
# or: npm install motion

2. "cn is not defined" Ensure lib/utils.ts exists with the cn helper function.

3. Components not animating Verify "use client" directive is at the top of the file.

4. Tailwind classes not working Ensure Tailwind is set up. Under Tailwind v4 (CSS-first), globals.css should import Tailwind with a single directive:

css
@import "tailwindcss";

(If you are still on Tailwind v3, the equivalent is the three @tailwind base; @tailwind components; @tailwind utilities; directives.)

5. Dark mode not working Under Tailwind v4, configure dark mode in CSS using a custom variant (e.g. @custom-variant dark (&:where(.dark, .dark *)); for a class-based strategy). On Tailwind v3, set darkMode: "class" in tailwind.config.ts.

Token Efficiency

This skill provides significant token savings by:

  • Pre-vetted component selection - Saves ~3k tokens exploring component options
  • Installation instructions - Saves ~2k tokens debugging setup issues
  • Component categorization - Saves ~2k tokens finding the right component
  • Usage examples - Saves ~2k tokens writing boilerplate code
  • Troubleshooting guide - Saves ~1k tokens debugging common issues

Estimated savings: ~10k tokens (65-70% reduction) per implementation

Errors prevented:

  1. Missing motion dependency
  2. Incorrect shadcn CLI initialization
  3. Missing cn utility function
  4. Missing "use client" directive
  5. Incorrect registry configuration
  6. Wrong Next.js configuration (Pages Router vs App Router)

When to Load References

Load reference files based on task context:

If User Asks About...Load This Reference
New project setup, installation, getting startedreferences/quick-start.md (465 lines)
Finding specific components, component categories, CLI commandsreferences/component-catalog.md (635 lines)
Usage examples, patterns, troubleshootingMain SKILL.md (this file)

Reference Summary:

  • quick-start.md - 5-minute setup guide, first component examples, troubleshooting, project structure
  • component-catalog.md - Complete list of 100+ components with install commands and use cases

Additional Resources

Related Skills

When using this skill, consider combining with:

  • nextjs - Next.js framework skill
  • tailwind-v4-shadcn - Tailwind CSS v4 configuration
  • react-hook-form-zod - Form validation
  • clerk-auth - Authentication
  • cloudflare-nextjs - Cloudflare deployment

License

This skill documentation is provided under MIT License. Aceternity UI components have their own licensing - check https://ui.aceternity.com for details.


Last Updated: 2025-12-08 Version: 1.1.0 Maintainer: Claude Skills Maintainers

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Aceternity Ui AI 技能有什么作用?

100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or encountering animation, shadcn CLI integration errors.

为什么在 TypingMind 中使用 Aceternity Ui?

因为您只需安装一次,就能搭配任何模型使用。Aceternity Ui 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Aceternity Ui?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/secondsky/claude-skills/tree/main/plugins/aceternity-ui/skills/aceternity-ui。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Aceternity Ui?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Aceternity Ui 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Aceternity Ui 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Aceternity Ui AI 技能免费吗?

是的。secondsky 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇