Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit debf94a

Browse files
committed
fix monospace issue
1 parent b605e54 commit debf94a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const jetBrainsMono = JetBrains_Mono({
2525
weight: ['500', '600', '700'],
2626
variable: '--font-jetbrains-mono',
2727
display: 'swap',
28+
adjustFontFallback: false,
2829
subsets: ['latin'],
2930
})
3031

tailwind.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const {
55
default: flattenColorPalette,
66
} = require('tailwindcss/lib/util/flattenColorPalette')
77

8+
import defaultTheme from 'tailwindcss/defaultTheme'
9+
810
import typographyStyles from './typography'
911

1012
const nitricColors = {
@@ -61,7 +63,7 @@ export default {
6163
fontFamily: {
6264
sans: ['var(--font-inter)'],
6365
display: ['var(--font-sora)'],
64-
mono: ['var(--font-jetbrains-mono)'],
66+
mono: ['var(--font-jetbrains-mono)', ...defaultTheme.fontFamily.mono],
6567
},
6668
boxShadow: {
6769
glow: '0 0 4px rgb(0 0 0 / 0.1)',

0 commit comments

Comments
 (0)