feat: add fonts
This commit is contained in:
@@ -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
BIN
static/cal-sans.woff2
Normal file
Binary file not shown.
BIN
static/inter.woff2
Normal file
BIN
static/inter.woff2
Normal file
Binary file not shown.
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user