From 54ccd7ffb0923cc646fd42f1ebf9f4f1add91304 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 19 May 2023 12:32:18 -0700 Subject: [PATCH] Include backdrop classes in css build --- tailwind.config.js | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/tailwind.config.js b/tailwind.config.js index 0d78a6c0e..b981051b7 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -32,4 +32,27 @@ module.exports = { }, }, plugins: [tailwindForms, tailwindScrollbars], -}; + // always include these in build as classes are dynamically constructed + safelist: [ + 'backdrop-blur', + 'backdrop-blur-sm', + 'backdrop-blur-md', + 'backdrop-blur-xl', + 'backdrop-saturate-0', + 'backdrop-saturate-50', + 'backdrop-saturate-100', + 'backdrop-saturate-150', + 'backdrop-saturate-200', + 'backdrop-brightness-0', + 'backdrop-brightness-50', + 'backdrop-brightness-75', + 'backdrop-brightness-90', + 'backdrop-brightness-95', + 'backdrop-brightness-100', + 'backdrop-brightness-105', + 'backdrop-brightness-110', + 'backdrop-brightness-125', + 'backdrop-brightness-150', + 'backdrop-brightness-200', + ], +}