Nativ ui
Documentation

Liquid Glass

Glassmorphism components with gradient borders, luminosity blending, and layered blur effects.

Overview

Liquid glass uses two tiers of glassmorphism: .liquid-glass (light, subtle) and .liquid-glass-strong (heavy, for CTAs and panels). Both use a ::before pseudo-element for gradient borders via mask compositing — no border classes needed.

Best used over dark or image backgrounds for maximum contrast.

Cards

Basic Card

A simple glass card for content display.

Glass Card

A subtle glass surface with gradient border and soft blur.

Strong Card

Heavier blur and stronger border glow for primary content panels.

Strong Glass

Heavy blur with stronger gradient borders for prominent panels.

Blur Levels

Side by Side

Compare different blur intensities on the same background.

0px

No blur

2px

Subtle

4px

Light

8px

Medium

16px

Strong

50px

Heavy

Cards at Different Intensities

Same card layout with varying blur strengths.

Subtle

backdrop-blur-[2px]

Medium

backdrop-blur-[8px]

Heavy

backdrop-blur-[24px]

Feature Card with Icon

A card with an icon container, title, and description.

Processing

AI-powered generation with real-time feedback.

Buttons

CTA Button

Primary call-to-action with strong glass and icon circle.

Ghost Button

Light glass button for secondary actions.

Icon Button

Circular button with icon only.

Pills and Badges

Tag Pills

Small rounded badges for categories or labels.

Artistic GalleryAI Generation3D Structures

Status Badge

Pill with a dot indicator for live status.

Online

Processing

Offline

Top navigation bar with logo, links, and action button.

Social Bar

Horizontal bar with social icons and action button.

Inputs

Text Input

Glass-styled input field.

Search Input

Input with an icon prefix.

Panels

Content Panel

Large glass panel with an inner layout, suitable for hero sections or feature blocks.

Enter our ecosystem

Join the community of creators.

Processing

Real-time AI

Growth Archive

Track progress

Notification Card

Small glass card for toasts or floating notifications.

Generation complete

Your artwork is ready to download.

Compositions

Login Card

Full login form combining glass inputs, button, and layout.

Welcome back

Sign in to your account

No account? Sign up

Pricing Card

Glass pricing block with features list and CTA.

Pro
$29/mo

Everything you need to create.

Unlimited generations

Priority processing

4K export

Commercial license

CSS Reference

Two tiers

ClassDefault blurUse case
.liquid-glass2pxSubtle elements: pills, badges, secondary cards, inputs
.liquid-glass-strong16pxProminent elements: CTAs, panels, overlays, primary cards

Overriding blur

Add any Tailwind backdrop-blur-* utility to override the default:

<div class="liquid-glass backdrop-blur-none ...">No blur</div>
<div class="liquid-glass backdrop-blur-[4px] ...">Light</div>
<div class="liquid-glass backdrop-blur-[8px] ...">Medium</div>
<div class="liquid-glass backdrop-blur-[24px] ...">Heavy</div>
<div class="liquid-glass backdrop-blur-[50px] ...">Max</div>

How it works

Both classes share the same structure:

  1. Background: near-transparent white with luminosity blend mode
  2. Backdrop filter: blur for the frosted glass effect — override with backdrop-blur-*
  3. Box shadow: inner highlight for depth
  4. ::before pseudo-element: gradient border using mask-composite: exclude — no CSS border needed

Design tokens

TokenValue
Border radius (cards)rounded-3xl or rounded-[2rem]
Border radius (pills/buttons)rounded-full
Icon containerw-8 h-8 rounded-full bg-white/10
Text hierarchytext-whitetext-white/80text-white/60text-white/50
Hover interactionhover:scale-105 transition-transform
Active pressactive:scale-95

Best Practices

  1. Always use over dark backgrounds — glass effect is invisible on white
  2. No border classes — the ::before pseudo-element handles all borders
  3. Layer glass on glass — nest .liquid-glass cards inside .liquid-glass-strong panels for depth
  4. Keep text hierarchy strict — use white at 100/80/60/50% opacity only
  5. Grayscale palette — no colored accents, let the glass effect do the work
  6. Interactive feedback — always add hover:scale-105 active:scale-95 transition-transform to clickable elements