The way to use default colors in antd is to import '~antd/lib/style/themes/default.less' in one of your less files.
I tried to import the base color file from @import '~/antd/lib/style/color/colors'; in the theme.less but it's ignored (which I assume is normal behaviour).
Is there any other way than to compile the colors to hex and put them at the top of the file, or to import the file in my code outside theme.less (which is not optimal since I need colors to redefine some variables) ?
Hi,
The way to use default colors in antd is to import
'~antd/lib/style/themes/default.less'
in one of your less files.I tried to import the base color file from
@import '~/antd/lib/style/color/colors';
in thetheme.less
but it's ignored (which I assume is normal behaviour).Is there any other way than to compile the colors to hex and put them at the top of the file, or to import the file in my code outside
theme.less
(which is not optimal since I need colors to redefine some variables) ?