Skip to content

Commit 647e91e

Browse files
committed
fix(ui): update CSS styles for code blocks
1 parent efcb9b7 commit 647e91e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Diff for: astro.config.mjs

+6-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ export default defineConfig({
3939
'@resvg/resvg-js',
4040
],
4141
},
42-
}
42+
},
43+
markdown: {
44+
shikiConfig: {
45+
wrap: true,
46+
},
47+
},
4348
})
4449

4550
// vite plugin to import fonts

Diff for: tailwind.config.cjs

+2-6
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,10 @@ module.exports = {
2121
'--tw-prose-headings': theme('textColor.style.primary'),
2222
'--tw-prose-bold': theme('textColor.style.primary'),
2323
'--tw-prose-quotes': theme('textColor.style.primary'),
24-
'--tw-prose-code': theme('textColor.style.primary-inverted'),
25-
'--tw-prose-pre-bg': theme('textColor.style.primary'),
24+
'--tw-prose-pre-bg': '#0d1117',
2625
code: {
2726
backgroundColor: theme('backgroundColor.style.primary'),
28-
paddingTop: '2px',
29-
paddingBottom: '5px',
30-
paddingLeft: '5px',
31-
paddingRight: '5px',
27+
padding: '5px',
3228
borderRadius: '3px',
3329
},
3430
'code::before': {

0 commit comments

Comments
 (0)