Frosted Prism

Glass refraction effect with rotating conic gradient and frosted backdrop blur.

Main Features of Frosted Prism

How to Use Frosted Prism in Next.js

Installation Guide for Frosted Prism

Props

Customize the component with these props

PropertyTypeDefaultDescription
backgroundColor
string#ffffffBackground color
conicGradientColors
string#ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000Comma-separated colors for conic gradient
conicOpacity
number0.8Opacity of conic gradient
conicSize
string200%Size of conic gradient
conicPosition
stringtop-[-50%] left-[-50%]Position of conic gradient
conicDuration
number30Rotation duration in seconds
panelBgColor
stringrgba(255, 255, 255, 0.3)Panel background color
panelBlur
string100pxPanel blur amount
panelBorderColor
stringrgba(255, 255, 255, 0.2)Panel border color
panelPadding
string1remPanel padding
panelPaddingMd
string3remPanel padding on medium screens
panelBorderRadius
string1.5remPanel border radius
overlayColor
stringrgba(255, 255, 255, 0.2)Overlay color
overlayOpacity
number1Overlay opacity
noiseOpacity
number0.25Noise overlay opacity
noiseBaseFrequency
string0.8Noise base frequency
noiseOctaves
number3Noise octaves
text
stringFrostText label
textColor
stringrgba(255, 255, 255, 0.9)Text color
className
stringAdditional CSS classes

When to Use

Perfect for high-end fashion brands, modern design studios, and Next.js portfolios that want a tactile, frosted-glass aesthetic. Use this React component for a prism-like refraction effect that feels expensive and physically grounded.

Best Practices

Maintain consistent spacing within your design system by using the prism as a central hero element. Follow React best practices by choosing high-contrast conic gradient colors. Optimize for performance by keeping the `panelBlur` at a reasonable value for mobile devices.

Why This Component Matters in Modern UI Development

Refractive glass effects are a hallmark of premium modern UI design. This customizable UI component gives you a production-level tool for building sophisticaed, memorable real-world application architecture.

Frequently Asked Questions

QHow does the prism rotation work?

It uses a hardware-accelerated CSS rotation on a conic gradient to simulate moving light reflections through glass.

QCan I adjust the frosted effect?

Yes, the `panelBlur` and `panelBgColor` props allow you to control how 'milky' or transparent the glass appears.

QIs it mobile responsive?

Absolutely, the panel dimensions and background scale adapt to different screen sizes for a consistent refractive experience.

Frosted Prism - React Blur & Glassmorphism Effects | Uilora