Glass type to apply glass morphism effects. The glass parameter accepts various configurations.
Clear glass
The default glass effect with no tint.Regular glass
Standard glass effect with material properties.Tinted glass
Apply a custom color tint to the glass effect using the.tint() modifier.
With clear glass
With regular glass
With opacity
Examples
Different glass effects
Complete example with background
Best practices
For optimal glass morphism effects:- Use colorful or textured backgrounds to showcase the glass effect
- Experiment with opacity levels in tinted glass (0.25 to 0.5 works well)
- Combine with bold font weights for better visibility
- Consider using rounded or serif font designs for aesthetic appeal