Skip to content

Commit 98bd2a7

Browse files
committed
Change only "x" display and not ":" and "="
1 parent 517abbd commit 98bd2a7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/styles/global.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
@import 'tw-animate-css';
33
@import '@fontsource-variable/inter';
44

5+
/**
6+
* Fixes display of "x" next to numbers, e.g. "rofl1qze0hqur8xf2…wu23×0zp" "×" https://rsms.me/inter/#features
7+
* Simple `font-variant-ligatures: no-contextual;` would worsen ":" and "=" vertical alignment.
8+
*/
9+
@font-face {
10+
font-family: 'Inter Variable';
11+
font-style: normal;
12+
font-display: swap;
13+
font-weight: 100 900;
14+
src: url('../../node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2') format('woff2-variations');
15+
unicode-range: U+0078; /* x */
16+
}
17+
518
@custom-variant dark (&:is(.dark *));
619
:root {
720
--default-font-family: 'Inter Variable', sans-serif;
@@ -140,8 +153,6 @@
140153

141154
body {
142155
@apply bg-background text-foreground;
143-
/* Fixes display of "x" next to numbers, e.g. "rofl1qze0hqur8xf2…wu23×0zp" "×" https://rsms.me/inter/#features */
144-
font-feature-settings: 'calt' 0;
145156
}
146157

147158
button:not([disabled]),

0 commit comments

Comments
 (0)