Skip to content

Commit

Permalink
style(content): change font family for inline code
Browse files Browse the repository at this point in the history
  • Loading branch information
hendraaagil committed Aug 12, 2022
1 parent 080d003 commit 18ea815
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/blog/MarkdownComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const MarkdownComponent = ({ markdownContent }) => {
<ReactMarkdown
remarkPlugins={[gfm]}
rehypePlugins={[rehypePrism]}
className="article-container"
components={{
a: ({ children, href }) => (
<Link
Expand Down
1 change: 1 addition & 0 deletions src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { AnimatePresence, motion } from 'framer-motion';
import SEO from 'next-seo.config';
import theme from '@/styles/theme';
import GlobalStyle from '@/styles/style';
import '@/styles/css/globals.css';
import '@/styles/css/nprogress.css';
import '@/styles/css/prism-one-dark.css';

Expand Down
5 changes: 5 additions & 0 deletions src/styles/css/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.article-container > p > code {
font-family: 'Fira Code', SFMono-Regular, Menlo, Monaco, Consolas,
'Liberation Mono', 'Courier New', monospace;
font-weight: 500;
}

1 comment on commit 18ea815

@vercel
Copy link

@vercel vercel bot commented on 18ea815 Aug 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.