diff --git a/.gitignore b/.gitignore index 3c115b5..e889270 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ # production /dist -/styles/tailwind.css # misc .DS_Store diff --git a/index.html b/index.html index 7099b37..d272d9a 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - Trunk | Yew | Tailwind + seal.devcomp.xyz diff --git a/styles/tailwind.css b/styles/tailwind.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/styles/tailwind.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/tailwind.config.js b/tailwind.config.js index 5687089..8115330 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,15 +1,15 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - purge: { - mode: "all", - content: [ - "./src/**/*.rs", - "./src/**/*.html", - "./public/index.html", - "./styles/*.css", - ], - }, - theme: {}, - variants: {}, - plugins: [], + mode: "jit", + content: { + files: ["src/**/*.rs", "src/**/*.html", "index.html", "styles/*.css"] + }, + darkMode: "media", // 'media' or 'class' + theme: { + extend: {}, + }, + variants: { + extend: {}, + }, + plugins: [], };