Effects (Mist)

Effects & Glass Morphism

Instead of heavy glassmorphism, we use "Mist" — a subtler frosted effect. Softer, single-layer blur that adds depth without overwhelming the interface.

Mist Effect Variants

Three levels of frosted glass effect for different use cases

mist-subtle

50% opacity, 6px blur — for light overlays

Subtle Mist Effect

Light frosted glass overlay

mist (default)

72% opacity, 10px blur — balanced frosted effect

Default Mist Effect

Standard frosted glass

mist-dense

88% opacity, 16px blur — strong frosted effect

Dense Mist Effect

Heavy frosted glass for modals

When to Use Mist

Best practices for the frosted glass effect

✅ Good Use Cases

  • Navigation bars over hero sections with background images
  • Modal overlays and dialog backdrops
  • Floating action buttons or toolbars
  • Header cards over complex backgrounds
  • Dropdown menus with depth

❌ Avoid Using Mist For

  • Regular content cards (use standard cards instead)
  • Text-heavy content (reduces readability)
  • Multiple layers (can cause performance issues)
  • Small UI elements like buttons or badges

Code Examples

How to implement the Mist effect

Light Mode Mist

/* Default Mist */
.mist {
 background: rgba(255, 255, 255, 0.72);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 border: 1px solid rgba(241, 245, 249, 0.8);
}

/* Subtle Mist */
.mist-subtle {
 background: rgba(255, 255, 255, 0.5);
 backdrop-filter: blur(6px);
 border: 1px solid rgba(241, 245, 249, 0.5);
}

/* Dense Mist */
.mist-dense {
 background: rgba(255, 255, 255, 0.88);
 backdrop-filter: blur(16px);
 border: 1px solid rgba(226, 232, 240, 0.6);
}

Dark Mode Mist

/* Dark Mode Adjustments */
.dark .mist {
 background: rgba(15, 23, 42, 0.72);
 border: 1px solid rgba(51, 65, 85, 0.5);
}

.dark .mist-subtle {
 background: rgba(15, 23, 42, 0.5);
 border: 1px solid rgba(51, 65, 85, 0.3);
}

.dark .mist-dense {
 background: rgba(15, 23, 42, 0.88);
 border: 1px solid rgba(51, 65, 85, 0.7);
}

Usage in Components

<Card className="mist">
 <CardHeader>
 <CardTitle>Frosted Card</CardTitle>
 <CardDescription>
 With subtle glass effect
 </CardDescription>
 </CardHeader>
 <CardContent>
 Content with mist background
 </CardContent>
</Card>

Performance Considerations

Important notes about backdrop-filter

Backdrop-filter can be GPU-intensive. Follow these guidelines for optimal performance:

  • Limit to 2-3 mist elements per viewport
  • Avoid animating backdrop-filter directly
  • Use will-change: backdrop-filter sparingly
  • Test on lower-end devices to ensure smooth performance
  • Consider fallback styles for browsers without backdrop-filter support

Interactive Demo

See Mist in action with real content

Welcome Back

The Mist effect creates depth and hierarchy without overwhelming your content. Perfect for overlays and floating elements.