Frostpane is a customizable CSS/SCSS library for creating beautiful frosted glass effects. Add modern liquid glass aesthetics to any web project with backdrop blur, highlights, and smooth animations.
Interactive Demo
Liquid Glass
Adjust the controls to see real-time changes to the frosted glass effect.
Quick Start
Get started with Frostpane in three simple steps:
npm install frostpane
<link rel="stylesheet" href="path/to/frostpane.css">
<div class="glass-container">
<div class="glass-content">Your content here</div>
</div>
Customization
Frostpane uses CSS custom properties for easy customization. Override these variables to match your design:
.custom-glass {
--fp-backdrop-blur: 12px;
--fp-bg-color: rgba(255, 255, 255, 0.2);
--fp-border-radius: 16px;
--fp-filter-saturate: 180%;
--fp-border-color: rgba(255, 255, 255, 0.3);
}
Key Features
- Frosted Glass Effects: Beautiful backdrop blur and glass aesthetics
- CSS Custom Properties: 30+ variables for complete customization
- SCSS Variables: Full Sass/SCSS support with configurable variables
- Smooth Animations: Built-in transitions and animation effects
- Zero Dependencies: Lightweight, no JavaScript required
- Cross-Browser Support: Graceful fallbacks for older browsers