Self host fonts

No accidental tracking for readers.
This commit is contained in:
Your Name
2026-03-17 11:43:32 +00:00
parent 68f43b84dd
commit c8bc3ea197
6 changed files with 30 additions and 3 deletions
+30
View File
@@ -100,6 +100,36 @@
/* Make LiveView wrapper divs transparent for layout */
[data-phx-session], [data-phx-teleported-src] { display: contents }
/* Self-hosted fonts — no external requests */
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 300 900;
font-display: swap;
src: url(/fonts/fraunces.woff2) format('woff2');
}
@font-face {
font-family: 'Fraunces';
font-style: italic;
font-weight: 300 900;
font-display: swap;
src: url(/fonts/fraunces-italic.woff2) format('woff2');
}
@font-face {
font-family: 'Source Sans 3';
font-style: normal;
font-weight: 300 900;
font-display: swap;
src: url(/fonts/sourcesans3.woff2) format('woff2');
}
@font-face {
font-family: 'Source Sans 3';
font-style: italic;
font-weight: 300 900;
font-display: swap;
src: url(/fonts/sourcesans3-italic.woff2) format('woff2');
}
/* Typography */
.font-display { font-family: 'Fraunces', serif; }
body { font-family: 'Source Sans 3', sans-serif; }