-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathfonts.css
More file actions
52 lines (43 loc) · 1.69 KB
/
fonts.css
File metadata and controls
52 lines (43 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* Import the same fonts used on mintlify.com */
/* Inter Variable Font - matching the main site */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* Geist Mono for code - matching the main site */
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap');
/* Override Mintlify's default font variables to match main site */
:root {
--font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
--font-geist-mono: 'Geist Mono', 'Menlo', 'Monaco', 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace;
}
/* Apply fonts to body and common elements with explicit OpenType features */
body {
font-family: var(--font-inter);
font-feature-settings: normal; /* Ensure default character variants */
font-variant-numeric: normal;
font-variant-ligatures: normal;
}
/* Code elements */
code,
pre,
.code,
.hljs {
font-family: var(--font-geist-mono);
}
/* Ensure proper font weight and style support */
.font-inter {
font-family: var(--font-inter);
}
.font-mono {
font-family: var(--font-geist-mono);
}
/* Fix for true italics instead of synthetic slanted text */
em,
i,
.italic {
font-style: italic;
font-synthesis: none; /* Prevent synthetic italic generation */
}
/* Explicitly disable stylistic alternates that might cause character differences */
h1, h2, h3, h4, h5, h6, p, span, div {
font-feature-settings: "ss01" 0, "ss02" 0, "ss03" 0; /* Disable common stylistic sets */
font-variant-alternates: normal;
}