mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
47 lines
738 B
JavaScript
47 lines
738 B
JavaScript
import chalk from 'chalk'
|
|
|
|
/**
|
|
* Applies colors to emphasize
|
|
*
|
|
* @param {...string} msgs
|
|
*/
|
|
export function bold(...msgs) {
|
|
return chalk.bold(...msgs)
|
|
}
|
|
|
|
/**
|
|
* Applies colors to inform
|
|
*
|
|
* @param {...string} msgs
|
|
*/
|
|
export function info(...msgs) {
|
|
return chalk.bold.cyan(...msgs)
|
|
}
|
|
|
|
/**
|
|
* Applies colors to signify error
|
|
*
|
|
* @param {...string} msgs
|
|
*/
|
|
export function error(...msgs) {
|
|
return chalk.bold.red(...msgs)
|
|
}
|
|
|
|
/**
|
|
* Applies colors to represent a command
|
|
*
|
|
* @param {...string} msgs
|
|
*/
|
|
export function command(...msgs) {
|
|
return chalk.bold.magenta(...msgs)
|
|
}
|
|
|
|
/**
|
|
* Applies colors to represent a file
|
|
*
|
|
* @param {...string} msgs
|
|
*/
|
|
export function file(...msgs) {
|
|
return chalk.bold.magenta(...msgs)
|
|
}
|