TTY color toolkit supporting Truecolor (24bit RGB)
npm install trucolor![TruColor][logo]
> A node module and CLI utility for using 24bit color SGR codes in modern terminals.
##### Publishing Status
 
 
##### Development Status
 
  
##### Documentation/Help

> v4 Breaking change The CLI command has been seperated into it's own repo [trucolor-cli][2]
#### Installation
``shell`
npm install --save @thebespokepixel/trucolor
`javascript
import {trucolor, palette, chalkish, simple} from 'trucolor'
const simpleColor = trucolor('bright red')
console.log(${simpleColor.in}simpleColor${simpleColor.out})
const simplePalette = simple()
console.log(${simplePalette.red}simplePalette Red${simplePalette.red.out})${simplePalette.blue}simplePalette Blue${simplePalette.blue.out}
console.log()
const myPalette = palette({}, {
red: '#F00',
blue: 'lighten 30 blue'
})
console.log(${myPalette.red}myPalette Red${myPalette.red.out})${myPalette.blue}myPalette Blue${myPalette.blue.out}
console.log()
const myChalkishPalette = chalkish(palette({}, {
red: '#F00',
blue: 'lighten 30 blue'
}))
console.log(myChalkishPalette.red('myChalkishPalette Red'))
console.log(myChalkishPalette.blue('myChalkishPalette Blue'))
``
See [es-tinycolour][3] for complete colour input syntax.
[1]: https://thebespokepixel.github.io/trucolor/
[2]: https://github.com/thebespokepixel/trucolor-cli
[3]: https://github.com/thebespokepixel/es-tinycolor
[logo]: https://raw.githubusercontent.com/thebespokepixel/trucolor/master/media/banner.png