Skip to content

Embossed Text

Sculpted metallic lettering catches the light as your pointer moves.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import EmbossedText from "./EmbossedText";
export default function Example() {
return (
<EmbossedText
text={"Made of\nsubstance."}
color={"#aaa294"}
highlight={"#fff2d5"}
shadow={"#302820"}
depth={2}
interactive={true}
style={{
"fontSize": 62,
"letterSpacing": "-.05em"
}}
/>
);
}

Using Embossed Text

Use a large, short heading so the raised edges remain visible. Adjust color, highlight, and shadow together to create the chosen material.

depth controls the edge treatment in pixels. Set interactive to false to keep the lighting fixed when the pointer moves.

Props

NameTypeRequiredDefaultDescription
textstringNo""Your text; newlines and wrapping are supported.
colorstringNo"#a9a39a"Base metallic face colour.
highlightstringNo"#fff5df"Light on the raised edge.
shadowstringNo"#27221b"Shadow below the raised edge.
depthnumberNo2Edge depth in pixels, clamped to zero or above.
interactivebooleanNotrueMove the light direction with the pointer.
classNamestringNo""Additional classes for the root element.
styleCSSPropertiesNoundefinedInline styles for caller-defined size, typography, and appearance.

Related components

Reflection Text

Text Effects

Crisp typography meets a soft, fading reflection beneath the baseline.

Morphing Words

Text Effects

Words dissolve through a soft blur while the headline keeps its width.

Dot Matrix Text

Text Effects

Amber pinpoints form a crisp matrix display with a soft travelling pulse.

Scan Text

Text Effects

A warm scanning light brings a dim headline into focus.