feat: add fonts

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-05-23 18:27:47 -03:00
parent 59d4128a1a
commit e3cbc79533
4 changed files with 23 additions and 1 deletions

View File

@@ -4,6 +4,16 @@ templ Page(title string) {
<html>
<head>
<link rel="stylesheet" href="/uno.css"/>
<style>
@font-face {
font-family: Inter;
src: url(inter.woff2);
}
@font-face {
font-family: Cal Sans;
src: url(cal-sans.woff2);
}
</style>
<title>{ title }</title>
</head>
<body class="bg-black">

BIN
static/cal-sans.woff2 Normal file

Binary file not shown.

BIN
static/inter.woff2 Normal file

Binary file not shown.

View File

@@ -23,7 +23,19 @@ export default defineConfig({
presetIcons(),
presetTypography(),
presetUno(),
presetWebFonts(),
presetWebFonts({
provider: 'bunny',
fonts: {
sans: {
name: 'Inter',
provider: 'none'
},
cal: {
name: 'Cal Sans',
provider: 'none',
},
},
}),
],
transformers: [
transformerDirectives(),