Skip to content

Commit 4b63f4d

Browse files
committed
Update Tailwind config files
1 parent 7ae8431 commit 4b63f4d

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

packages/hyde/tailwind.config.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,18 @@ module.exports = {
5050
content: 'unset',
5151
},
5252
},
53-
code: {
53+
'code:not(pre code)': {
5454
font: 'unset',
5555
backgroundColor: '#80808033',
5656
paddingLeft: '4px',
5757
paddingRight: '4px',
5858
marginLeft: '-2px',
5959
marginRight: '1px',
60-
borderRadius: '4px'
60+
borderRadius: '4px',
61+
maxWidth: '80vw',
62+
overflowX: 'auto',
63+
verticalAlign: 'top',
64+
wordBreak: 'break-all'
6165
},
6266
'code::before': {
6367
content: 'unset',
@@ -66,10 +70,15 @@ module.exports = {
6670
content: 'unset',
6771
},
6872
pre: {
73+
backgroundColor: '#292D3E',
74+
borderRadius: '0.25rem',
75+
marginTop: '1rem',
76+
marginBottom: '1rem',
77+
overflowX: 'auto',
6978
code: {
7079
fontFamily: "'Fira Code Regular', Consolas, Monospace, 'Courier New'",
71-
}
72-
}
80+
},
81+
},
7382
},
7483
},
7584
invert: {

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ module.exports = {
100100
},
101101
},
102102

103+
// Safelist should NOT be copied to packages/hyde. It's purely for the monorepo.
103104
safelist: [
104105
'prose',
105106
'dark:prose-invert',

0 commit comments

Comments
 (0)