mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-08 14:35:09 +00:00
feat(www): code blocks package manager (#6075)
* feat(www): code blocks * fix: code style
This commit is contained in:
@@ -47,7 +47,7 @@ Do you want to use CSS variables for colors? › no / yes
|
||||
### Install Tailwind CSS
|
||||
|
||||
```bash
|
||||
npm add -D tailwindcss@latest autoprefixer@latest
|
||||
npm install -D tailwindcss@latest autoprefixer@latest
|
||||
```
|
||||
|
||||
Then we create a `postcss.config.js` file:
|
||||
|
||||
@@ -19,7 +19,9 @@ Install `tailwindcss` and its peer dependencies, then generate your `tailwind.co
|
||||
|
||||
```bash
|
||||
npm install -D tailwindcss postcss autoprefixer
|
||||
```
|
||||
|
||||
```bash
|
||||
npx tailwindcss init -p
|
||||
```
|
||||
|
||||
@@ -93,11 +95,10 @@ Add the following code to the `tsconfig.app.json` file to resolve paths, for you
|
||||
|
||||
### Update vite.config.ts
|
||||
|
||||
Add the following code to the vite.config.ts so your app can resolve paths without error
|
||||
Add the following code to the vite.config.ts so your app can resolve paths without error:
|
||||
|
||||
```bash
|
||||
# (so you can import "path" without error)
|
||||
npm i -D @types/node
|
||||
npm install -D @types/node
|
||||
```
|
||||
|
||||
```typescript
|
||||
|
||||
Reference in New Issue
Block a user