⊗jsnxPmStGC 51 of 57 menu

Global CSS in NextJS

Inside the app folder by default there is a globals.css file with the global CSS styles of our project.

Global styles can be imported into any layout, page, or component. Without import, they will not be applied.

Let's import the file with global styles into the main site layout:

import '@/app/globals.css';

Change your page background.

In the globals.css file, define some CSS class. Apply it in some component.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline