Burned text using svg filter

SVG filter can be used to make the edge of text feel burned. Features customizable filter effects, responsive design, and optimized rendering for creating dramatic visual text effects.

v0.0.1
๐Ÿฐ
๐Ÿƒ
๐ŸŽ“
Beginner

Burned Text

Burned Text Components Demo

Stateful Component (Adjustable)

Burned Text

Stateless Component (Fixed Settings)

Burned Text
Different Text Sizes Preview

Small Text (24px)

Burned Text

Medium Text (36px)

Burned Text

Large Text (64px)

Burned Text
Current Settings
contrast: 3
brightness: 0.5
secondBlurAmount: 2.1
secondBrightness: 0.17

Install

Requires a project with shadcn/ui initialized. Installs all 1 file and any listed registry dependencies.

npx shadcn@latest add https://manglekuo.com/showcase/r/burned-text.json

Registry deps: card, button

npm deps: lucide-react

Documentation

Burned Text Effect

SVG filters that char the edges of text for a dramatic burned look โ€” pure CSS/SVG, no canvas.

Usage

import { StatelessBurnedText } from '@/components/ui/burned-text';ย <StatelessBurnedText  text="Your text here"  fontSize={48}  settings={{ contrast: 3, brightness: 0.5, secondBlurAmount: 2.1, secondBrightness: 0.17 }}/>Language: jsx

Props

StatelessBurnedText

  • text (string): Text to render.
  • fontSize (number, default: 48): Font size in pixels.
  • settings (FilterSettings): Contrast, brightness, and blur controls.
  • width / height (number, optional): SVG dimensions.
  • className (string, optional): Additional CSS classes.

StatefulBurnedText โ€” same as above, plus an interactive control panel to tune filter settings live.

How It Works

The burned effect uses SVG filters:

  1. Gaussian Blur โ€” soft shadow around the text
  2. Component Transfer โ€” contrast and brightness adjustments
  3. Color Matrix โ€” charred edge coloring
  4. Invert + hue-rotate โ€” dark mode ash-white lettering overlaid on the dark surface

This creates a realistic burned text effect that can be customized for different use cases.