Silk Flare

WebGPU single-pass composite shader fusing silky mesh warp gradients and rising thermodynamic heat flares.

11.2 KB
•
Updated on September 19, 2026
Active on Canvas Stage

Installation

Bash
pnpm dlx shadcn@latest add @spaceui/components-shader-silk-flare

Depends on vgpu. WebGPU required.

Usage

Code
import { SilkFlare } from '@/components/shader/silk-flare'

export default function SpaceUI() {
  return (
    <SilkFlare
      className="h-96 w-full"
      color1="#7c3aed"
      color2="#6366f1"
      color3="#a855f7"
      hotColor="#38bdf8"
      heatOpacity={0.5}
      from="bottom"
      speed={0.8}
      animate
      grain
    />
  )
}

API Reference

PropTypeDefaultDescription
color1
string
requiredFirst silk mesh base color
color2
string
requiredMid warp mesh color
color3
string
requiredDark silk blend color
hotColor
string
color3Peak flame/flare heat color
heatOpacity
number
0.5Intensity/opacity of the thermodynamic flare layer
from
bottom|top
bottomDirection of rising heat licks
speed
number
0.8Animation velocity
animate
boolean
truePlay / pause animation
grain
boolean
trueFilm grain overlay
dpr
number
devicePixelRatioTarget device pixel ratio cap
className
string
—Canvas class name

Keep in mind

  • MIT License: Free and open-source for personal and commercial use. Feel free to copy, tweak, and adapt the components to match your exact needs.
  • Credits & Inspiration: Some components on this site are inspired by or recreated from great ideas across the web. I'm not here to take credit; just to learn, experiment, and push interface craft further.
  • Reach out & Claims: If an attribution was missed, or if you have any inquiry or claim, feel free to reach out directly on X to @adrielzimbril. I'll be glad to update or resolve it right away.

Related Components

CloudShader

Interactive volumetric cloud material rendered as a full-bleed shader surface.

View
Fluid CrossfadeShader

A dual-pass WebGL shader fluid simulation with chromatic wave refraction and Bayer 4x4 matrix ordered dither crossfading.

View
Fluid Distortion ImageShader

An interactive WebGL shader image component with cover UV mapping and dynamic cursor fluid-distortion ripples using data textures.

View
Silk GradientPaper Shader
pnpm dlx shadcn@latest add @spaceui/components-spaceui-ui
pnpm dlx shadcn@latest add @spaceui/components-shader-silk-flare