css: route palette + body typography through hive-fr0nt::BASE_CSS

This commit is contained in:
müde 2026-05-17 11:47:45 +02:00
parent 7fc3e81062
commit e283e39949
7 changed files with 28 additions and 43 deletions

View file

@ -162,10 +162,15 @@ async fn serve_index() -> impl IntoResponse {
}
async fn serve_css() -> impl IntoResponse {
(
[("content-type", "text/css")],
// Prepend the shared palette/typography so per-page styles only need
// to declare what's actually page-specific. One HTTP request, no
// per-asset cache to invalidate.
let body = format!(
"{}\n{}",
hive_fr0nt::BASE_CSS,
include_str!("../assets/agent.css"),
)
);
([("content-type", "text/css")], body)
}
async fn serve_app_js() -> impl IntoResponse {