Fix slider colors

This commit is contained in:
Muaz Ahmad 2024-11-04 15:09:49 +05:00
parent bbb23916c9
commit df14812fa7
2 changed files with 10 additions and 0 deletions

View file

@ -43,6 +43,11 @@ export const AntdTheme: FC<AntdThemeProps> = ({ children }) => {
Tag: { Tag: {
defaultBg: readCSSVar('--tag-default-color'), defaultBg: readCSSVar('--tag-default-color'),
}, },
Slider: {
trackBg: readCSSVar('--theme-color-action-hover'),
handleColor: readCSSVar('--theme-color-action-hover'),
handleActiveColor: readCSSVar('--primary-color'),
},
borderRadius: parseInt(readCSSVar('--border-radius-base'), 10), borderRadius: parseInt(readCSSVar('--border-radius-base'), 10),
// background-color-light needs mapping // background-color-light needs mapping

View file

@ -33,6 +33,11 @@ const AntdDefaultCustomTokens = {
Tag: { Tag: {
defaultBg: '#6544e9', defaultBg: '#6544e9',
}, },
Slider: {
trackBg: '#7a5cf3',
handleColor: '#7a5cf3',
handleActiveColor: '#6544e9',
},
borderRadius: 5, borderRadius: 5,
colorPrimary: '#6544e9', colorPrimary: '#6544e9',
colorPrimaryHover: '#6544e9', colorPrimaryHover: '#6544e9',