Currently in the process of converting a static HTML template to Next/React, but I'm facing an issue with applying a Google font (Rajdhani) to the body. The font only seems to apply to the main tag, causing layout issues. Changing the monospace attribute in globals.css results in a Times New Roman style font appearing, indicating some change but not the desired outcome. I'm utilizing Next.js 14.2.3 with React, Tailwind, and Framer Motion for this project. While scaling works when the monospace attribute is implemented, the font itself still remains unaffected. Even after attempting to import the font via a link in the header, I've had no success. Feeling stuck and unsure of what steps to take next.
View left-layout.js | right-globals.css
The struggle continues as I strive to get the desired font working on the body rather than just on the main tag, which disrupts the overall styling.