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
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) ?
The text was updated successfully, but these errors were encountered:
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) ?The text was updated successfully, but these errors were encountered: