mirror of
https://github.com/apricote/ein-pfeil-am-rechten-fleck.de.git
synced 2026-01-13 13:01:02 +00:00
35 lines
1,010 B
JavaScript
35 lines
1,010 B
JavaScript
|
|
const { tailwindExtractor } = require("tailwindcss/lib/lib/purgeUnusedStyles");
|
||
|
|
const colors = require("tailwindcss/colors");
|
||
|
|
|
||
|
|
module.exports = {
|
||
|
|
mode: "aot",
|
||
|
|
purge: {
|
||
|
|
content: ["./src/**/*.{html,js,svelte,ts}"],
|
||
|
|
options: {
|
||
|
|
defaultExtractor: (content) => [
|
||
|
|
// If this stops working, please open an issue at https://github.com/svelte-add/tailwindcss/issues rather than bothering Tailwind Labs about it
|
||
|
|
...tailwindExtractor(content),
|
||
|
|
// Match Svelte class: directives (https://github.com/tailwindlabs/tailwindcss/discussions/1731)
|
||
|
|
...[...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(
|
||
|
|
([_match, group, ..._rest]) => group
|
||
|
|
),
|
||
|
|
],
|
||
|
|
},
|
||
|
|
safelist: [/^svelte-[\d\w]+$/],
|
||
|
|
},
|
||
|
|
theme: {
|
||
|
|
colors: {
|
||
|
|
transparent: "transparent",
|
||
|
|
current: "currentColor",
|
||
|
|
gray: colors.blueGray,
|
||
|
|
amber: colors.amber,
|
||
|
|
blue: colors.fuchsia,
|
||
|
|
},
|
||
|
|
extend: {},
|
||
|
|
},
|
||
|
|
variants: {
|
||
|
|
extend: {},
|
||
|
|
},
|
||
|
|
plugins: [],
|
||
|
|
};
|