Skip to content

Commit 500239f

Browse files
committed
Add base font
1 parent 402b2ed commit 500239f

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<link href="https://fonts.googleapis.com/css?family=Rubik:500,700" rel="stylesheet">
1+
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">

frontend/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="theme-color" content="#000000">
77

88
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
9-
<link href="https://fonts.googleapis.com/css?family=Rubik:500,700" rel="stylesheet">
9+
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Rubik:500,700" rel="stylesheet">
1010

1111
<!--
1212
Notice the use of %PUBLIC_URL% in the tags above.

frontend/src/components/typography/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const BaseTypography = styled<TypographyProps, 'h1'>('h1')`
3636
`;
3737

3838
interface TitleProps {
39-
level: 1 | 2 | 3 | 4 | 5 | 6;
39+
level: 1 | 2 | 3;
4040
children: React.ReactNode;
4141
}
4242

@@ -62,8 +62,10 @@ const BaseTitle = ({
6262
export const Title = withTheme<TitleProps, Theme>(BaseTitle);
6363

6464
const BaseParagraph = withProps({
65+
fontFamily: 'base',
6566
fontSize: 'body',
66-
lineHeight: 'body'
67+
lineHeight: 'body',
68+
mb: 3
6769
})(BaseTypography.withComponent('p'));
6870

6971
export const Paragraph = withTheme<{}, Theme>(BaseParagraph);

frontend/src/theme/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ const borders = [0, '1px solid', '2px solid'];
4141
const shadows = [`0 1px 2px 0 ${colors.text}`, `0 1px 4px 0 ${colors.text}`];
4242

4343
const fonts = {
44-
title: 'Rubik'
44+
title: 'Rubik',
45+
base: 'Roboto Mono',
4546
};
4647

4748
export const theme = {

0 commit comments

Comments
 (0)