13 lines
272 B
TypeScript
13 lines
272 B
TypeScript
import { Chalk } from 'chalk'
|
|
import colors from './src/palette'
|
|
import Color from './src/helpers/color'
|
|
|
|
const chalk = new Chalk({ level: 3 })
|
|
|
|
function log(color: Color) {
|
|
console.log(
|
|
chalk.hex(color.toHex()).underline('Hello, world!')
|
|
)
|
|
}
|
|
|
|
colors.forEach(log)
|