The Tailwind CDN script (JIT compiler) did not regenerate CSS for utility classes unique to pages reached via LiveView navigation. Classes only present on target pages had no CSS when navigating without a full page reload. Fix: pre-compile Tailwind + DaisyUI to a static CSS file (62KB) using Tailwind CLI. All classes are available regardless of how the page content is loaded.
15 lines
239 B
JavaScript
15 lines
239 B
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
content: [
|
|
"./templates/**/*.html",
|
|
"./app/**/*.py",
|
|
],
|
|
theme: {
|
|
extend: {},
|
|
},
|
|
plugins: [require("daisyui")],
|
|
daisyui: {
|
|
themes: ["light"],
|
|
},
|
|
}
|