Export fonts variables.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Madeorsk 2024-09-26 10:48:15 +02:00
parent c156e3ac7c
commit 33b1fa2002
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F
4 changed files with 14 additions and 7 deletions

View file

@ -1,5 +1,5 @@
{
"version": "1.6.1",
"version": "1.6.2",
"name": "@kernelui/core",
"description": "Kernel UI Core.",
"scripts": {

View file

@ -7,13 +7,13 @@ html, body
html, body, input, button, textarea
{
font-size: 1em;
font-family: @sans-serif-fonts;
font-family: var(--sans-serif-fonts);
font-weight: 500;
}
pre, code
{
font-family: @monospace-fonts;
font-family: var(--monospace-fonts);
}
body

View file

@ -2,6 +2,13 @@
@import "@fontsource-variable/source-serif-4";
@import "@fontsource-variable/jetbrains-mono";
@sans-serif-fonts: "Manrope Variable", sans-serif;
@serif-fonts: "Source Serif 4 Variable", serif;
@monospace-fonts: "Jetbrains Mono Variable", monospace;
:root
{
@sans-serif-fonts: "Manrope Variable", sans-serif;
@serif-fonts: "Source Serif 4 Variable", serif;
@monospace-fonts: "Jetbrains Mono Variable", monospace;
--sans-serif-fonts: @sans-serif-fonts;
--serif-fonts: @serif-fonts;
--monospace-fonts: @monospace-fonts;
}

View file

@ -13,7 +13,7 @@
color: var(--primary);
font-family: @monospace-fonts;
font-family: var(--monospace-fonts);
font-size: 1.5em;
font-weight: 700;
vertical-align: baseline;