Styling, fonts and scripts
Tailwind compiled for you, self-hosted fonts, and Alpine or small scripts for interactivity.
Tailwind
Put assets/tailwind.css in the site and the platform compiles assets/app.css from it every time you save. The input file itself isn't published. It must name its sources, because the platform's working folders are hidden from Tailwind's automatic detection.
@import "tailwindcss";
@source "../views";
@theme {
--color-ink: #1d2433;
--font-serif: "Newsreader", Georgia, serif;
}
Link it with $site->asset('app.css'), which adds a version stamp so a new stylesheet shows at once. Plain CSS works too: any file in assets/ is published as it is.
Fonts
Self-host fonts in assets/fonts/ with @font-face. Don't load Google Fonts or any other font CDN: it discloses visitors' IP addresses to a third party, which German courts have held to breach GDPR.
Interactivity
Use Alpine.js or small scripts served from assets/.
Addresses
Use root-relative addresses (/assets/…, /media/…), never a full domain. That's what lets the same files work in previews, on the live domain and in the client's export.