mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
47 lines
1.2 KiB
CSS
47 lines
1.2 KiB
CSS
/* 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");
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* Ensure proper font weight and style support */
|
|
.font-inter {
|
|
font-family: var(--font-inter);
|
|
}
|
|
|
|
/* 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;
|
|
}
|