fix: tailwind configs for trunk build

This commit is contained in:
Erica Marigold 2024-02-06 11:04:43 +05:30
parent 463a2d6c00
commit 7b7536d702
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1
4 changed files with 16 additions and 14 deletions

1
.gitignore vendored
View file

@ -1,6 +1,5 @@
# production
/dist
/styles/tailwind.css
# misc
.DS_Store

View file

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Trunk | Yew | Tailwind</title>
<title>seal.devcomp.xyz</title>
<link data-trunk rel="tailwind-css" href="styles/tailwind.css"/>
<link data-trunk rel="css" href="styles/globals.css"/>

3
styles/tailwind.css Normal file
View file

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View file

@ -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: [],
};