Global CSS import
See original GitHub issueHi, i just added a top-level global style import like said in doc
styles: ['/assets/css/global.css']
I tried both with /assets/css/global.css
putting the file inside static/assets/css
and with /global.css
putting the css at the catalog root. But nothing seems to work.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Basic Features: Built-in CSS Support - Next.js
Next.js allows you to import CSS files from a JavaScript file. This is possible because Next.js extends the concept of import beyond JavaScript....
Read more >Standard Styling with Global CSS Files - Gatsby
Traditionally, websites are styled using global CSS files. ... Importing CSS files into components; Adding classes to components; Limitations.
Read more >import - CSS: Cascading Style Sheets - MDN Web Docs
The @import CSS at-rule is used to import style rules from other valid stylesheets. An @import rule must be defined at the top...
Read more >Global vs. Local Styling In Next.js - Smashing Magazine
The answer is surprisingly simple — to write well-structured CSS that balances global and local styling concerns.
Read more >RFC: Global CSS Imports #27953 - vercel/next.js - GitHub
It's possible for a dependency to import global CSS, even though this is not valid JavaScript and can't run in the browser or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found a workaround by importing the css inside the
catalog/index.js
.The way descriped inside the doc it still does not work.
As a workaround, you can do what @equinusocio mentioned in https://github.com/interactivethings/catalog/issues/350#issuecomment-358768490 or add this to the
catalog/index.html
: