Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

antd-theme-generator

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antd-theme-generator - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

5

index.js

@@ -375,3 +375,4 @@ const fs = require("fs");

color = color.replace('(', '\\(').replace(')', '\\)');
css = css.replace(new RegExp(`${color}`, "g"), varName);
// css = css.replace(new RegExp(`${color}`, "g"), varName); // Fixed bug https://github.com/mzohaibqc/antd-theme-webpack-plugin/issues/25
css = css.replace(new RegExp(`${color}` + ' *;', "g"), `${varName};`);
});

@@ -389,3 +390,3 @@

console.log(
`Theme generated successfully. OutputFile: ${outputFilePath}`
`🌈 Theme generated successfully. OutputFile: ${outputFilePath}`
);

@@ -392,0 +393,0 @@ } else {

2

package.json
{
"name": "antd-theme-generator",
"version": "1.1.6",
"version": "1.1.7",
"description": "This a script to generate color specific styles less file and which you can use to change theme dynamically in browser",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -41,3 +41,3 @@ # antd-theme-generator

Now you can update colors by updating less avriables like this
Now you can update colors by updating less variables like this

@@ -44,0 +44,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc