-
Notifications
You must be signed in to change notification settings - Fork 0
/
craco.config.js
39 lines (38 loc) · 1.1 KB
/
craco.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const CracoLessPlugin = require('craco-less');
const { getThemeVariables } = require('antd/dist/theme');
const path = require('path');
module.exports = {
webpack: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
// ant design theme
plugins: [
{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: {
...getThemeVariables({
dark: false,
compact: false,
}),
'@primary-color': 'hsl(155, 80%, 70%)',
'@body-background': 'hsl(155, 12%, 10%)',
'@black': 'hsl(155, 4%, 95%)',
'@white': 'hsl(155, 12%, 10%)',
'@component-background': 'hsl(155, 10%, 15%)',
'@btn-primary-color': 'hsl(155, 12%, 10%)',
'@layout-header-background': 'hsl(155, 10%, 15%)',
'@text-color-secondary-dark': 'hsl(155, 4%, 80%)',
'@border-color-base': 'hsl(155, 6%, 60%)',
},
javascriptEnabled: true,
},
},
},
},
],
};