From 2d652abc2f71fcfe23775c188af9dc8be21ca8ed Mon Sep 17 00:00:00 2001 From: axolotle Date: Sat, 17 Feb 2024 03:59:19 +0100 Subject: [PATCH] fix: add bg-color classes in tailwind safelist --- tailwind.config.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tailwind.config.js b/tailwind.config.js index f42c3b3..9998ed4 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,7 +1,21 @@ module.exports = { // Safelisting some classes to avoid content purge plugins: [require('daisyui')], - safelist: ['safelisted'], + safelist: [ + 'safelisted', + 'bg-primary', + 'bg-secondary', + 'bg-accent', + 'bg-neutral', + 'bg-base-100', + 'bg-base-200', + 'bg-base-300', + 'bg-base-content', + 'bg-info', + 'bg-success', + 'bg-warning', + 'bg-error', + ], daisyui: { themes: true, },