mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 04:07:56 +01:00
chore(module): improve safelist regex
This commit is contained in:
@@ -91,11 +91,11 @@ export default defineNuxtModule<ModuleOptions>({
|
|||||||
],
|
],
|
||||||
// Safelist dynamic colors used in preset
|
// Safelist dynamic colors used in preset
|
||||||
safelist: [{
|
safelist: [{
|
||||||
pattern: new RegExp(`bg-(${safeColorsAsRegex})-(100|600|700)`)
|
pattern: new RegExp(`(hover|disabled|dark:)?bg-(${safeColorsAsRegex})-(100|600|700)`)
|
||||||
}, {
|
}, {
|
||||||
pattern: new RegExp(`text-(${safeColorsAsRegex})-(100|800)`)
|
pattern: new RegExp(`(dark:)?text-(${safeColorsAsRegex})-(100|800)`)
|
||||||
}, {
|
}, {
|
||||||
pattern: new RegExp(`ring-(${safeColorsAsRegex})-(500)`)
|
pattern: new RegExp(`(focus:)?ring-(${safeColorsAsRegex})-(500)`)
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
cssPath: resolve(runtimeDir, 'tailwind.css')
|
cssPath: resolve(runtimeDir, 'tailwind.css')
|
||||||
|
|||||||
Reference in New Issue
Block a user