There are situations when you are using css modules inside you project, but you need to disable them in specific places (for example, when importing css from 3rd party vendor).
In those cases you can wrap your css with :global
:
:global {
.global-class-name {
color: green;
}
}
Please find more details here.
In case you want to import a css from your node modules, just @import
it inside your scss file, and wrap it with :global
:
Importing style.scss from '3rd-party-module/x/style.scss':
@import '3rd-party-module/x/style.scss'
In case you are importing a regular 'css' file, just omit file extension:
@import '3rd-party-module/x/style'