Back to components
Component•Premium

Contour Type

Crisp typography that unfolds into mint contour layers around your cursor. Each letter lifts independently and settles back as you move away.

Make your mark.

Customize

Overview

About the Contour Type

Crisp typography that unfolds into mint contour layers around your cursor. Each letter lifts independently and settles back as you move away. It is delivered as editable TypeScript for React. Inline styles and native DOM text. No Tailwind CSS required. Its focused API can be adapted to your own content and visual system.

Usage

When to use it

  • Expressive portfolio headlines and creative hero sections.
  • Interactive brand statements and editorial typography.

What’s included

Files in the product ZIP

Contour Type source

components/contour-type.tsx

Editable React and TypeScript component source.

Working example

examples/example.tsx

A minimal import and render example that matches the packaged API.

Installation guide

README.md

Manual ZIP installation, styling, compatibility, asset, and usage notes.

Usage

Import and render

Copy the packaged source to the documented path, then use the public API shown below.

Import
import { ContourType } from "@/components/contour-type";
Minimum example
<ContourType text="Make your mark." accent="#5eead4" layers={7} />

Props

Component API

PropTypeDefaultDescription
textstring"Make your mark."Displayed text; words wrap naturally.
colorstring"#ffffff"Front text color.
accentstring"#5eead4"Contour stroke or solid extrusion color.
backColorstring"#0a0a0a"Fill between contour strokes. Match background for hollow-looking layers.
backgroundstring"#0a0a0a"Container background.
fontSizenumber96Maximum font size in pixels; scales to container width.
fontWeightnumber750Font weight supported by the system font.
layersnumber7Contour layer count, clamped to 1–16.
depthnumber32Maximum extrusion distance in pixels, 0–100.
radiusnumber150Pointer influence radius in viewport pixels, 30–500.
anglenumber35Extrusion direction in degrees, -180–180.
responsenumber12Settling speed, 2–30.
extrusion"outline" | "solid""outline"Contour layers or filled extrusion.
uppercasebooleanfalseTransform displayed text to uppercase.
pausedbooleanfalseDisable pointer updates and animation.
heightnumber | string420Container height.
className / stylestring / CSSProperties—Container styling.

Plain text at rest. Only nearby letters unfold; leaving the container collapses all layers. Decorative copies are hidden from assistive technology. Reduced motion updates instantly. No external fonts or source artwork are required.

Compatibility

Verified project setup

  • ReactLoom's preview is tested with Next.js 16.3.8 App Router, React 19.2.8, TypeScript 5.9.3, and Tailwind CSS 4.3.3. This describes the store environment, not the product's minimum requirements.
  • This interactive component includes the "use client" directive and must remain behind a Client Component boundary in the Next.js App Router.
  • Inline styles and native DOM text. No Tailwind CSS required.
Images
No image files are included or required by the packaged component.
Fonts
No font files are included. The component uses system font fallbacks unless your app supplies a matching font.

Installation

Add it to your project

Download the Contour Type ZIP, place the source file at src/components/contour-type.tsx, and copy the example into your own page or feature folder.

Target path

src/components/contour-type.tsx

No additional npm runtime packages are required beyond the React host; follow the styling requirements below.

Styling requirements

  • No additional dependencies or font assets required.
  • Each letter responds to local pointer proximity. Touch scrolling is preserved.
  • Reduced motion applies a still extrusion without animation. Offscreen and hidden-page animation stops.