Env: Update tailwindcss safelist

This commit is contained in:
2024-12-12 23:29:13 +01:00
parent ff553c99ec
commit 2f934537a2
3 changed files with 16 additions and 7 deletions

View File

@ -7,10 +7,7 @@ import forms from "@tailwindcss/forms";
const config = {
content: [
"./src/**/*.{html,js,svelte,ts}",
join(
require.resolve("@skeletonlabs/skeleton"),
"../**/*.{html,js,svelte,ts}",
),
join(require.resolve("@skeletonlabs/skeleton"), "../**/*.{html,js,svelte,ts}"),
],
theme: {
extend: {},
@ -23,6 +20,18 @@ const config = {
},
}),
],
safelist: [
// List all patterns that are used dynamically, e.g. class="variant-filled-{color}"
{
pattern: /variant-filled-+/,
},
{
pattern: /w-full/,
},
{
pattern: /w-auto/,
},
],
} satisfies Config;
export default config;