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

@ -1,6 +1,6 @@
export default { export default {
plugins: { plugins: {
tailwindcss: {}, tailwindcss: { config: "./tailwind.config.ts" },
autoprefixer: {}, autoprefixer: {},
}, },
} };

View File

@ -17,7 +17,7 @@ const config = {
quoteProps: "as-needed", quoteProps: "as-needed",
trailingComma: "all", trailingComma: "all",
bracketSpacing: true, bracketSpacing: true,
bracketSameLine: true, bracketSameLine: false,
arrowParens: "always", arrowParens: "always",
// File specific configuration options // File specific configuration options

View File

@ -7,10 +7,7 @@ import forms from "@tailwindcss/forms";
const config = { const config = {
content: [ content: [
"./src/**/*.{html,js,svelte,ts}", "./src/**/*.{html,js,svelte,ts}",
join( join(require.resolve("@skeletonlabs/skeleton"), "../**/*.{html,js,svelte,ts}"),
require.resolve("@skeletonlabs/skeleton"),
"../**/*.{html,js,svelte,ts}",
),
], ],
theme: { theme: {
extend: {}, 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; } satisfies Config;
export default config; export default config;