syntaxui icon indicating copy to clipboard operation
syntaxui copied to clipboard

[FEATURE]: Add a Glassmorphic button

Open vishnuprasad2004 opened this issue 1 year ago • 8 comments

Feature Description 📝

A Glassmorphism Button (button with glass-like effect)

Tailwind Playground link: https://play.tailwindcss.com/Y9Sr11vrVR

Screenshots 📸

In Light Mode image In Dark mode image

vishnuprasad2004 avatar May 13 '24 08:05 vishnuprasad2004

Hello @vishnuprasad2004,

Thanks for creating this issue and contributing to SyntaxUI!

@Ansub will review your issue soon and provide feedback. In the meantime, feel free to join the discord community, It's a great place to discuss the project, ask questions, and connect with other contributors.

Please ensure that you have followed the contributing guidelines for a smooth review process.

github-actions[bot] avatar May 13 '24 08:05 github-actions[bot]

I had also created a Glassmorphism Button for SyntaxUI in the past.

Here is what mine looks like.

https://github.com/Ansub/SyntaxUI/assets/16091805/31a88df8-1122-4d3d-9900-6335e75f7d99

epoll31 avatar May 13 '24 15:05 epoll31

@epoll31 what if we remove that red background at the back

Ansub avatar May 13 '24 16:05 Ansub

This is what that looks like: Screenshot 2024-05-13 at 9 53 48 AM

The red part behind it is what gives it it's glassy look.

epoll31 avatar May 13 '24 16:05 epoll31

hmm, you are right. we can do something similar to this then

https://codepen.io/tin-fung-hk/pen/MWrRqBw

Ansub avatar May 14 '24 04:05 Ansub

That's pretty similar to what I had :). Do you want me to make it a square, or rotate the background, or both?

epoll31 avatar May 14 '24 04:05 epoll31

can you raise a PR for the glassmorphism button you made or lmk if it was already there i will re-open it

Ansub avatar May 14 '24 05:05 Ansub

we actually need that button but looking for a better UI @vishnuprasad2004

Ansub avatar May 19 '24 17:05 Ansub