Skip to content

Commit c2b8960

Browse files
authored
Update font (#1108)
* add InterVariable font * Delete fonts.css * set font family * Revert "Delete fonts.css" This reverts commit afd3156. * update fonts.css * disable OpenType alternates that make Cs and As weird * remove unused font file
1 parent 3766296 commit c2b8960

File tree

1 file changed

+48
-20
lines changed

1 file changed

+48
-20
lines changed

fonts.css

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,52 @@
1-
/*
2-
* Adding Inter Variable from Adobe Fonts
3-
* © 2009-2025 Adobe Systems Incorporated. All Rights Reserved.
4-
*/
5-
6-
@import url('https://p.typekit.net/p.css?s=1&k=zmy3zmk&ht=tk&f=55314&a=164646275&app=typekit&e=css');
7-
8-
@font-face {
9-
font-family: 'inter-variable';
10-
src: url('https://use.typekit.net/af/250efc/00000000000000007750957d/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3')
11-
format('woff2'),
12-
url('https://use.typekit.net/af/250efc/00000000000000007750957d/31/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3')
13-
format('woff'),
14-
url('https://use.typekit.net/af/250efc/00000000000000007750957d/31/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3')
15-
format('opentype');
16-
font-display: auto;
17-
font-style: normal;
18-
font-weight: 100 900;
19-
font-stretch: normal;
1+
/* Import the same fonts used on mintlify.com */
2+
3+
/* Inter Variable Font - matching the main site */
4+
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
5+
6+
/* Geist Mono for code - matching the main site */
7+
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap');
8+
9+
/* Override Mintlify's default font variables to match main site */
10+
:root {
11+
--font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
12+
--font-geist-mono: 'Geist Mono', 'Menlo', 'Monaco', 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace;
2013
}
2114

15+
/* Apply fonts to body and common elements with explicit OpenType features */
2216
body {
23-
font-family: 'inter-variable', sans-serif;
17+
font-family: var(--font-inter);
18+
font-feature-settings: normal; /* Ensure default character variants */
19+
font-variant-numeric: normal;
20+
font-variant-ligatures: normal;
21+
}
22+
23+
/* Code elements */
24+
code,
25+
pre,
26+
.code,
27+
.hljs {
28+
font-family: var(--font-geist-mono);
29+
}
30+
31+
/* Ensure proper font weight and style support */
32+
.font-inter {
33+
font-family: var(--font-inter);
34+
}
35+
36+
.font-mono {
37+
font-family: var(--font-geist-mono);
38+
}
39+
40+
/* Fix for true italics instead of synthetic slanted text */
41+
em,
42+
i,
43+
.italic {
44+
font-style: italic;
45+
font-synthesis: none; /* Prevent synthetic italic generation */
46+
}
47+
48+
/* Explicitly disable stylistic alternates that might cause character differences */
49+
h1, h2, h3, h4, h5, h6, p, span, div {
50+
font-feature-settings: "ss01" 0, "ss02" 0, "ss03" 0; /* Disable common stylistic sets */
51+
font-variant-alternates: normal;
2452
}

0 commit comments

Comments
 (0)