feat(www): code blocks package manager (#6075)

* feat(www): code blocks

* fix: code style
This commit is contained in:
shadcn
2024-12-14 19:13:06 +04:00
committed by GitHub
parent 102b0b0c62
commit 2f869a2590
7 changed files with 159 additions and 26 deletions

View File

@@ -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:

View 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