Top "Css-modules" questions

CSS Modules is a pre-processor that allows for emulation of local scope and control dependencies in CSS code.

How to use global variables in CSS-Modules?

I'm busy learning React with CSS-Modules and I don't quite understand how one would store variables? For example, in Sass …

reactjs webpack css-modules
Workaround to add className to Fragment in React

I am trying to create a stateless component in React with the sole purpose of acting as a reusable wrapper. …

javascript reactjs css-modules react-css-modules
CSS Modules: How do I disable local scope for a file?

I'm using CSS Modules (through Webpack css loader) in a new React project, and even though it's working great, I'm …

webpack css-modules
Sass with CSS Modules & Webpack

I've been building a project for a while using Webpack, Sass, and CSS modules. Normally in my .scss files, I …

css reactjs sass webpack css-modules
using css modules in react how can I pass a className as a prop to a component

If I have a react component and I want to pass in a className, how do I do this with …

css reactjs webpack-style-loader css-modules css-loader
Can I use css-modules with LESS + nesting?

The documentation on css-modules is pretty sparse, so I'm not sure if I can do this or not. This article …

reactjs less webpack css-modules
How to nest classes in css modules and react?

I am trying to use CSS Modules in my React project. First part of the problem is that if I …

reactjs css-modules
Styling material UI components

Not really a problem but something I’m not happy with. I'm using react + typescript + css modules + https://material-ui-next.com/. …

css reactjs typescript material-ui css-modules
CSS Modules & ReactJS: Parent and child CSS classes in different components

So I am building a react application and have a quick question. If I have two separate components: and with …

css reactjs css-modules react-css-modules
css-loader localIdentName: is a hash necessary for uniqueness?

The css-loader README suggests that localIdentName be set to '[path][name]__[local]--[hash:base64:5]' Is the hashing …

css reactjs webpack css-modules css-loader