From 7b7536d702d57bf94f05a185941edf960b86ac38 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Tue, 6 Feb 2024 11:04:43 +0530 Subject: [PATCH] fix: tailwind configs for trunk build --- .gitignore | 1 - index.html | 2 +- styles/tailwind.css | 3 +++ tailwind.config.js | 24 ++++++++++++------------ 4 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 styles/tailwind.css 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: [], };