fix: remove preconnect font links (#1798)

This commit is contained in:
Ephraim Duncan
2025-06-18 02:42:54 +00:00
committed by GitHub
parent 484f6c8b85
commit 039cd7d449
8 changed files with 18 additions and 23 deletions

View File

@ -1,19 +1,30 @@
@import '@documenso/ui/styles/theme.css'; @import '@documenso/ui/styles/theme.css';
/* Inter Variable Fonts */
@font-face { @font-face {
font-family: 'Inter'; font-family: 'Inter';
src: url('/public/fonts/inter-regular.ttf') format('ttf'); src: url('/fonts/inter-variablefont_opsz,wght.ttf') format('truetype-variations');
/* font-weight: 400; font-weight: 100 900;
font-style: normal; font-style: normal;
font-display: swap; */ font-display: swap;
} }
/* Inter Italic Variable Fonts */
@font-face {
font-family: 'Inter';
src: url('/fonts/inter-italic-variablefont_opsz,wght.ttf') format('truetype-variations');
font-weight: 100 900;
font-style: italic;
font-display: swap;
}
/* Caveat Variable Font */
@font-face { @font-face {
font-family: 'Caveat'; font-family: 'Caveat';
src: url('/public/fonts/caveat.ttf') format('ttf'); src: url('/fonts/caveat-variablefont_wght.ttf') format('truetype-variations');
/* font-weight: 400; font-weight: 400 600;
font-style: normal; font-style: normal;
font-display: swap; */ font-display: swap;
} }
@layer base { @layer base {

View File

@ -36,23 +36,7 @@ const { trackPageview } = Plausible({
trackLocalhost: false, trackLocalhost: false,
}); });
export const links: Route.LinksFunction = () => [ export const links: Route.LinksFunction = () => [{ rel: 'stylesheet', href: stylesheet }];
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
{
rel: 'preconnect',
href: 'https://fonts.gstatic.com',
crossOrigin: 'anonymous',
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Caveat:wght@400..600&display=swap',
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap',
},
{ rel: 'stylesheet', href: stylesheet },
];
export function meta() { export function meta() {
return appMetaTags(); return appMetaTags();

Binary file not shown.

Binary file not shown.

Binary file not shown.