Relative Content

Tag Archive for reactjsnext.jstailwind-css

Broken Tailwind CSS with NextJS

I have been working on a project which uses NextJS (app router), typescript, tailwind, and all that jazz. I made some changes to one of my components, and the whole tailwind thing just kinda broke. I tried reverting the changes, but it still stuck with me and I dont know how to fix it. Here is an overview of my globals.css file:

Building next.js, react.js app won’t see general styles, why?

I spent some time to fix one issue while creating next.js, react.js app. I used npm init as a start, then I execute command like npm install tailwindcss postcss autoprefixer and npx tailwindcss init -p. Then I add start, dev, build scripts to config app file and added to tailwind.content.js file to content array path to created global.css file from core directory of project an add to this file main tailwindcss general styles. Then I put this file to main app layout.tsx throught import path.

Default font is being overridden

I am using 2 localfonts in my next.js app! 1. Circular Pro and 2. Avant Garde. Circular Pro is default while Avant Garde is for headings! I created fonts.ts and added fonts like this: