Glassmorphism CSS library by Frosty40 with dark/light themes.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/frost-glass-css@1.0.0/dist/frost-glass.min.css">
<div class="frost_dark">
<button class="frostdark-button-action">Click me</button>
</div>Dark Theme: Add frost_dark class
Light Theme: Add frost_light class
<button class="frostdark-button-action">Primary</button>
<button class="frostdark-button-raised">Success</button>
<button class="frostdark-button-action-danger">Danger</button><div class="frostdark-app-content-card">
<h3>Card Title</h3>
<p>Content here</p>
</div><div class="frostdark-input-container">
<input type="text" class="frostdark-input-field" placeholder="Enter text">
</div><div class="frostdark-app-nav-item active">
<span>🏠</span>
<span>Dashboard</span>
</div><div class="frostdark-empty-panel">
<div class="empty-icon">📭</div>
<div class="empty-text">No items found</div>
</div>Replace frostdark- with frostlight- for light theme.
- Two separate CSS systems:
frostdark-*andfrostlight-*classes - Body class switching:
frost_darkorfrost_lightcontrols the active theme - Independent styling: No shared classes between themes - complete separation
- backdrop-filter: Creates the frosted glass blur effect
- Transparency layers: Multiple rgba() backgrounds for depth
- Box shadows: Inset/outset shadows simulate glass lighting
- Border gradients: Dynamic borders that match the glass aesthetic
src/
├── core/ # Variables, base styles, utilities
├── components/ # Buttons, forms, navigation
├── themes/ # frost-dark.css & frost-light.css
└── effects/ # Animations and transitions
- backdrop-filter support: Chrome 76+, Firefox 103+, Safari 14+
- CSS Grid: For responsive layouts
- CSS Custom Properties: For theme variables
- No JavaScript required: Pure CSS solution
- Modular loading: Import only needed components
- Optimized selectors: Minimal specificity conflicts
Created by Frosty40


