Fix all the build errors

This commit is contained in:
Eryn Wells 2024-06-06 20:59:24 -07:00
parent 7ba65229b6
commit 34ec240dc0
6 changed files with 63 additions and 27 deletions

22
assets/css/typography.css Normal file
View file

@ -0,0 +1,22 @@
{{/*
typography.css
Eryn Wells <eryn@erynwells.me>
vim: set sw=2 sts=2:
*/}}
{{- $fontSizeBase := 1 -}}
{{- $fontSizeUnit := "rem" -}}
{{- $fontSizeFactor := 1.200 -}}
{{- $scale := partial "size_scale.html" . -}}
:root {
{{- range $scale -}}
{{ $value := mul $fontSizeBase (math.Pow $fontSizeFactor .Value) }}
--font-size-{{ .Name }}: {{ printf "%.3f" $value }}{{ $fontSizeUnit }};
{{- end }}
}
{{ range $scale }}
.font-size-{{ .Name }} { font-size: var(--font-size-{{ .Name }}); }
{{- end }}