Skip to content

Commit

Permalink
🎨 Add H5 and H6 styles (#390)
Browse files Browse the repository at this point in the history
Co-authored-by: Rowan Cockett <[email protected]>
  • Loading branch information
choldgraf and rowanc1 authored Jun 5, 2024
1 parent e3ab7cd commit cf97680
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-hotels-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@myst-theme/styles': patch
---

Add H5 and H6 styles
6 changes: 6 additions & 0 deletions styles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const themeExtensions = {
code: {
fontWeight: '400',
},
// These code before/after elements are hard coded to remove the backticks, "`", that are in by default.
'code::before': {
content: '',
},
Expand All @@ -101,6 +102,11 @@ const themeExtensions = {
marginTop: '0.25rem',
marginBottom: '0.25rem',
},
// Tailwind doesn't style h5 or h6 at all so this makes them look like headers
'h5, h6': {
color: 'var(--tw-prose-headings)',
fontWeight: '500',
},
},
},
invert: {
Expand Down

0 comments on commit cf97680

Please sign in to comment.