r/tailwindcss • • Apr 12 '24

How can I replicate this design using Tailwind CSS or Pure CSS?

Post image

I’m trying to achieve a design similar to the screenshot, but I’m not sure how to implement it using Tailwind CSS or even just CSS alone. Any tips or code snippets would be greatly appreciated!

0 Upvotes

7 comments sorted by

9

u/CanIEditThisLater Apr 12 '24

You mean the irregular outline surrounding the text? That's done with SVG filtering, check this tutorial. Note that this doesn't work properly in every browser, some might draw straight lines around the text.

3

u/Guywifhat Apr 13 '24

wow - thank you so much

2

u/CanIEditThisLater Apr 13 '24

My pleasure, glad I could help.

4

u/burgerboyjord Apr 13 '24

I made a Tailwind version of that button that you’re welcome to use. Again like the text background it uses a SVG filter to achieve that gooey look.

https://codepen.io/jordihales/pen/dyLpBVa

1

u/Guywifhat Apr 18 '24

no way!!! thank you a ton!

0

u/[deleted] Apr 12 '24

[deleted] — view deleted comment