Isaiah

BJORK Chromatic text

Component 21

About

Chromatic text is a production-ready text component from BJORK UI, packaged for shadcn registries.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds BJORK Chromatic text to your project and fits it to your theme.

Code

How BJORK Chromatic text is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";
import { ThemeProvider as BjorkDemoThemeProvider } from "next-themes";
import { useRef, useState } from "react";
import { ChromaticText, type ChromaticTextHandle } from "@/components/ui/bjork-chromatic-text";


function SourceDemo(){
const isPreview = false;
const previewTheme = null;
const tone = previewTheme === "light" || previewTheme === "dark" ? previewTheme : undefined;
const textRef = useRef<ChromaticTextHandle>(null);
const [intensity, setIntensity] = useState<number>(1);
const [decay, setDecay] = useState<number>(0.7);
const [grain, setGrain] = useState(false);
const reset = () => {
    setIntensity(1);
    setDecay(0.7);
    setGrain(false);
  };
return <>

      <div className="flex w-[min(860px,calc(100vw-72px))] flex-col items-center gap-6">
        <ChromaticText
          ref={textRef}
          text="Chromatic"
          intensity={intensity}
          decay={decay}
          grain={grain ? 0.5 : 0}
          tone={tone}
          frozen={isPreview}
          pulseOnMount={!isPreview}
        />
      </div>
    
</>;
}
export default function BjorkRegistryPreview(){return <BjorkDemoThemeProvider attribute="class" defaultTheme="dark" enableSystem={false} storageKey="bjork-review-demo-theme"><div data-component-demo className="dark flex min-h-screen w-full items-center justify-center bg-[var(--bjork-bg)] p-8 text-[var(--bjork-text)]"><div className="w-full max-w-[850px]"><SourceDemo/></div></div></BjorkDemoThemeProvider>}

Dependencies

More by Isaiah

View all
  • Agent Plan

    Agent Plan

    2.2K
  • Video Scroll Hero

    Video Scroll Hero

    1.4K
  • Voice Powered Orb

    Voice Powered Orb

    1.3K
  • Reveal Text

    Reveal Text

    1.1K
  • Leads Data Table

    Leads Data Table

    935
  • Portfolio Gallery

    Portfolio Gallery

    923
  • Message Dock

    Message Dock

    833
  • Ruler Carousel

    Ruler Carousel

    618