Skip to content

Commit b26a0d6

Browse files
fix: improve init choice design (#2314)
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">
1 parent aeca15e commit b26a0d6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

init.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ console.log();
7272

7373
let unresolvedDirectory = Deno.args[0];
7474
if (flags._.length !== 1) {
75-
const userInput = prompt("Project Name", "fresh-project");
75+
const userInput = prompt("Project Name:", "fresh-project");
7676
if (!userInput) {
7777
error(help);
7878
}
@@ -105,8 +105,9 @@ let useTwind = flags.twind || false;
105105
if (flags.tailwind == null && flags.twind == null) {
106106
if (confirm("Do you want to use a styling library?")) {
107107
console.log();
108-
console.log("1. Tailwind");
109-
console.log("2. Twind");
108+
console.log(`1. ${colors.cyan("tailwindcss")} (recommended)`);
109+
console.log(`2. ${colors.cyan("Twind")}`);
110+
console.log();
110111
switch (
111112
(prompt("Which styling library do you want to use? [1]") || "1").trim()
112113
) {

0 commit comments

Comments
 (0)