公告板
版本库
filestore
活动
搜索
登录
谭勇
/
bositao_web
波斯涛前端代码
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
Initial commit: bositao web (jnpf-web-monorepo-framework-v6.1)
刘光辉
4 小时以前
cf11e63b659afcc9792ab3e395f1b45d844431a8
[~tanyong/bositao_web.git]
/
packages
/
@core
/
base
/
shared
/
src
/
color
/
color.ts
1
2
3
4
5
6
7
8
9
import { TinyColor } from '@ctrl/tinycolor';
export function isDarkColor(color: string) {
return new TinyColor(color).isDark();
}
export function isLightColor(color: string) {
return new TinyColor(color).isLight();
}