Socket
Socket
Sign inDemoInstall

antd-less-to-css-variable

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    antd-less-to-css-variable

antd vue的less变量转成css variable


Version published
Maintainers
1
Install size
47.6 kB
Created

Readme

Source

less-plugin-antd-to-css-variable

转换ant design的less变量为原生css变量,方便实现主题切换以及暗黑模式

灵感来源

transform-antd-theme-variable

用法

npm install antd-less-to-css-variable

webpack 配置

```less
const LessPluginAntd2CssVariable = require('antd-less-to-css-variable').default
css: {
    loaderOptions: {
      // 给 less-loader 传递 Less.js 相关选项
      less: {
        plugins: [
          new LessPluginAntd2CssVariable(),
        ],
      }
    }
  }

FAQs

Last updated on 11 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc