css – Convert linear gradient to inline tailwind classes

I am struggling to figure out how to add this style onto my div using the tailwind classes:

background: linear-gradient(90deg,
            rgb(10, 34, 78) 0%,
            rgb(18, 45, 84) 19%,
            rgb(10, 50, 106) 31%,
            rgb(20, 73, 136) 55%,
            rgb(10, 78, 151) 60%,
            rgb(10, 40, 160) 70%,
            rgb(10, 70, 160) 100%);

I want to be able to add my tailwind classes on my div in the component (I do not want to add this in my tailwind.config to the theme).

Leave a Comment