How to use the antd-theme-generator.getLessVars function in antd-theme-generator

To help you get started, we’ve selected a few antd-theme-generator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mzohaibqc / antd-theme-generator / examples / create-react-app / config-overrides.js View on Github external
module.exports = function override(config, env) {
  config = injectBabelPlugin(
    ['import', { libraryName: 'antd', style: true }],
    config
  );
  config = rewireLess.withLoaderOptions({
    modifyVars: getLessVars(path.join(__dirname, './src/styles/vars.less')),
    javascriptEnabled: true
  })(config, env);
  return config;
};

antd-theme-generator

This a script to generate color specific styles less file and which you can use to change theme dynamically in browser

ISC
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis