DEV Community

Soumyajit Basak
Soumyajit Basak

Posted on

I built StacklyUI: 50+ animated, accessible React components you can copy or install

I've been building StacklyUI, an open-source React component library, and it's ready for feedback.

I wanted components that feel alive (motion built in) without giving up accessibility or theming.

What's in it

  • 50+ components built on Radix primitives, with accessibility as the base
  • Light and dark themes using OKLCH design tokens
  • Motion built in, with prefers-reduced-motion respected
  • A few playful ones too: dice roller, scratch card, coin flip, memory match

Two ways to use it

Copy the source with the registry CLI and own every line:

pnpm dlx shadcn@latest add @stacklyui/spotlight-card
Enter fullscreen mode Exit fullscreen mode

Or install the package:

npm i @stacklyui/ui motion react react-dom
Enter fullscreen mode Exit fullscreen mode
import { Button, GradientText, SpotlightCard } from "@stacklyui/ui";
import "@stacklyui/ui/styles.css";

export function Example() {
  return (
    <SpotlightCard>
      <GradientText>StacklyUI</GradientText>
      <Button>Get started</Button>
    </SpotlightCard>
  );
}
Enter fullscreen mode Exit fullscreen mode

Links

It's early, so I'd love honest feedback. Which component should I build next? Bug reports and PRs are welcome too.

Top comments (0)