mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-18 20:14:32 +00:00
feat: use Inter font
This commit is contained in:
1 parent
e2706d6622
commit
8f0b35eeed
4 files changed
+25
-1
No files matched your search
Binary file not shown.
@@ -283,6 +283,20 @@
|
|||||||
|
|
||||||
<title>{{$title}}</title>
|
<title>{{$title}}</title>
|
||||||
|
|
||||||
|
{{/* Load font theme */}}
|
||||||
|
{{ $font_family := "Inter var" }}
|
||||||
|
{{ $font_file := "Inter.var.woff2" }}
|
||||||
|
{{ $font := resources.Get (printf "dist/font/%s" $font_file) }}
|
||||||
|
<style>
|
||||||
|
@font-face {
|
||||||
|
font-family: '{{$font_family}}';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 100 900;
|
||||||
|
font-display: swap;
|
||||||
|
src: url({{ $font.RelPermalink }}) format("woff2");
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
{{/* EXTENSIBILITY HOOK: HEAD-END */}}
|
{{/* EXTENSIBILITY HOOK: HEAD-END */}}
|
||||||
{{/* Deprecated custom_head hook */}}
|
{{/* Deprecated custom_head hook */}}
|
||||||
{{ if templates.Exists "partials/custom_head" }}
|
{{ if templates.Exists "partials/custom_head" }}
|
||||||
|
|||||||
@@ -28,5 +28,6 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build:blog": "npx tailwindcss -i ./assets/css/styles.css -o ../../starters/blog/assets/dist/wc.css --minify"
|
"build:blog": "npx tailwindcss -i ./assets/css/styles.css -o ../../starters/blog/assets/dist/wc.css --minify"
|
||||||
},
|
},
|
||||||
|
"browserslist": "last 2 versions",
|
||||||
"version": "0.1.0"
|
"version": "0.1.0"
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
const defaultTheme = require('tailwindcss/defaultTheme')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: ['./hugo_stats.json', './layouts/**/*.html'],
|
content: ['./hugo_stats.json', './layouts/**/*.html'],
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -6,5 +8,12 @@ module.exports = {
|
|||||||
safelist: [
|
safelist: [
|
||||||
'task-list',
|
'task-list',
|
||||||
],
|
],
|
||||||
darkMode: ['class']
|
darkMode: ['class'],
|
||||||
|
theme: {
|
||||||
|
extend: {
|
||||||
|
fontFamily: {
|
||||||
|
'sans': ['"Inter var"', ...defaultTheme.fontFamily.sans],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user