0

I'd like to use custom background rule in my tailwind class, something like this:

bg-[linear-gradient(110deg,theme(colors.blue.200),45%,theme(colors.white),55%,theme(colors.blue.200))]

and this particular class (with colors from tailwind theme) works well when it's placed into standard class, but I want to use it with tailwind-merge (twMerge function). Any ideas?

It works with clsx, but I'd like to combine those two libs with utility like:

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}
rudzky
  • 3
  • 4

0 Answers0