You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used two plugins to setup auto import, unplugin-auto-import, unplugin-vue-components
These are my configurations and scss files. The problem is i can't able to override the theme variables.
//app.scss
// styles/element/index.scss
/* just override what you need */
@forward 'element-plus/theme-chalk/src/common/var.scss' with (
$colors: (
'primary': (
'base': green,
),
)
);
webpack.mix.js
//webpack.mix.js
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applications. By default, we are compiling the CSS
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/js/app.js', 'public/js')
.vue()
.sass('resources/css/app.scss', 'public/css') // added the theme override css here
.webpackConfig(require('./webpack.config'));
if (mix.inProduction()) {
mix.version();
}
The text was updated successfully, but these errors were encountered:
rahulpatel033
changed the title
Override themes with auto import.
Override themes with auto import
Mar 30, 2022
rahulpatel033
changed the title
Override themes with auto import
Override theme with auto import
Mar 30, 2022
Used two plugins to setup auto import, unplugin-auto-import, unplugin-vue-components
These are my configurations and scss files. The problem is i can't able to override the theme variables.
The text was updated successfully, but these errors were encountered: