Skip to content

介绍 ​


本文档主要用于描述 getContrastTextColor 函数的一些功能和用法。

用法 ​

typescript
import { getContrastTextColor } from 'view-shadcn-ui' 

getContrastTextColor('#fff') // => '#000'
getContrastTextColor('#000') // => '#fff'

属性 ​