From 6e4e9d9f4fc619f8774e600f5e2d4ee88f8d0cc3 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Wed, 7 Apr 2021 22:04:06 +0100 Subject: [PATCH] Add font and global styles --- public/index.html | 5 +++++ src/GlobalStyles.tsx | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/GlobalStyles.tsx diff --git a/public/index.html b/public/index.html index ec63307..6ffea48 100644 --- a/public/index.html +++ b/public/index.html @@ -24,6 +24,11 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> + + Astrobuild diff --git a/src/GlobalStyles.tsx b/src/GlobalStyles.tsx new file mode 100644 index 0000000..99052db --- /dev/null +++ b/src/GlobalStyles.tsx @@ -0,0 +1,15 @@ +import { createGlobalStyle } from 'styled-components'; + +const GlobalStyles = createGlobalStyle` + * { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Inter', monospace; + font-size: 16px; + line-height: 1.5; + outline: none; + } +`; + +export default GlobalStyles;