From 60e12b962fee5578f8af9316ea899a74a787f8da Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Thu, 9 May 2024 11:21:00 +0330 Subject: [PATCH] fix: add tailwind.config and global CSS overwrite warning (#541) --- packages/cli/src/commands/init.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.ts index 4bac72c4c..b75d71c1e 100644 --- a/packages/cli/src/commands/init.ts +++ b/packages/cli/src/commands/init.ts @@ -99,7 +99,7 @@ export async function promptForConfig( { type: 'toggle', name: 'typescript', - message: `Would you like to use ${highlight('TypeScript')} (recommended)?`, + message: `Would you like to use ${highlight('TypeScript')}? ${colors.gray('(recommended)')}?`, initial: defaultConfig?.typescript ?? true, active: 'yes', inactive: 'no', @@ -148,7 +148,7 @@ export async function promptForConfig( { type: 'text', name: 'tailwindCss', - message: `Where is your ${highlight('global CSS')} file?`, + message: `Where is your ${highlight('global CSS')} file? ${colors.gray('(this file will be overwritten)')}`, initial: (prev, values) => defaultConfig?.tailwind.css ?? TAILWIND_CSS_PATH[values.framework as 'vite' | 'nuxt' | 'laravel' | 'astro'], }, { @@ -172,7 +172,7 @@ export async function promptForConfig( { type: 'text', name: 'tailwindConfig', - message: `Where is your ${highlight('tailwind.config')} located?`, + message: `Where is your ${highlight('tailwind.config')} located? ${colors.gray('(this file will be overwritten)')}`, initial: (prev, values) => { if (defaultConfig?.tailwind.config) return defaultConfig?.tailwind.config