From e3090fd4f1d3aba1b1ad9ac5a7d24a85d2fd5f6d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Sirois Date: Tue, 30 Jul 2019 20:33:58 -0400 Subject: [PATCH] feat: reimplement font smoothing --- src/globalStyles.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/globalStyles.tsx b/src/globalStyles.tsx index 074f345..3b3d0ee 100644 --- a/src/globalStyles.tsx +++ b/src/globalStyles.tsx @@ -8,12 +8,16 @@ import { export const GlobalStyles = createGlobalStyle` html { font-family: ${fontFamily.body}; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; } body { margin: 0; font-size: ${BASE_FONT_SIZE}px; line-height: ${BASE_LINE_HEIGHT}px; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } /* TODO: probably extract this */