Skip to content

Commit

Permalink
improve(design): Custom colorTextQuaternary token for icon of ColorPi…
Browse files Browse the repository at this point in the history
…cker, Input, Select and Mentions
  • Loading branch information
dengfuping committed Jul 24, 2024
1 parent 69f6889 commit 2e74b3f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/design/src/theme/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { formatTheme } from './util/format';
// Calculated by colorBorder and getWeakenBorderColor()
const tagColorBorder = '#cdd5e466';

const colorIcon = '#5c6b8a';

const defaultTheme: ThemeConfig = {
token: {
colorPrimaryBg: '#EAF1FF',
Expand Down Expand Up @@ -70,7 +72,7 @@ const defaultTheme: ThemeConfig = {
colorFillTertiary: '#f3f6fc',
colorFillSecondary: '#e2e8f3',
colorFill: '#cdd5e4',
colorIcon: '#5c6b8a',
colorIcon,
colorBgMask: 'rgba(19, 32, 57, 0.45)',
colorBgElevated: '#ffffff',
colorBgSpotlight: '#ffffff',
Expand All @@ -88,9 +90,21 @@ const defaultTheme: ThemeConfig = {
// fontHeight is internal token
fontHeight: 20,
},
ColorPicker: {
// customize icon color
colorTextQuaternary: colorIcon,
},
Input: {
// customize icon color
colorTextQuaternary: colorIcon,
},
InputNumber: {
handleVisible: true,
},
Mentions: {
// customize icon color
colorTextQuaternary: colorIcon,
},
Radio: {
// temporarily fix style for checked disabled Radio.Button
controlItemBgActiveDisabled: '#e2e8f3',
Expand All @@ -100,6 +114,8 @@ const defaultTheme: ThemeConfig = {
multipleItemBg: '#F8FAFE',
multipleItemBorderColor: tagColorBorder,
multipleItemBorderColorDisabled: tagColorBorder,
// customize icon color
colorTextQuaternary: colorIcon,
},
Tag: {
colorBorder: tagColorBorder,
Expand Down

0 comments on commit 2e74b3f

Please sign in to comment.