fix: Add safelist to tailwind config for dynamic classes

This commit is contained in:
courtmanr@gmail.com
2025-04-25 22:40:19 +01:00
parent 6bddba10a6
commit 6ce1c86989
+11
View File
@@ -5,6 +5,17 @@ module.exports = {
'./src/public/**/*.html',
'./src/public/**/*.js',
],
safelist: [
'opacity-60',
{
pattern: /^(bg|text)-(red|yellow|green|blue)-(100|200|300|400|500|600|700|800|900)(\/50)?$/,
},
{
pattern: /^dark:(bg|text)-(red|yellow|green|blue)-(100|200|300|400|500|600|700|800|900)(\/50)?$/,
},
'vm-icon',
'ct-icon',
],
theme: {
extend: {},
},