mirror of
https://github.com/immich-app/immich.git
synced 2026-01-28 06:37:24 -05:00
* feat(web): 2026 font * chore: docs font * spacing tweak * tweak minimum font weight and update ui lib * small tweaks * docs: small tweaks * more tweaks
13 lines
525 B
TypeScript
13 lines
525 B
TypeScript
import GoogleSans from '$lib/assets/fonts/GoogleSans/GoogleSans.ttf?url';
|
|
import GoogleSansCode from '$lib/assets/fonts/GoogleSansCode/GoogleSansCode.ttf?url';
|
|
import type { Handle } from '@sveltejs/kit';
|
|
|
|
// only used during the build to replace the variables from app.html
|
|
export const handle = (async ({ event, resolve }) => {
|
|
return resolve(event, {
|
|
transformPageChunk: ({ html }) => {
|
|
return html.replace('%app.font%', GoogleSans).replace('%app.monofont%', GoogleSansCode);
|
|
},
|
|
});
|
|
}) satisfies Handle;
|