Browse Source

Add font families

Azat Belgibayev 3 years ago
parent
commit
b55ffb4b1f

+ 1 - 0
kafka-ui-react-app/src/theme/bulma_overrides.scss

@@ -58,6 +58,7 @@
 }
 }
 
 
 .is-family-code {
 .is-family-code {
+  font-family: 'Roboto Mono' !important;
   font-size: 0.9rem;
   font-size: 0.9rem;
   line-height: 1.5em;
   line-height: 1.5em;
 }
 }

+ 4 - 5
kafka-ui-react-app/src/theme/index.scss

@@ -4,15 +4,15 @@
 @import '~bulma-switch';
 @import '~bulma-switch';
 @import 'src/theme/bulma_overrides';
 @import 'src/theme/bulma_overrides';
 
 
+@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500&display=swap');
+
 #root,
 #root,
 body,
 body,
 html {
 html {
   width: 100%;
   width: 100%;
   position: relative;
   position: relative;
   margin: 0;
   margin: 0;
-  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
-    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
-    sans-serif;
+  font-family: 'Inter', sans-serif;
   -webkit-font-smoothing: antialiased;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   -moz-osx-font-smoothing: grayscale;
   background: repeating-linear-gradient(
   background: repeating-linear-gradient(
@@ -33,6 +33,5 @@ html {
 }
 }
 
 
 code {
 code {
-  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
-    monospace;
+  font-family: 'Roboto Mono';
 }
 }