We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6876713 commit a53710eCopy full SHA for a53710e
src/lib/convertToTailwind.ts
@@ -11,7 +11,8 @@ export function generateTailwindGradient({
11
via: string;
12
to: string;
13
}): string {
14
- return `bg-[radial-gradient(${shape}_at_${direction},_var(--tw-gradient-stops))] from-[${from}] via-[${via}] to-[${to}]`;
+ const formattedDirection = direction.replace(/\s+/g, '_');
15
+ return `bg-[radial-gradient(${shape}_at_${formattedDirection},_var(--tw-gradient-stops))] from-[${from}] via-[${via}] to-[${to}]`;
16
}
17
18
0 commit comments