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.
@custom-variant
1 parent 86bdd77 commit 0199182Copy full SHA for 0199182
packages/@tailwindcss-upgrade/src/codemods/config/migrate-js-config.ts
@@ -235,7 +235,12 @@ async function migrateTheme(
235
236
if (variants.size > 0) {
237
css += '\n@tw-bucket custom-variant {\n'
238
+ let previousRoot = ''
239
for (let [name, selector] of variants) {
240
+ let root = name.split('-')[0]
241
+ if (previousRoot !== root) css += '\n'
242
+ previousRoot = root
243
+
244
css += `@custom-variant ${name} (${selector});\n`
245
}
246
css += '}\n'
0 commit comments