Question : automatic color change
Answered by : aashish-bhatt
color: parseInt(props.hexCode.replace('#', ''), 16) > 0xffffff / 1.1 ? 'black' : 'white',
Source : | Last Update : Wed, 06 Apr 22
Answered by : aashish-bhatt
color: parseInt(props.hexCode.replace('#', ''), 16) > 0xffffff / 1.1 ? 'black' : 'white',
Source : | Last Update : Wed, 06 Apr 22