Export fonts variables.
This commit is contained in:
parent
c156e3ac7c
commit
33b1fa2002
4 changed files with 14 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.6.1",
|
||||
"version": "1.6.2",
|
||||
"name": "@kernelui/core",
|
||||
"description": "Kernel UI Core.",
|
||||
"scripts": {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue