ant-design / ant-design-dark-theme

🌚 Dark theme variables of Ant Design
https://www.antdtheme.com/dark
MIT License
482 stars 34 forks source link

dark theme is overriding my classes #30

Open ericobi opened 4 years ago

ericobi commented 4 years ago

<Wrapper className="onyx-layout">

.onyx-layout { min-height: 100vh; background-color: #000; }

implemented dark-theme using craco

const CracoLessPlugin = require("craco-less");
const darkTheme = require("@ant-design/dark-theme");

module.exports = {
  plugins: [
    {
      plugin: CracoLessPlugin,
      options: {
        lessLoaderOptions: {
          lessOptions: {
            modifyVars: darkTheme,
            javascriptEnabled: true,
          },
        },
      },
    },
  ],
};

now it is.

Pasted_Image_8_2_20__9_55_AM