加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
colors.d.ts 1.62 KB
一键复制 编辑 原始数据 按行查看 历史
fisher 提交于 2023-01-31 14:52 . update typescript
/**
'foreground colors'
.red.green.yellow.blue.magenta.cyan.white.darkGray.black
'light foreground colors'
.lightRed.lightGreen.lightYellow.lightBlue.lightMagenta.lightCyan.lightGray
'background colors'
.bgRed.bgGreen.bgYellow.bgBlue.bgMagenta.bgCyan.bgWhite.bgDarkGray.bgBlack
'light background colors'
.bgLightRed.bgLightGreen.bgLightYellow.bgLightBlue.bgLightMagenta.bgLightCyan.bgLightGray
'styles'
.bright.dim.italic.underline.inverse // your platform should support italic
*/
export type ForegroundColors = 'red'|'green'|'yellow'|'blue'|'magenta'|'cyan'|'white'|'darkGray'|'black'|'lightRed'|'lightGreen'|'lightYellow'|'lightBlue'|'lightMagenta'|'lightCyan'|'lightGray'
export type BackgroundColors ='bgRed'|'bgGreen'|'bgYellow'|'bgBlue'|'bgMagenta'|'bgCyan'|'bgWhite'|'bgDarkGray'|'bgBlack'|'bgLightRed'|'bgLightGreen'|'bgLightYellow'|'bgLightBlue'|'bgLightMagenta'|'bgLightCyan'|'bgLightGray'
export type FontStyles='bright'|'dim'|'italic'|'underline'|'inverse'
export type NamedColorStyles = ForegroundColors | BackgroundColors | FontStyles
|`${ForegroundColors},${BackgroundColors}`
|`${ForegroundColors},${FontStyles}`
|`${BackgroundColors},${ForegroundColors}`
|`${BackgroundColors},${FontStyles}`
|`${FontStyles},${ForegroundColors}`
|`${FontStyles},${FontStyles}`
|`${ForegroundColors},${BackgroundColors},${FontStyles}`
|`${ForegroundColors},${FontStyles},${BackgroundColors}`
|`${BackgroundColors},${ForegroundColors},${FontStyles}`
|`${BackgroundColors},${FontStyles},${ForegroundColors}`
|`${FontStyles},${BackgroundColors},${FontStyles}`
|`${FontStyles},${FontStyles},${BackgroundColors}`
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化