I'm currently working on a project where I've got to import a particular scss file into one of the css files so that I can use some of the variables in it. This project uses PostCSS with a loader in webpack.
So far I've tried using an SCSS parser, but that doesn't seem to work.
The code sample below shows what I want to do to the main colors.css file:
@import "@theme-data/build/scss/variables/_darkBlueTheme.scss";
:global .lightGray {
--textColor: $colorScheme-textColor;
--graph-axis-label-color: rgba(104, 69, 69, 0.65);
--tooltip-textColor: #f5f5f5;
--tooltip-backgroundColor: #535353;
--backgroundColor: #d9d9d9;
}
Does anyone know how I can configure webpack to handle this?
Thanks a lot!