You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(examples): drop JS config from Tailwind example (#10445)
### Description
Found out that JS configurations aren't hip with the kids these days, so
switching out the approach. The CSS variables are a bit contrived, but
work great for showing off what we're needing to show off.
[TailwindCSS](https://tailwindcss.com/) is a CSS framework that allows you to rapidly build modern websites without ever leaving your HTML.
10
+
[Tailwind CSS](https://tailwindcss.com/) is a CSS framework that allows you to rapidly build modern websites without ever leaving your HTML.
11
11
12
12
## Quickstart
13
13
14
-
If you'd rather use a template, this guide is walking throw how to build [this TailwindCSS + Turborepo template](https://github.com/vercel/turborepo/tree/main/examples/with-tailwind).
14
+
If you'd rather use a template, this guide is walking throw how to build [this Tailwind CSS + Turborepo template](https://github.com/vercel/turborepo/tree/main/examples/with-tailwind).
This `package.json` installs TailwindCSS so we can create the configuration file and exports the configuration file for use in the rest of the repository.
119
+
This `package.json` installs Tailwind CSS so we can create the file shared styles and export for the rest of the repository.
This `tailwind.config.ts`will be shared to the libraries and applications in the repository.
142
+
This `shared-styles.css` file will be shared to the libraries and applications in the repository. The variables shown will be available anywhere that the file is included.
You can now build the components you share to your applications.
177
+
You can now build the components to share to your applications.
189
178
190
-
For a full example, [visit the source code for `@repo/ui` package in the TailwindCSS example](https://github.com/vercel/turborepo/tree/main/examples/with-tailwind/packages/ui). The files required for your TailwindCSS setup are below.
179
+
For a full example, [visit the source code for `@repo/ui` package in the Tailwind CSS example](https://github.com/vercel/turborepo/tree/main/examples/with-tailwind/packages/ui). The files required for your Tailwind CSS setup are below.
Copy file name to clipboardExpand all lines: examples/with-tailwind/apps/web/README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ First, run the development server:
6
6
yarn dev
7
7
```
8
8
9
-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
9
+
Open [http://localhost:3001](http://localhost:3001) with your browser to see the result.
10
10
11
11
You can start editing the page by modifying `src/app/page.tsx`. The page auto-updates as you edit the file.
12
12
13
-
To create [API routes](https://nextjs.org/docs/app/building-your-application/routing/router-handlers) add an `api/` directory to the `app/` directory with a `route.ts` file. For individual endpoints, create a subfolder in the `api` directory, like `api/hello/route.ts` would map to [http://localhost:3000/api/hello](http://localhost:3000/api/hello).
13
+
To create [API routes](https://nextjs.org/docs/app/building-your-application/routing/router-handlers) add an `api/` directory to the `app/` directory with a `route.ts` file. For individual endpoints, create a subfolder in the `api` directory, like `api/hello/route.ts` would map to [http://localhost:3001/api/hello](http://localhost:3001/api/hello).
0 commit comments