fix(cli/init): terminal message has not enough contrast (#2786)

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/2787/head
btea 1 year ago committed by GitHub
parent e0be677554
commit 4d9d977519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -42,6 +42,9 @@ if (!command || command === 'dev') {
)
process.exit(1)
})
} else if (command === 'init') {
createLogger().info('', { clear: true })
init()
} else {
logVersion()
if (command === 'build') {
@ -56,8 +59,6 @@ if (!command || command === 'dev') {
)
process.exit(1)
})
} else if (command === 'init') {
init()
} else {
createLogger().error(c.red(`unknown command "${command}".`))
process.exit(1)

@ -9,7 +9,7 @@ import {
} from '@clack/prompts'
import fs from 'fs-extra'
import path from 'path'
import { black, cyan, bgCyan, bold, yellow } from 'picocolors'
import { cyan, bold, yellow } from 'picocolors'
import { fileURLToPath } from 'url'
import template from 'lodash.template'
@ -29,7 +29,7 @@ export interface ScaffoldOptions {
}
export async function init() {
intro(bgCyan(bold(black(' Welcome to VitePress! '))))
intro(bold(cyan(' Welcome to VitePress! ')))
const options: ScaffoldOptions = await group(
{

Loading…
Cancel
Save