Skip to content

How can I change layout theme #6471

Answered by shadowgxq
chenxiaofie asked this question in Q&A
Discussion options

You must be logged in to vote

sir, see here
you can config in your webpack config:
// webpack.config.js
module.exports = {
rules: [{
test: /.less$/,
use: [{
loader: 'style-loader',
}, {
loader: 'css-loader', // translates CSS into CommonJS
}, {
loader: 'less-loader', // compiles Less to CSS

  • options: {
    
  •   lessOptions: {
    
  •     modifyVars: {
    
  •       'primary-color': '#1DA57A',
    
  •       'link-color': '#1DA57A',
    
  •       'border-radius-base': '2px',
    
  •     },
    
  •     javascriptEnabled: true,
    
  •   }
    
  • },
    
    }],
    // ...other rules
    }],
    // ...other config
    }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chenxiaofie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants