You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My idea is maybe to refactor a little bg-gradient-to-[direction] utilltiy class so it may accepts angle direction. This way I can change --tw-gradient-direction CSS variable later if I needed
For example bg-gradient-to-tr would generate
.bg-gradient-to-tr {
--tw-gradient-direction: to top right;
background-image:linear-gradient(var(--tw-gradient-direction),var(--tw-gradient-stops));
}
And allow numerical directions like bg-gradient-to-10 or bg-gradient-to-[15deg]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there!
My idea is maybe to refactor a little
bg-gradient-to-[direction]
utilltiy class so it may accepts angle direction. This way I can change--tw-gradient-direction
CSS variable later if I neededFor example
bg-gradient-to-tr
would generateAnd allow numerical directions like
bg-gradient-to-10
orbg-gradient-to-[15deg]
I've created similar plugin some time ago but I'm not sure am I allowed to paste my own links)
Beta Was this translation helpful? Give feedback.
All reactions