---
title: "Global Styles in Next.js"
description: "Ever wanted to apply global styles across your Next.js application? Here’s how!"
source: "https://www.netlify.com/blog/2020/12/09/global-styles-in-next.js/"
last_updated: "2026-07-28T17:54:43.000Z"
---
Welcome to Blogvent, day 9!

In Next.js, you have TONS of support for pretty much every styling option you’d like to use. CSS Modules, Styled JSX, Sass, Less, Stylus, Styled Components, Emotion… I could go on! If you want to style a component, Next.js has you covered.

One thing that often trips people up though is adding global styles. But luckily, the framework has you covered there, too!

In your `pages/` directory, add an `_app.js` file if you don’t already have one. Yours might look something like this:

pages/\_app.js

```
function Application({ Component, pageProps }) {  return <Component {...pageProps} />}
export default Application
```

Now, to add some simple global styles to your application, it’s as simple as importing it at this level!

```
+ import '../styles/globals.css'
function Application({ Component, pageProps }) {  return <Component {...pageProps} />}
export default Application
```

## It’s done!

You now have a global stylesheet applied to your Next.js application. If you’d like to see it in a starter application, you can [check out this repo here](https://github.com/netlify-templates/next-netlify-starter), or deploy the starter directly to Netlify with one click:

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify-templates/next-netlify-starter&utm_source=blog&utm_medium=nextstartertyling-cs&utm_campaign=devex)

If you’d like to see this applied in a more advanced application, [you can check out the repo](https://github.com/netlify/explorers/blob/main/src/pages/_app.js#L6-L8) for [Jamstack Explorers](https://www.youtube.com/@NetlifyApp/playlists?view=50&sort=dd&shelf_id=2)!

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Global Styles in Next.js&url=https://www.netlify.com/blog/2020/12/09/global-styles-in-next.js//)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2020%2F12%2F09%2Fglobal-styles-in-next.js%2F%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2020/12/09/global-styles-in-next.js//)
-   [Bluesky](https://bsky.app/intent/compose?text=Global Styles in Next.js+https://www.netlify.com/blog/2020/12/09/global-styles-in-next.js//)

* * *

### Tags

-   [Next.js](/blog/tags/next.js/)
-   [blogvent](/blog/tags/blogvent/)

## Keep reading

![](/images/blog-fallback-thumbnail.svg)

Guides & Tutorials December 1, 2020

[

### Using React Context for state management in Next.js

](/blog/2020/12/01/using-react-context-for-state-management-in-next.js/)

-   ![Profile picture of Cassidy Williams](/_astro/a62099fab0f946e063c4b84ff4b4d9c94f9aa7a5-400x400_ZdakPa.webp)
    
    Cassidy Williams
    

![](/images/blog-fallback-thumbnail.svg)

Guides & Tutorials December 2, 2020

[

### Next.js: Should I use SSR or SSG?

](/blog/2020/12/02/next.js-should-i-use-ssr-or-ssg/)

-   ![Profile picture of Cassidy Williams](/_astro/a62099fab0f946e063c4b84ff4b4d9c94f9aa7a5-400x400_ZdakPa.webp)
    
    Cassidy Williams
    

## Recent posts

Opinions & Insights July 28, 2026

[

### Open Weights and the 2nd World

](/blog/open-weights-and-the-2nd-world)

-   ![Profile picture of Mathias Biilmann](/_astro/f193d4707a6391d843d5aaa73338b5a5971ec5cc-960x960_1Yylqm.webp)
    
    Mathias Biilmann
    

Tools & Services July 28, 2026

[

### MCP goes stateless and extensible

](/blog/mcp-goes-stateless-and-extensible)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

News & Announcements July 28, 2026

[

### New Netlify projects are now private by default

](/blog/new-netlify-projects-are-now-private-by-default)

-   ![Profile picture of Taylor Barnett-Torabi](/_astro/cf4624da8c1286738397b6fecb53bad504df140b-400x400_ZsvK0s.webp)
    
    Taylor Barnett-Torabi
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)