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> <html>
<head> <head>
<link rel="stylesheet" href="/uno.css"/> <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> <title>{ title }</title>
</head> </head>
<body class="bg-black"> <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(), presetIcons(),
presetTypography(), presetTypography(),
presetUno(), presetUno(),
presetWebFonts(), presetWebFonts({
provider: 'bunny',
fonts: {
sans: {
name: 'Inter',
provider: 'none'
},
cal: {
name: 'Cal Sans',
provider: 'none',
},
},
}),
], ],
transformers: [ transformers: [
transformerDirectives(), transformerDirectives(),