feat: add fonts
This commit is contained in:
@@ -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
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(),
|
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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user