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

Changing the antd styles #18

Open
zakum1 opened this issue May 12, 2019 · 0 comments
Open

Changing the antd styles #18

zakum1 opened this issue May 12, 2019 · 0 comments

Comments

@zakum1
Copy link

zakum1 commented May 12, 2019

This is an awesome starter template, thanks. In my app, I would like to change the basic antd styles (just overriding the less variables for now)

Based on this post: https://stackoverflow.com/questions/51831582/change-the-theme-of-antd-when-using-gatsbyjs, I have added these plugins:

gatsby-plugin-less
gatsby-plugin-antd

And I have added this config to gatsby-config.js:

  plugins: [
    {
      resolve: 'gatsby-plugin-antd',
      options: {
        style: true
      }
    },
    {
      resolve: "gatsby-plugin-less",
      options: {
        javascriptEnabled: true,
        modifyVars: {
          "primary-color": "#f7525d",
          "heading-color": "#777777"
        }
      }
    },

But the primary-color, is not changing. What is the right way to do this?

@zakum1 zakum1 changed the title Changing the ant styles Changing the antd styles May 12, 2019
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