Liquid metal effect: free chrome shaders for React

Flowing chrome, mirror headlines and a drop of mercury that reaches for your cursor: 4 free liquid metal components for React, how they work and where the effect fits.

Liquid Metal shader: flowing silver chrome as a WebGL background

Key takeaways

  • 4 free liquid metal components: a background, a button, a headline and a mercury blob.
  • Each one renders in WebGL2 or WebGL1 and falls back to a CSS chrome gradient without WebGL.
  • Chrome works best on a quiet, mostly monochrome page where it is the only shine.

A liquid metal effect makes a surface look like polished chrome that flows: reflections slide across it, highlights sharpen at the edges and the shape moves like molten metal. On the web it is a shader, and done right it turns a plain hero or button into the most memorable thing on the page.

The liquid metal components

  • Liquid Metal: Liquid metal shader for React: flowing chrome in silver, gold, titanium, black chrome or oil-slick, as a WebGL background. WebGL2 / WebGL1. Without WebGL an animated CSS chrome gradient is shown.
  • Liquid Metal Button: Liquid metal button: a capsule CTA with a live WebGL chrome rim that ripples from your touch, plus a zero-JS CSS variant. WebGL2 / WebGL1. Falls back to MetalButtonCSS (gradients + sweep) without WebGL.
  • Liquid Metal Text: Liquid metal text: a giant headline cast in flowing chrome with bevelled edges, lit by studio lights that follow the pointer. WebGL2 / WebGL1. Without WebGL the real text gets a CSS chrome gradient via background-clip.
  • Liquid Metal Blob: Liquid metal blob: a raymarched drop of mercury that morphs, merges and reaches for your cursor, on a transparent canvas. WebGL2 / WebGL1. Without WebGL a morphing CSS chrome sphere is shown.

How a chrome shader works

Chrome has almost no color of its own. What you see is the environment reflected in a curved, mirror-like surface. A liquid metal shader fakes that in three parts:

  1. A moving surface. Layered noise or a signed distance field describes a surface that flows over time.
  2. Normals from that surface. The slope at each pixel decides which part of a reflection to show.
  3. A reflection ramp. Instead of a real environment, a gradient of darks and brights (silver, gold, titanium, black chrome) is mapped along the normals, with sharp specular highlights on top.

The Liquid Metal Blob goes further and raymarches a 3D drop of mercury that morphs, merges and reaches for your cursor, on a transparent canvas.

Where the effect fits

  • Hero backgrounds for luxury, watches, music and creative tools: Liquid Metal comes in silver, gold, titanium, black chrome and oil-slick.
  • One premium call to action: Liquid Metal Button has a live chrome rim that ripples from your touch, plus a zero-JS CSS variant.
  • Giant headlines: Liquid Metal Text casts a word in bevelled chrome lit by lights that follow the pointer.
  • AI and SaaS heroes that need one living object: the mercury blob.

Use one chrome element per view. Two shiny things compete; one reads premium.

A design system built around chrome

The Liquid Metal design system is the page around the effect: mirror-chrome gradients on graphite, wide Unbounded headlines and a monochrome palette that lets the work be the only color. Acid Chrome takes chrome into Y2K nightlife, and Titanium Deck into brushed hardware.

Install a liquid metal component

npx shadcn@latest add freedesignmd.com/r/liquid-metal-button.json

Or copy the file from the component page. All 4 have zero dependencies besides React. For a printed, grainy look instead of chrome, see the dither effect components, and for Apple's glass material, Liquid Glass in React.

Frequently asked questions

A shader that makes a surface look like flowing, polished chrome: a moving surface, normals that pick which part of a reflection to show, and a reflection ramp with sharp highlights.

Install a component with npx shadcn@latest add freedesignmd.com/r/liquid-metal.json (or liquid-metal-button, liquid-metal-text, liquid-metal-blob), or copy the file from its page.

Yes. Each component falls back to CSS: an animated chrome gradient for the background, a gradient sweep for the button, a background-clip gradient on real text and a morphing CSS sphere for the blob.

The Liquid Metal background comes in silver, gold, titanium, black chrome and oil-slick.
Tammo Elsner, founder of freedesignmd

Written by Tammo Elsner

Founder of freedesignmd, a free DESIGN.md library for AI coding agents. About the project · LinkedIn

Keep reading. More on Shaders and effects.

Dither Image component: a photo rendered with Bayer dithering in two inks

Shaders and effects

Dither effect in React: free shaders for images, logos, gradients and text

What a dither effect is, how ordered, blue-noise and error-diffusion dithering differ, and 4 free React components that dither images, logos, gradients and headlines on the GPU.

Nov 16, 2026 · 3 min read

Liquid Glass React component: a lens refracting a photo behind it

Liquid Glass

Liquid Glass in React: free components built from Apple's design guidelines

Apple's Liquid Glass, rebuilt for the web as 9 free React components. How the refraction works, which browsers get what, and how to use glass the way Apple's guidelines intend.

Nov 16, 2026 · 4 min read

Data Table component from the free React component library

Components and templates

Free React components you install with the shadcn CLI

116 free React components in a shadcn-compatible registry. How to install them with one command, what the registry returns, and how every component is tested against its preview.

Nov 16, 2026 · 3 min read

Start with a free DESIGN.md. Or install a component.

Free design systems, React components and landing page templates for Claude Code, Cursor, Lovable and v0. No signup.