Skip to content

Commit 228feeb

Browse files
committed
fix: restore inline code font size
1 parent 0557aba commit 228feeb

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/components/MDX/Sandpack/Themes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const CustomTheme = {
4444
mono: tailwindConfig.theme.extend.fontFamily.mono
4545
.join(', ')
4646
.replace(/"/gm, ''),
47-
size: tailwindConfig.theme.extend.fontSize.code,
47+
size: tailwindConfig.theme.extend.fontSize['sandpack-code'],
4848
lineHeight: '24px',
4949
},
5050
};

src/styles/index.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,6 @@
463463
color: #58c4dc !important; /* blue-40 */
464464
}
465465

466-
.text-code {
467-
font-size: calc(1em - 10%) !important;
468-
}
469-
470466
.text-gradient {
471467
background-clip: text;
472468
-webkit-background-clip: text;

tailwind.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ module.exports = {
102102
base: '15px',
103103
sm: '13px',
104104
xs: '11px',
105-
code: 'calc(1em - 20%)',
105+
code: 'calc(1em - 10%)',
106+
'sandpack-code': 'calc(1em - 20%)',
106107
},
107108
animation: {
108109
marquee: 'marquee 40s linear infinite',

0 commit comments

Comments
 (0)