Overview - Global CSS
What is it?
Global CSS means styles that apply to the entire website or app, not just one part. In Next.js, you can add CSS files that affect all pages and components. This helps keep a consistent look and feel everywhere. Global CSS is different from styles that only affect a single component.
Why it matters
Without global CSS, every part of a website would look different and inconsistent, making it confusing for users. Global CSS solves this by letting developers set common colors, fonts, and layouts once, so they apply everywhere. This saves time and makes the site easier to maintain and update.
Where it fits
Before learning global CSS, you should understand basic CSS and how Next.js handles components. After mastering global CSS, you can learn about CSS Modules and styled components for more specific styling. This fits early in styling Next.js apps, before advanced styling techniques.