Skip to content

Commit

Permalink
Prevent TW from purging highlight classes
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefreitag committed Dec 16, 2022
1 parent 0782d19 commit 899f393
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/web/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
content: ['./app/**/*.{js,ts,jsx,tsx}'],
safelist: [
{
pattern: /hljs+/,
},
],
theme: {
extend: {
typography: ({ theme }) => ({
Expand All @@ -11,8 +16,8 @@ module.exports = {
fontWeight: 'bold',
},
'h2, h3, h4, h5, h6': {
color: theme('colors.white')
}
color: theme('colors.white'),
},
},
},
}),
Expand Down

0 comments on commit 899f393

Please sign in to comment.