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",
|
"name": "@kernelui/core",
|
||||||
"description": "Kernel UI Core.",
|
"description": "Kernel UI Core.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -7,13 +7,13 @@ html, body
|
||||||
html, body, input, button, textarea
|
html, body, input, button, textarea
|
||||||
{
|
{
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
font-family: @sans-serif-fonts;
|
font-family: var(--sans-serif-fonts);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre, code
|
pre, code
|
||||||
{
|
{
|
||||||
font-family: @monospace-fonts;
|
font-family: var(--monospace-fonts);
|
||||||
}
|
}
|
||||||
|
|
||||||
body
|
body
|
||||||
|
|
|
@ -2,6 +2,13 @@
|
||||||
@import "@fontsource-variable/source-serif-4";
|
@import "@fontsource-variable/source-serif-4";
|
||||||
@import "@fontsource-variable/jetbrains-mono";
|
@import "@fontsource-variable/jetbrains-mono";
|
||||||
|
|
||||||
|
:root
|
||||||
|
{
|
||||||
@sans-serif-fonts: "Manrope Variable", sans-serif;
|
@sans-serif-fonts: "Manrope Variable", sans-serif;
|
||||||
@serif-fonts: "Source Serif 4 Variable", serif;
|
@serif-fonts: "Source Serif 4 Variable", serif;
|
||||||
@monospace-fonts: "Jetbrains Mono Variable", monospace;
|
@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);
|
color: var(--primary);
|
||||||
|
|
||||||
font-family: @monospace-fonts;
|
font-family: var(--monospace-fonts);
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
|
|
Loading…
Reference in a new issue