💄(fonts) use system fonts as default
We don't really need Source Sans as default, system font is enough
This commit is contained in:
committed by
aleb_the_flash
parent
bbd700270f
commit
ba286724f3
@@ -190,8 +190,6 @@ const config: Config = {
|
||||
fonts: {
|
||||
sans: {
|
||||
value: [
|
||||
'Source Sans',
|
||||
'Source Sans fallback',
|
||||
'ui-sans-serif',
|
||||
'system-ui',
|
||||
'-apple-system',
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,43 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'Source Sans';
|
||||
src: url('/fonts/sourcesans3-regular-subset.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Sans';
|
||||
src: url('/fonts/sourcesans3-it-subset.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Sans';
|
||||
src: url('/fonts/sourcesans3-bold-subset.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
src: url('/fonts/sourcecodepro-regular-subset.woff2') format('woff2');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/*
|
||||
* to reduce CLS
|
||||
* values taken from https://github.com/khempenius/font-fallbacks-dataset/blob/main/font-metric-overrides.csv#L2979
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'Source Sans fallback';
|
||||
src: local('Arial');
|
||||
ascent-override: 98.4%;
|
||||
descent-override: 27.3%;
|
||||
line-gap-override: 0%;
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
@import './fonts.css';
|
||||
@import './livekit.css';
|
||||
@layer reset, base, tokens, recipes, utilities;
|
||||
html,
|
||||
|
||||
Reference in New Issue
Block a user