Introduction

Liquid glass components for React, built on Base UI and installed with the shadcn CLI.

LiquiKit is a set of React components made of liquid glass. Each one is a Base UI primitive with a glass surface on top, so the behaviour, keyboard support and accessibility come from Base UI, and the look comes from LiquiKit.

Not a package#

Like shadcn/ui, LiquiKit is not a dependency you install from npm. The shadcn CLI copies the source into your project, where it is yours to read and change.

npx shadcn@latest add @liquikit/switch

How the glass works#

The glass bends what is behind it. For every surface, LiquiKit traces a ray of light through a curved piece of glass using Snell's law and records how far each point moves. While you use a component, an SVG filter moves the pixels behind it by that much. See How it works for the details.

See it in a page#

The examples are finished pages built with these components, such as Lumen, a product page for a smart lamp. Each one links to its source in the repository, with notes on where the glass bends and why.

Browser support#

The glass works in Chrome, Edge, Safari and Firefox. Safari and Firefox cannot filter what is behind an element, so the glass bends the content of the GlassScope you wrap around it. Limitations lists where the browsers differ.