Skip to content

Commit

Permalink
fix(cli/init): terminal message has not enough contrast (#2786)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
btea and brc-dd committed Aug 13, 2023
1 parent e0be677 commit 4d9d977
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/node/cli.ts
Expand Up @@ -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') {
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/node/init/init.ts
Expand Up @@ -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'

Expand All @@ -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(
{
Expand Down

0 comments on commit 4d9d977

Please sign in to comment.