mirror of
https://github.com/apricote/ein-pfeil-am-rechten-fleck.de.git
synced 2026-02-07 10:17:00 +00:00
add sveltekit version
This commit is contained in:
parent
2f522be388
commit
d1c0eb8d17
20 changed files with 3252 additions and 0 deletions
34
tailwind.config.cjs
Normal file
34
tailwind.config.cjs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
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: [],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue