UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

Magic UI/Aurora Text

Backgrounds
1 of 2
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

2 versions·2 librariesCompare all text animations →

  • Magic UI
  • React Bits

Aurora Text

A beautiful aurora text effect

npx shadcn@latest add https://magicui.design/r/aurora-text.json
Open in v0 Docs Repo
Library
Magic UI
License
MIT
Stack
React · Tailwind CSS
Size
44 lines
Demo
From Magic UI

Code

registry/magicui/aurora-text.tsx

"use client"

import React, { memo } from "react"

interface AuroraTextProps {
  children: React.ReactNode
  className?: string
  colors?: string[]
  speed?: number
}

export const AuroraText = memo(
  ({
    children,
    className = "",
    colors = ["#FF0080", "#7928CA", "#0070F3", "#38bdf8"],
    speed = 1,
  }: AuroraTextProps) => {
    const gradientStyle = {
      backgroundImage: `linear-gradient(135deg, ${colors.join(", ")}, ${
        colors[0]
      })`,
      WebkitBackgroundClip: "text",
      WebkitTextFillColor: "transparent",
      animationDuration: `${10 / speed}s`,
    }

    return (
      <span className={`relative inline-block ${className}`}>
        <span className="sr-only">{children}</span>
        <span
          className="animate-aurora relative bg-size-[200%_auto] bg-clip-text text-transparent"
          style={gradientStyle}
          aria-hidden="true"
        >
          {children}
        </span>
      </span>
    )
  }
)

AuroraText.displayName = "AuroraText"

More like this

Line Shadow Text

Magic UI·Text effects

Shuffle

React Bits·Text effectsMIT+

Echo Text

React Bits·Text effectsMIT+

Decrypted Text

React Bits·Text effectsMIT+

Plucked Text

Kokonut UI·Text effects

Fold Text

React Bits·Text effectsMIT+

Metallic Paint

React Bits·BackgroundsMIT+

Dock

Motion Primitives·Navigation

Tilt

Motion Primitives·Cards

Scroll Float

React Bits·Text effectsMIT+

Swoosh Text

Kokonut UI·Text effects

Scroll Reveal

React Bits·Cursor & effectsMIT+

Fade Content

React Bits·Cursor & effectsMIT+

Tech Text

React Bits·Text effectsMIT+

Blur Text

React Bits·Text effectsMIT+