diff --git a/apps/web/package.json b/apps/web/package.json index bf7c399..0f75e42 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -10,10 +10,12 @@ }, "dependencies": { "@glossa/shared": "workspace:*", + "@tailwindcss/vite": "^4.2.2", "@tanstack/react-router": "^1.168.1", "@tanstack/react-router-devtools": "^1.166.10", "react": "^19.2.4", - "react-dom": "^19.2.4" + "react-dom": "^19.2.4", + "tailwindcss": "^4.2.2" }, "devDependencies": { "@tanstack/router-plugin": "^1.167.2", diff --git a/apps/web/src/index.css b/apps/web/src/index.css index e69de29..f1d8c73 100644 --- a/apps/web/src/index.css +++ b/apps/web/src/index.css @@ -0,0 +1 @@ +@import "tailwindcss"; diff --git a/apps/web/src/main.tsx b/apps/web/src/main.tsx index 1c2707a..ac22087 100644 --- a/apps/web/src/main.tsx +++ b/apps/web/src/main.tsx @@ -1,6 +1,7 @@ import { StrictMode } from "react"; import ReactDOM from "react-dom/client"; import { RouterProvider, createRouter } from "@tanstack/react-router"; +import "./index.css"; // Import the generated route tree import { routeTree } from "./routeTree.gen"; diff --git a/apps/web/src/routes/index.tsx b/apps/web/src/routes/index.tsx index 688a60d..a17910a 100644 --- a/apps/web/src/routes/index.tsx +++ b/apps/web/src/routes/index.tsx @@ -4,7 +4,7 @@ export const Route = createFileRoute("/")({ component: Index }); function Index() { return ( -
+

Welcome Home!

); diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index afc3cca..06d2167 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -1,11 +1,13 @@ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import { tanstackRouter } from "@tanstack/router-plugin/vite"; +import tailwindcss from "@tailwindcss/vite"; // https://vite.dev/config/ export default defineConfig({ plugins: [ tanstackRouter({ target: "react", autoCodeSplitting: true }), react(), + tailwindcss(), ], });