Skip to content

Commit

Permalink
chore: improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 14, 2021
1 parent 29b87ee commit 0322e4b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/create-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ async function init() {
type: 'select',
name: 'framework',
message,
format(name) {
const framework = FRAMEWORKS.find((v) => v.name === name)
return framework
? framework.color(framework.display || framework.name)
: name
},
choices: FRAMEWORKS.map((f) => ({
name: f.name,
value: f.name,
Expand All @@ -200,6 +206,10 @@ async function init() {
const { name } = await prompt({
type: 'select',
name: 'name',
format(name) {
const variant = frameworkInfo.variants.find((v) => v.name === name)
return variant ? variant.color(variant.display || variant.name) : name
},
message: 'Select a variant:',
choices: frameworkInfo.variants.map((v) => ({
name: v.name,
Expand Down

0 comments on commit 0322e4b

Please sign in to comment.