Liquid Glass for Websiteby The Atom

npm i @zakisheriff/liquid-glass

Apple-Style Liquid Glass Components for React and Next.js. About 32 KB Gzipped, MIT Licensed.

Best Experienced in Chrome or Edge on a Laptop or Android, or Safari on iOS 26 and macOS 26. Older iPhones Get a Simpler Lens.

Focus timer, 45 minutes1,847 calories burned todayNext up: a first look with the teamRecording, 2 hours 30 minutes
The Atom

Demo Video

Components

Switch

Tint
Wi-Fi
Use Mobile Data
Live Activities

Tab Bar

Tabs
Layout
Labels

Segmented

Segments
Size

Slider

Tint

Buttons

Size

Search

Menu

Items
Button

Notes

  • Trip to Big SurBixby Bridge at 5, dinner in CarmelSat
  • GroceriesOat milk, limes, coffee beansFri
  • Design reviewSoften the menu blur, check dark modeThu
  • IdeasGlass widgets for the home screenMon

Sheet

Playground

Buttons

Controls

Tab Bar

Tabs
Tabs + Button
Show Labels

Menu & Sheet

  • Coral6 days ago
  • Aurora3 days ago
  • BasaltYesterday

Get Started

npm i @zakisheriff/liquid-glass
'use client';

import { useState } from 'react';
import { GlassButton, GlassCard, GlassSlider, GlassSwitch } from '@zakisheriff/liquid-glass';
import '@zakisheriff/liquid-glass/styles.css';

// A quick-settings panel. Glass needs something behind it to bend,
// so it sits on a gradient; swap in any image.
export default function QuickSettings() {
  const [wifi, setWifi] = useState(true);
  const [volume, setVolume] = useState(60);

  return (
    <main style={{ minHeight: '100vh', display: 'grid', placeItems: 'center', background: 'linear-gradient(135deg, #5b8cff, #c86dd7)' }}>
      <GlassCard padding="20px" radius="28px" style={{ display: 'grid', gap: 18, width: 320 }}>
        <label style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
          Wi-Fi
          <GlassSwitch checked={wifi} onChange={setWifi} />
        </label>
        <GlassSlider value={volume} onChange={setVolume} aria-label="Volume" />
        <GlassButton variant="filled" onClick={() => console.log({ wifi, volume })}>
          Save
        </GlassButton>
      </GlassCard>
    </main>
  );
}

Prompt your AI agent.

Claude Code · Codex · Cursor · Copilot
Add Apple-style Liquid Glass to this React / Next.js app using @zakisheriff/liquid-glass.

1. Install it: npm i @zakisheriff/liquid-glass
2. Import the stylesheet once at the app root: import '@zakisheriff/liquid-glass/styles.css'
3. Replace existing UI with the glass components where they fit:
   - Buttons → GlassButton (variant: glass | clear | tinted | filled, plus destructive, tint, size, icon)
   - Toggles → GlassSwitch (checked, onChange)
   - Bottom / tab navigation → GlassNav (items: { label, icon }[], activeIndex, onChange)
   - Tabs / filters → GlassSegmented (options, value, onChange)
   - Range inputs → GlassSlider (value, onChange; showThumb={false} for Control Center blocks)
   - Search / text fields → GlassInput (type="search" for a search field)
   - Panels → GlassCard · Bottom sheets / modals → GlassSheet (open, onClose)
4. Glass needs something behind it to bend: place bars and controls over images, gradients or scrolling content, not flat white.
5. Theme: follow the system, or set data-theme="light" | "dark" on <html>.
6. In Next.js, add 'use client' to components that own interactive state. Import the stylesheet from app/layout.tsx (App Router) or pages/_app.tsx (Pages Router).

Docs: https://github.com/zakisheriff/Liquid-Glass#readme