cult/ui
repository·main·Indexed 27 days ago
https://github.com/nolly-studio/cult-uiAn open-source library of accessible, copy-pasteable UI components and advanced AI agent patterns for developers using Next.js, AI SDK, and Tailwind CSS. It features a comprehensive registry of core UI components (such as 3D carousels, dynamic islands, and shader effects), 92+ AI Agent patterns with interactive previews, and production-ready full-stack starter templates including Logo GPT and Manifest.
What's inside cult-ui
- cult/ui provides accessible and customizable UI components designed to be copied and pasted into applications. It is an open-source project intended to help developers build their own component libraries. The ecosystem includes AI Agent patterns, premium full-stack blocks, and production-ready starter templates.
Review Cult UI licensing and usage terms
mainCult UI is free to use for both personal and commercial projects. No attribution is required.Understand the Cult UI distribution model
mainCult UI is not a traditional npm component library. It is an extension of the shadcn/ui ecosystem designed to provide motion-rich, niche components.
Instead of installing a monolithic package, components are distributed as source code via a registry. You add components to your project by using the shadcn registry CLI or by copying the source directly into your codebase. This approach ensures you have full ownership and can customize the implementation and styling without being constrained by a dependency layer.
Install SVG Bands
mainYou can install the SVG Bands component using the shadcn CLI or by manual installation.
CLI Installation:
npx shadcn@latest add https://cult-ui.com/r/svg-bands.jsonManual Installation:
- Copy the component source code into your project.
- Update the import paths to match your project's directory structure.
Use the MorphSurface component
mainThe
MorphSurfacecomponent is an interactive surface that morphs between different states (e.g., a button and a textarea). It is designed for high-fidelity interaction, featuring smooth layout transitions and automatic focus management.Key Behaviors:
- Auto-focus: The component automatically focuses the
textareawhen it is opened. - Dismissal: Clicking outside the component will close it.
- Form Handling: When used within a form, submission extracts
FormDatafrom the form element. - Success Feedback: A success indicator is displayed for 1.5 seconds following a successful submission.
- Animations: Uses
layoutIdanimations for smooth morphing transitions. - Theming: Works seamlessly in both light and dark modes.
- Auto-focus: The component automatically focuses the
Apply custom styling to MorphSurface
mainUse
className,triggerClassName, andcontentClassNameto apply custom CSS classes to the root container, the trigger button, and the content area respectively.<MorphSurface className="shadow-2xl" triggerClassName="hover:bg-primary/10" contentClassName="border-2 border-primary/20" triggerLabel="Styled" placeholder="Custom styling applied..." />Use the Typewriter component
mainThe
Typewritercomponent creates a repeating typewriter effect by cycling through an array of strings.Props:
texts: An array of strings to be typed out sequentially.delay: The delay between characters or sequences (number).baseText: A static string that precedes the animated text (e.g., a prefix).
Example usage:
const texts = [ "Testing 124", "Look at newcult.co", "and check gnow.io", "Sick af", ] export default function TypewriterDemo() { return ( <IosOgShellCard> <div className="ml-auto px-4 py-2 mb-3 text-white bg-blue-500 rounded-2xl"> <p className="text-sm md:text-base font-semibold text-base-900 truncate"> <Typewriter texts={texts} delay={1} baseText="Yo " /> </p> </div> </IosOgShellCard> ) }Configure components.json via CLI
mainWhen running
npx cult-ui@latest init, you will be prompted to configure yourcomponents.jsonfile. You should provide answers for the following prompts:- TypeScript: Recommended (yes/no)
- Style: (e.g., Default)
- Base color: (e.g., Slate)
- Global CSS file: (e.g.,
src/index.css) - CSS variables for colors: (yes/no)
- Import alias for components: (e.g.,
@/components) - Import alias for utils: (e.g.,
@/lib/utils) - React Server Components: (yes/no)
Install Pixel Heading
mainYou can install the
PixelHeadingcomponent using the shadcn CLI or manually.CLI Installation:
npx shadcn@latest add https://cult-ui.com/r/pixel-heading-character.jsonManual Installation:
- Install the
geistfont package:
npm install geist- Copy the component source code into your project.
- Update the import paths to match your project structure.
- Install the
Install CosmicButton via CLI
mainYou can install the
CosmicButtoncomponent directly into your project using the shadcn CLI by pointing to the Cult UI registry URL.npx shadcn@latest add https://cult-ui.com/r/cosmic-button.jsonInstall the FractalDotGrid component
mainYou can install the
FractalDotGridcomponent using the shadcn CLI or by manual installation.CLI Installation: Run the following command to add the component directly to your project:
Manual Installation:
- Copy the component source code from the Cult UI registry.
- Paste it into your project.
- Update the import paths to match your local project structure.
npx shadcn@latest add https://cult-ui.com/r/bg-animated-fractal-grid.jsonInstall the Poll Widget
mainYou can install the Poll Widget using the shadcn CLI or by manually copying the component code into your project.
CLI Installation:
npx shadcn@latest add https://cult-ui.com/r/poll-widget.jsonManual Installation:
- Copy the component source code into your project.
- Update the import paths to match your project's directory structure.