@electerm/antd-dark-theme

antd dark theme config. It is used in webpack less loader for antd user. Visit antd docs for more detail.

Usage no npm install needed!

<script type="module">
  import electermAntdDarkTheme from 'https://cdn.skypack.dev/@electerm/antd-dark-theme';
</script>

README

antd-dark-theme

antd dark theme config. It is used in webpack less loader for antd user. Visit antd docs for more detail.

Use

npm i -D @electerm/antd-dark-theme
// for webpack config
const theme = require('@electerm/antd-dark-theme')
...
  module: {
    rules: [
      {
        test: /\.less$/,
        use: [
          {
            loader: MiniCssExtractPlugin.loader,
            options: {
              // you can specify a publicPath here
              // by default it use publicPath in webpackOptions.output
              publicPath: '../'
            }
          },
          {
            loader: 'css-loader'
          },
          {
            loader: 'less-loader',
            options: {
              javascriptEnabled: true,
              modifyVars: theme
            }
          }
        ]
      },

Realworld Uses

License

MIT