liqgui

liqgui

Glassmorphism components that actually feel good.

Get Started View on GitHub
15
Components
0
Dependencies
Accessible

Getting Started

liqgui is a framework-agnostic component library built with vanilla TypeScript. It uses Web Components, so it works with any framework or no framework at all.

Installation

# npm
npm install liqgui

# or use directly via CDN
<script type="module" src="path/to/dist/index.js"></script>

Quick Setup

<!-- 1. Include CSS tokens -->
<link rel="stylesheet" href="liqgui/styles/tokens.css">

<!-- 2. Import components -->
<script type="module">
import 'liqgui';
</script>

<!-- 3. Use components -->
<glass-button variant="primary">Click Me</glass-button>

Theming

Customize the look and feel using CSS custom properties. Set the theme on the root element.

Theme Toggle Demo
Light Theme Dark Theme

Available CSS Variables

Variable Description Default
--lg-blur Backdrop blur amount 20px
--lg-radius Border radius 20px
--lg-bg Background color rgba(18, 18, 22, 0.65)
--lg-accent Accent gradient Blue gradient

Button

Versatile button component with multiple variants, loading states, and spring-based press animations.

Variants
Default Primary Outline Ghost
States
Disabled Loading Loading
<glass-button>Default</glass-button>
<glass-button variant="primary">Primary</glass-button>
<glass-button loading>Loading</glass-button>

Card

Glassmorphism card with optional 3D tilt effect on hover and glow animation.

With Glow

Hover to see the glow effect and 3D tilt.

No Tilt

Static card without tilt effect.

<glass-card glow>Content</glass-card>
<glass-card no-tilt>Static content</glass-card>

Input

Styled text input with focus glow and error state support.

This field is required
<glass-input placeholder="Enter text"></glass-input>
<glass-input error>
<span slot="error">Error message</span>
</glass-input>

Toggle

Switch toggle with spring-animated thumb movement.

Notifications enabled Dark mode Disabled toggle
<glass-toggle checked>Label</glass-toggle>

Slider

Range slider with touch support, keyboard navigation, and spring physics.

<glass-slider value="50" min="0" max="100"></glass-slider>

Tabs

Tab navigation with spring-animated sliding indicator.

<glass-tabs>
<button data-value="tab1">Tab 1</button>
<button data-value="tab2">Tab 2</button>
</glass-tabs>

Toast

Notification toasts with variants, auto-dismiss, and progress indicator.

Info Success Warning Error
import { GlassToast } from 'liqgui';

GlassToast.show('Message', 'success');
GlassToast.show('Message', 'error');

Tooltip & Popover

Hover tooltips and click-triggered popovers with 4 position options.

Tooltips (hover)
Top Tooltip on top Right Tooltip on right Bottom Tooltip on bottom Left Tooltip on left
Popover (click)
Click for Popover
Popover Title

Rich content inside a popover.

Progress

Linear and circular progress indicators with indeterminate mode.

Linear
75% Complete Loading...
Circular
65%

Avatar

User avatars with sizes, status indicators, and grouping.

Sizes
XS SM MD LG XL
Status
ON AW BZ OF
Avatar Group
A B C +5

Badge

Labels, tags, and notification count indicators.

Variants
Default Primary Success Warning Error Info
Count Badges
Messages Notifications Status

Accordion

Collapsible content sections with spring-animated expand/collapse.

What is liqgui? A premium glassmorphism component library built with TypeScript and Web Components. It features spring physics animations and works with any framework. Is it accessible? Yes! All components support keyboard navigation, ARIA attributes, and respect user preferences like reduced motion. Does it have dependencies? No dependencies. It's built with vanilla TypeScript and uses native Web Components.

Welcome to liqgui

This modal features smooth animations, backdrop blur, focus trapping, and closes with Escape key or clicking outside.

Got it! Cancel