From 12029a6d90b403a1b3c3f9b7bbd279ae83717cff Mon Sep 17 00:00:00 2001 From: Yunus M Date: Mon, 20 Nov 2023 11:22:57 +0530 Subject: [PATCH] feat: add open sans font and set font family in theme configuration (#3994) Co-authored-by: Palash Gupta --- frontend/src/container/Header/styles.ts | 2 ++ frontend/src/hooks/useDarkMode/index.tsx | 1 + frontend/src/index.html.ejs | 7 +++++++ 3 files changed, 10 insertions(+) diff --git a/frontend/src/container/Header/styles.ts b/frontend/src/container/Header/styles.ts index 31f3648da8..e856e7ba0e 100644 --- a/frontend/src/container/Header/styles.ts +++ b/frontend/src/container/Header/styles.ts @@ -3,6 +3,8 @@ import styled from 'styled-components'; export const Header = styled(Layout.Header)` background: #1f1f1f !important; + padding-left: 16px; + padding-right: 16px; `; export const Container = styled.div` diff --git a/frontend/src/hooks/useDarkMode/index.tsx b/frontend/src/hooks/useDarkMode/index.tsx index 8b58b1f77f..01e48cd0bf 100644 --- a/frontend/src/hooks/useDarkMode/index.tsx +++ b/frontend/src/hooks/useDarkMode/index.tsx @@ -74,6 +74,7 @@ export const useThemeConfig = (): ThemeConfig => { borderRadiusLG: 2, borderRadiusSM: 2, borderRadiusXS: 2, + fontFamily: 'Open Sans', }, }; }; diff --git a/frontend/src/index.html.ejs b/frontend/src/index.html.ejs index 2bbd3ed880..5351ea65af 100644 --- a/frontend/src/index.html.ejs +++ b/frontend/src/index.html.ejs @@ -61,6 +61,13 @@ rel="stylesheet" href="https://unpkg.com/uplot@1.6.26/dist/uPlot.min.css" /> + + + +