npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@beladevo/liquid-glass-ui

v0.1.0

Published

Liquid Glass design system — reusable frosted-glass UI components with SVG displacement-map refraction

Readme

liquid-glass-ui

Frosted-glass React component library with SVG displacement-map refraction — buttons, cards, panels, and search inputs with Apple-style liquid glass aesthetics.



Installation

npm install liquid-glass-ui
# or
pnpm add liquid-glass-ui

Peer dependencies: React ≥ 18


Setup

Wrap your app (or the section where you want glass effects) with LiquidGlassProvider, and import the stylesheet.

import { LiquidGlassProvider } from 'liquid-glass-ui'
import 'liquid-glass-ui/styles'

export function App() {
  return (
    <LiquidGlassProvider>
      {/* your content */}
    </LiquidGlassProvider>
  )
}

The provider injects an invisible SVG filter into the DOM that powers the refraction effect. Without it, components render as plain frosted glass without the displacement distortion.


Components

LiquidGlassButton

A button with three visual variants.

<LiquidGlassButton variant="light">Default</LiquidGlassButton>
<LiquidGlassButton variant="dark">Dark</LiquidGlassButton>
<LiquidGlassButton variant="cta">Call to Action</LiquidGlassButton>

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'light' \| 'dark' \| 'cta' | 'light' | Visual style |

Accepts all standard <button> HTML attributes.


LiquidGlassCard

A card container for grouping content.

<LiquidGlassCard variant="light">
  <h3>Title</h3>
  <p>Some content here.</p>
</LiquidGlassCard>

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'light' \| 'dark' | 'light' | Visual style |

Accepts all standard <div> HTML attributes.


LiquidGlassPanel

Like LiquidGlassCard but with more padding — intended for larger content sections.

<LiquidGlassPanel variant="dark">
  <h2>Panel Title</h2>
  <p>Larger content block.</p>
</LiquidGlassPanel>

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'light' \| 'dark' | 'light' | Visual style |


LiquidGlassSearchBar

An input wrapped in a glass surface with an optional icon slot.

import { SearchIcon } from 'lucide-react'

<LiquidGlassSearchBar
  icon={<SearchIcon size={16} />}
  placeholder="Search..."
  variant="light"
/>

| Prop | Type | Default | Description | |------|------|---------|-------------| | variant | 'light' \| 'dark' | 'light' | Visual style | | icon | React.ReactNode | — | Icon rendered on the left |

Accepts all standard <input> HTML attributes. Supports ref forwarding.


Theming

Pass a theme object to LiquidGlassProvider to customize the look globally.

import { LiquidGlassProvider, LiquidGlassTheme } from 'liquid-glass-ui'

const theme: LiquidGlassTheme = {
  borderRadius: '1rem',
  blur: 25,
  tintColor: '45, 108, 223',   // RGB, no alpha
  tintOpacity: 0.15,
  specularOpacity: 0.9,
  outerShadowBlur: '50px',
}

<LiquidGlassProvider theme={theme}>
  {/* components pick up the new theme automatically */}
</LiquidGlassProvider>

| Token | Type | Default | Description | |-------|------|---------|-------------| | borderRadius | string | '1.4rem' | Corner radius of all surfaces | | blur | number | 20 | Backdrop blur in px | | tintColor | string | '255, 255, 255' | RGB tint color (no alpha) | | tintOpacity | number | 0.14 | Tint alpha | | specularOpacity | number | 0.82 | Intensity of the specular highlight | | outerShadowBlur | string | '40px' | Outer drop-shadow spread | | innerShadowBlur | string | '0px' | Inner glow blur | | innerShadowSpread | string | '0px' | Inner glow spread | | innerShadowColor | string | 'rgba(255,255,255,0.45)' | Inner glow color |

Dynamic theming (e.g. brand color)

const hex = brandColor.replace('#', '')
const r = parseInt(hex.slice(0, 2), 16)
const g = parseInt(hex.slice(2, 4), 16)
const b = parseInt(hex.slice(4, 6), 16)

const theme: LiquidGlassTheme = {
  tintColor: `${r}, ${g}, ${b}`,
  tintOpacity: 0.12,
  innerShadowColor: `rgba(${r}, ${g}, ${b}, 0.22)`,
}

Utilities

For cases where you need the CSS classes directly (e.g. styling a third-party component):

import { liquidGlassClasses } from 'liquid-glass-ui'

<SomeComponent className={liquidGlassClasses.card} />

Available class presets: surface, button, cta, card, panel, modal, dark, darkButton, darkCard.


License

MIT