docs: fix Installation Configure components.json

This commit is contained in:
tyj-321 2024-05-16 20:32:51 +08:00
parent 61ed5f1758
commit 1633929b3d
4 changed files with 7 additions and 4 deletions

View File

@ -104,7 +104,7 @@ Would you like to use TypeScript (recommended)? no / yes
Which framework are you using? Astro
Which style would you like to use? Default
Which color would you like to use as base color? Slate
Where is your tsconfig.json located? ./tsconfig.json
Where is your tsconfig.json or jsconfig.json file? ./tsconfig.json
Where is your global CSS file? src/styles/globals.css
Do you want to use CSS variables for colors? no / yes
Where is your tailwind.config located? tailwind.config.mjs

View File

@ -30,12 +30,13 @@ Would you like to use TypeScript (recommended)? no / yes
Which framework are you using? Vite / Nuxt / Laravel
Which style would you like to use? Default
Which color would you like to use as base color? Slate
Where is your tsconfig.json located? ./tsconfig.json
Where is your tsconfig.json or jsconfig.json file? ./tsconfig.json
Where is your global CSS file? resources/css/app.css
Do you want to use CSS variables for colors? no / yes
Where is your tailwind.config.js located? tailwind.config.js
Configure the import alias for components: @/Components
Configure the import alias for utils: @/lib/utils
Write configuration to components.json. Proceed? > Y/n
```
### Update tailwind.config.js

View File

@ -184,12 +184,13 @@ Would you like to use TypeScript (recommended)? no / yes
Which framework are you using? Vite / Nuxt / Laravel
Which style would you like to use? Default
Which color would you like to use as base color? Slate
Where is your tsconfig.json located? ./tsconfig.json
Where is your tsconfig.json or jsconfig.json file? ./tsconfig.json
Where is your global CSS file? src/index.css
Do you want to use CSS variables for colors? no / yes
Where is your tailwind.config.js located? tailwind.config.js
Configure the import alias for components: @/components
Configure the import alias for utils: @/lib/utils
Write configuration to components.json. Proceed? > Y/n
```
### App structure

View File

@ -159,12 +159,13 @@ Would you like to use TypeScript (recommended)? no / yes
Which framework are you using? Vite / Nuxt / Laravel
Which style would you like to use? Default
Which color would you like to use as base color? Slate
Where is your tsconfig.json located? ./tsconfig.json
Where is your tsconfig.json or jsconfig.json file? ./tsconfig.json
Where is your global CSS file? src/index.css
Do you want to use CSS variables for colors? no / yes
Where is your tailwind.config.js located? tailwind.config.js
Configure the import alias for components: @/components
Configure the import alias for utils: @/lib/utils
Write configuration to components.json. Proceed? > Y/n
```
### Update main.ts