Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dark theme is overriding my classes #30

Open
ericobi opened this issue Aug 2, 2020 · 0 comments
Open

dark theme is overriding my classes #30

ericobi opened this issue Aug 2, 2020 · 0 comments

Comments

@ericobi
Copy link

ericobi commented Aug 2, 2020

<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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant