Skip to content

Commit f2c36b1

Browse files
committed
chore(docs): add italic fonts
1 parent 68739b6 commit f2c36b1

File tree

6 files changed

+41
-0
lines changed

6 files changed

+41
-0
lines changed
24.5 KB
Binary file not shown.
25 KB
Binary file not shown.
25.2 KB
Binary file not shown.
25.3 KB
Binary file not shown.

apps/docs/src/components/layout/BaseLayout.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const isThemePage = Astro.url.pathname.includes('/theme');
4242

4343
<!-- Preload critical fonts for instant rendering -->
4444
<link rel="preload" href={`${base}/fonts/inter-latin-400-normal.woff2`} as="font" type="font/woff2" crossorigin />
45+
<link rel="preload" href={`${base}/fonts/inter-latin-400-italic.woff2`} as="font" type="font/woff2" crossorigin />
4546
<link rel="preload" href={`${base}/fonts/jetbrains-mono-latin-400-normal.woff2`} as="font" type="font/woff2" crossorigin />
4647
</head>
4748
<body>

apps/docs/src/styles/fonts.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,46 @@
4343
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
4444
}
4545

46+
/* Inter - Regular Italic */
47+
@font-face {
48+
font-family: 'Inter';
49+
font-style: italic;
50+
font-weight: 400;
51+
font-display: swap;
52+
src: url('/fonts/inter-latin-400-italic.woff2') format('woff2');
53+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
54+
}
55+
56+
/* Inter - Medium Italic */
57+
@font-face {
58+
font-family: 'Inter';
59+
font-style: italic;
60+
font-weight: 500;
61+
font-display: swap;
62+
src: url('/fonts/inter-latin-500-italic.woff2') format('woff2');
63+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
64+
}
65+
66+
/* Inter - Semibold Italic */
67+
@font-face {
68+
font-family: 'Inter';
69+
font-style: italic;
70+
font-weight: 600;
71+
font-display: swap;
72+
src: url('/fonts/inter-latin-600-italic.woff2') format('woff2');
73+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
74+
}
75+
76+
/* Inter - Bold Italic */
77+
@font-face {
78+
font-family: 'Inter';
79+
font-style: italic;
80+
font-weight: 700;
81+
font-display: swap;
82+
src: url('/fonts/inter-latin-700-italic.woff2') format('woff2');
83+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
84+
}
85+
4686
/* JetBrains Mono - Regular */
4787
@font-face {
4888
font-family: 'JetBrains Mono';

0 commit comments

Comments
 (0)