Introducing liquid glass design into SaaS Webpage. A modern React/TypeScript UI library that provides stunning liquid glass visual effects for web applications. Transform ordinary UI components into premium, depth-rich interfaces with minimal effort.
https://www.liquidglassstyle.com/
LiquidAI-compressed.mp4
- ๐ฎ Liquid Glass Effect: Create beautiful liquid glass, blur, and gradient effects
- ๐งฉ Component Library: Ready-to-use React components with liquid glass styling
- ๐จ Customizable: Extensive styling options and shader customization
- ๐ฑ Responsive: Fully responsive design that works on all devices
- ๐ง Framework Agnostic: Support for React, Vue, and vanilla CSS
- โก Performance Optimized: Efficient rendering with minimal performance impact
- Node.js 18+
- npm or yarn
# Clone the repository
git clone https://github.com/WILLAITech/Liquid-Glass-SaaS.git
cd Liquid-Glass-SaaS
# Install dependencies
npm install
# or
yarn installnpm run dev
# or
yarn devVisit http://localhost:3000 to see the application.
npm run build
npm run start
# or
yarn build
yarn startnpm run generate-icons
# or
yarn generate-iconsThis will generate all necessary icon files based on public/favicon.svg, including favicon.ico, PWA icons, and social media sharing images.
import { VanillaLiquidGlass } from 'liquid-glass';
function MyComponent() {
return (
<VanillaLiquidGlass
width={400}
height={300}
borderRadius={20}
draggable={true}
>
<div className="p-6 text-white">
<h2 className="text-xl font-bold">Liquid Glass Effect</h2>
<p>Beautiful liquid glass UI component</p>
</div>
</VanillaLiquidGlass>
);
}- Upload Design: Drag and drop or select a UI design image
- Select Framework: Choose React, Vue, or CSS output format
- Transform: Click "Transform to Liquid Glass" to process
- Use Generated Code: Copy the code and integrate it into your project
VanillaLiquidGlass: Core component for creating liquid glass effectsLiquidGlassCard: Pre-styled card with liquid glass effectLiquidGlassButton: Interactive button with liquid glass stylingLiquidGlassBackground: Full-screen animated backgroundLiquidGlassHeaderDecoration: Decorative header element
- Framework: Next.js 13 (App Router)
- UI: Tailwind CSS + Radix UI
- Language: TypeScript
- AI Integration: OpenAI Compatible APIs
- Image Processing: Canvas API + File API
liquid-glass-saas/
โโโ app/ # Next.js App Router
โ โโโ globals.css # Global styles
โ โโโ layout.tsx # Root layout
โ โโโ page.tsx # Main page
โโโ components/ # React components
โ โโโ VanillaLiquidGlass.tsx # Core glass effect component
โ โโโ LiquidGlassCard.tsx # Card component
โ โโโ LiquidGlassButton.tsx # Button component
โ โโโ Transform.tsx # Image transformation component
โ โโโ Showcase.tsx # Demo showcase component
โ โโโ ... # Other UI components
โโโ lib/ # Utility functions
โ โโโ config.ts # Configuration
โ โโโ imageUtils.ts # Image processing utilities
โ โโโ mockData.ts # Mock data for demos
โโโ public/ # Static assets
โโโ scripts/ # Tool scripts
โโโ types/ # TypeScript type definitions
| Prop | Type | Default | Description |
|---|---|---|---|
width |
number |
300 |
Width in pixels |
height |
number |
200 |
Height in pixels |
borderRadius |
number |
16 |
Border radius in pixels |
draggable |
boolean |
true |
Enable dragging |
fixed |
boolean |
false |
Fix position (disable dragging) |
className |
string |
- | Additional CSS classes |
style |
CSSProperties |
- | Additional inline styles |
children |
ReactNode |
- | Content to display inside |
fragment |
Function |
Default shader | Custom shader function |
const customFragment = (uv: UV, mouse: Mouse) => {
const ix = uv.x - 0.5;
const iy = uv.y - 0.5;
// Mouse interaction
const mouseX = (mouse.x - 0.5) * 0.1;
const mouseY = (mouse.y - 0.5) * 0.1;
// Add effects
const time = Date.now() * 0.001;
const wave = Math.sin(time + Math.sqrt(ix*ix + iy*iy) * 10) * 0.02;
return {
type: 't',
x: ix + mouseX + wave + 0.5,
y: iy + mouseY + wave + 0.5
};
};Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js - React framework
- Tailwind CSS - CSS framework
- Radix UI - Headless UI components
- Lucide React - Icon library
- OpenAI - AI service provider
- https://github.com/shuding/liquid-glass
- https://github.com/rdev/liquid-glass-react
- https://github.com/lucasromerodb/liquid-glass-effect-macos
Built with โค๏ธ by WILLAITech