@@ -46,7 +46,7 @@ import {
4646 // Tools
4747 rgba ,
4848} from '@carbon/colors' ;
49- import { adjustLightness } from '../tools' ;
49+ import { adjustLightness , adjustAlpha } from '../tools' ;
5050
5151// Background
5252export const background = gray100 ;
@@ -144,18 +144,18 @@ export const borderInverse = gray10;
144144export const borderInteractive = blue50 ;
145145
146146// border
147- export const borderDisabled = gray90 ;
147+ export const borderDisabled = adjustAlpha ( gray50 , 0.5 ) ;
148148
149149// Text
150150export const textPrimary = gray10 ;
151151export const textSecondary = gray30 ;
152- export const textPlaceholder = gray60 ;
152+ export const textPlaceholder = adjustAlpha ( textPrimary , 0.4 ) ;
153153export const textHelper = gray40 ;
154154export const textError = red30 ;
155155export const textInverse = gray100 ;
156156export const textOnColor = white ;
157- export const textOnColorDisabled = gray40 ;
158- export const textDisabled = gray70 ;
157+ export const textOnColorDisabled = adjustAlpha ( textOnColor , 0.25 ) ;
158+ export const textDisabled = adjustAlpha ( textPrimary , 0.25 ) ;
159159
160160// Link
161161export const linkPrimary = blue40 ;
@@ -169,7 +169,7 @@ export const iconPrimary = gray10;
169169export const iconSecondary = gray30 ;
170170export const iconInverse = gray100 ;
171171export const iconOnColor = white ;
172- export const iconOnColorDisabled = gray40 ;
172+ export const iconOnColorDisabled = adjustAlpha ( iconOnColor , 0.25 ) ;
173173export const iconDisabled = gray70 ;
174174
175175// Support
0 commit comments