Pure CSS long-shadow heading — letters cast a diagonal ramp shadow that gradient-fades into the bg, like classic flat-design posters.
import LongShadowText from '@crazygl/hero-long-shadow-text';
export default function Hero() {
return (
<LongShadowText
heading="LONG SHADOWS"
shadowAngle={45}
shadowColor="#5b8def"
textColor="#ffd86b"
/>
);
}shadowLayers (length/smoothness of the ramp), shadowAngle (direction in degrees), shadowColor.textColor, fontSize, headingFontFamily, headingFontWeight.bgColor or transparentBackground.npm install @crazygl/hero-long-shadow-textThe component takes the same props you see in the live customizer on the right — every default ships poster-quality.
import LongShadowText from '@crazygl/hero-long-shadow-text';
export default function Landing() {
return (
<LongShadowText />
);
}The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';
import LongShadowText from '@crazygl/hero-long-shadow-text';
export default function Page() {
return (
<section>
<LongShadowText
heading="Say hi."
subheading="Your new hero."
/>
<article>
<h2>Welcome</h2>
<p>Your content keeps its own voice below the hero.</p>
</article>
</section>
);
}