chore(Avatar): use preset system

This commit is contained in:
Benjamin Canac
2022-02-25 17:57:55 +01:00
parent 858b7da3c0
commit 55565d7079
4 changed files with 138 additions and 140 deletions

View File

@@ -93,6 +93,9 @@ export default defineNuxtModule<ModuleOptions>({
// Safelist dynamic colors used in preset
safelist: [
'dark',
{
pattern: new RegExp(`bg-(${safeColorsAsRegex})-400`)
},
{
pattern: new RegExp(`bg-(${safeColorsAsRegex})-(100|600|700)`),
variants: ['hover', 'disabled', 'dark']