Skip to content

Commit

Permalink
fix: improve init choice design (#2314)
Browse files Browse the repository at this point in the history
Before:

<img width="528" alt="Screenshot 2024-02-14 at 15 33 41"
src="https://github.com/denoland/fresh/assets/1062408/1c7093db-a509-4d42-998c-3b5282cd88d5">

After:

<img width="530" alt="Screenshot 2024-02-14 at 15 33 09"
src="https://github.com/denoland/fresh/assets/1062408/99e2bdeb-e0f5-4926-91e1-f972df1149c1">
  • Loading branch information
marvinhagemeister authored Feb 14, 2024
1 parent aeca15e commit b26a0d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ console.log();

let unresolvedDirectory = Deno.args[0];
if (flags._.length !== 1) {
const userInput = prompt("Project Name", "fresh-project");
const userInput = prompt("Project Name:", "fresh-project");
if (!userInput) {
error(help);
}
Expand Down Expand Up @@ -105,8 +105,9 @@ let useTwind = flags.twind || false;
if (flags.tailwind == null && flags.twind == null) {
if (confirm("Do you want to use a styling library?")) {
console.log();
console.log("1. Tailwind");
console.log("2. Twind");
console.log(`1. ${colors.cyan("tailwindcss")} (recommended)`);
console.log(`2. ${colors.cyan("Twind")}`);
console.log();
switch (
(prompt("Which styling library do you want to use? [1]") || "1").trim()
) {
Expand Down

0 comments on commit b26a0d6

Please sign in to comment.