I have a variable in my Card.module.scss and use this code to export it make it available to my React components:
$max-width: 100%;
:export {
maxWidth: $max-width
}
I import this and the rest of the styles with:
import styles from "../styles/Card.module.scss"
and I'm able to access this value using styles.maxWidth, but I don't know how to change the value.
I know it would be easier to use CSS custom properties, but that would not work in modules, as it would not be a pure selector.