Skip to content

Commit

Permalink
fix(theme): Use heading specific CSS variables (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 14, 2022
1 parent d10cfbf commit 57ad685
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-nails-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"docusaurus-theme-redoc": patch
---

fix(theme): Use heading specific CSS variables
6 changes: 3 additions & 3 deletions packages/docusaurus-theme-redoc/src/redocData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const COMMON_THEME: RedocThemeOverrides = {
fontWeightRegular: 'var(--ifm-font-weight-base)',
fontWeightBold: 'var(--ifm-font-weight-bold)',
headings: {
fontFamily: 'var(--ifm-font-family-base)',
fontWeight: 'var(--ifm-font-weight-semibold)',
lineHeight: 'var(--ifm-line-height-base)',
fontFamily: 'var(--ifm-heading-font-family)',
fontWeight: 'var(--ifm-heading-font-weight)',
lineHeight: 'var(--ifm-heading-line-height)',
},
code: {
fontFamily: 'var(--ifm-font-family-monospace)',
Expand Down

0 comments on commit 57ad685

Please sign in to comment.