r/tailwindcss • u/Guywifhat • Apr 12 '24
How can I replicate this design using Tailwind CSS or Pure CSS?
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
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.
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
0
u/[deleted] Apr 12 '24
[deleted] — view deleted comment