Skip to content

Commit

Permalink
Updated PT Serif font for post content
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyvugithub committed Mar 23, 2021
1 parent b13bde5 commit f42314a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "next start -p 8000"
},
"dependencies": {
"@fontsource/pt-serif": "^4.2.2",
"@fontsource/spartan": "^4.2.1",
"@material-ui/core": "^4.11.2",
"@material-ui/icons": "^4.11.2",
Expand Down
1 change: 1 addition & 0 deletions src/web/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ThemeContext } from '../components/ThemeProvider';

import '../styles/globals.css';
import '@fontsource/spartan';
import '@fontsource/pt-serif';

// Reference: https://github.com/mui-org/material-ui/blob/master/examples/nextjs/pages/_app.js
const App = ({ Component, pageProps }: AppProps) => {
Expand Down
2 changes: 1 addition & 1 deletion src/web/src/styles/telescope-post-content.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
overflow-wrap: break-word;
word-wrap: break-word;
hyphens: auto;
font-family: Spartan, sans-serif;
font-family: PT-Serif, sans-serif;
}

.telescope-post-content p {
Expand Down

0 comments on commit f42314a

Please sign in to comment.