feat: yarn tips output now shows our true colors
This commit is contained in:
parent
95065a7592
commit
1b1dc3d234
1 changed files with 26 additions and 1 deletions
|
@ -1,5 +1,29 @@
|
|||
import chalk from 'chalk'
|
||||
export const banner = chalk.magenta.bold(`
|
||||
|
||||
const color = (hex, txt) => chalk.hex(hex).bold(txt)
|
||||
const red = (txt) => color('#EF4444', txt)
|
||||
const orange = (txt) => color('#F97316', txt)
|
||||
const yellow = (txt) => color('#FACC15', txt)
|
||||
const green = (txt) => color('#84CC16', txt)
|
||||
const blue = (txt) => color('#3B82F61', txt)
|
||||
const violet = (txt) => color('#8B5CF6', txt)
|
||||
const tblue = (txt) => color('#77cbf9', txt)
|
||||
const tpink = (txt) => color('#ecadb9', txt)
|
||||
const white = (txt) => color('#ffffff', txt)
|
||||
const text = (txt) => chalk.hex('#cccccc').dim(txt)
|
||||
|
||||
const nl = "\n"
|
||||
|
||||
export const banner = nl +
|
||||
red(' ___ ')+yellow(' ___')+blue(' _')+nl+
|
||||
red(' | __| _')+orange(' ___ ___')+yellow('/ __|')+green(' _____ _')+blue('_ _(_)')+violet('_ _ __ _')+nl+
|
||||
red(` | _| '_/`)+orange(' -_) -_)')+yellow('__ \\')+green('/ -_) V ')+blue(' V / |')+violet(` ' \\/ _\` |`)+nl+
|
||||
red(` |_||_|`)+orange(` \\___\\___`)+yellow(`|___/`)+green(`\\___|\\_/`)+blue(`\\_/|_|`)+violet(`_||_\\__, |`)+nl+
|
||||
text(` Come for the sewing patterns `)+violet(` |___/`)+nl+
|
||||
text(` Stay for the `)+tblue('co')+tpink('mm')+white('u')+tpink('ni')+tblue('ty')+nl
|
||||
|
||||
|
||||
export const plainBanner = chalk.magenta.bold(`
|
||||
___ ___ _
|
||||
| __| _ ___ ___/ __| _____ __ _(_)_ _ __ _
|
||||
| _| '_/ -_) -_)__ \\/ -_) V V / | ' \\/ _\` |
|
||||
|
@ -7,3 +31,4 @@ export const banner = chalk.magenta.bold(`
|
|||
Come for the sewing patterns |___/
|
||||
Stay for the community`)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue