r/tailwindcss • u/kriptonian_ • Aug 29 '23
Does anyone know how can I give this border gradient, with glass morphism
I want to give a border gradient with the navbar to be glassmorphism as you can see in the picture

I checked some tutorials where they are basically saying to add a background with gradient and then put the content on top but the problem with that is I won't be able to do glassmorphism.
Now this picture is from Figma but in the dev mode it's not even showing the css for the border gradient.
Here is a more detailed view of the gradient from Figma

and there you have the whole navbar from Figma

I would really appreciate it if you can help me figure this out
4
u/kriptonian_ Aug 29 '23 edited Aug 29 '23
Okay guys, got the solution
Credit to this stackoverflow post [Link]
1
u/frog_slap Aug 29 '23
Backdrop filter, backdrop blur bg-opacity
1
u/DeliciousArugula1357 Aug 29 '23
maybe this can be helpful to get the idea: https://buildui.com/recipes/gradient-border
1
u/web_reaper Aug 29 '23
Probably something like this, using a border linear gradient. https://www.digitalocean.com/community/tutorials/css-gradient-borders-pure-css