Update bold body fonts to use Inter Semibold, not Medium (#41362)
This commit is contained in:
1 parent
9ac0adeab4
commit
4bef1d5004
6 files changed
+9
-4
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,19 +16,19 @@
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
// Medium (native 500, mapped to 700 so that `font-weight: bold` uses it)
|
||||
// Medium (native 600, mapped to 700 so that `font-weight: bold` uses it)
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-medium.woff2') format('woff2');
|
||||
src: url('../../fonts/inter/inter-semibold.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
// Medium Italic (native 500, mapped to 700 so that `font-weight: bold` uses it)
|
||||
// Medium Italic (native 600, mapped to 700 so that `font-weight: bold` uses it)
|
||||
@font-face {
|
||||
font-family: Inter;
|
||||
src: url('../../fonts/inter/inter-medium-italic.woff2') format('woff2');
|
||||
src: url('../../fonts/inter/inter-semibold-italic.woff2') format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
|
||||
@@ -79,6 +79,11 @@ body {
|
||||
color: var(--color-text-primary);
|
||||
text-rendering: optimizelegibility;
|
||||
|
||||
html[data-contrast='default'] & {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
// Disable kerning for Japanese text to preserve monospaced alignment for readability
|
||||
&:not(:lang(ja)) {
|
||||
font-feature-settings: 'kern';
|
||||
|
||||
Reference in new issue
Block a user