Skip to content

Commit ab50e9f

Browse files
committed
Update dependencies and configuration for React Router and Tailwind CSS
- Add new dependencies including @hookform/resolvers, @lambdacurry/forms, react-hook-form, remix-hook-form, and zod to bun.lock. - Update .gitignore to include .react.router for generated files. - Adjust plugin order in vite.config.ts for React Router, tsconfig paths, and Tailwind CSS. - Clean up globals.css by removing outdated utility classes and adding new source imports. - Simplify routes configuration in routes.ts and create a new index route file for better organization.
1 parent dd2ee69 commit ab50e9f

File tree

7 files changed

+173
-39
lines changed

7 files changed

+173
-39
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,6 @@ Thumbs.db
117117

118118
# Biome
119119
.biome-cache
120+
121+
# React Router
122+
.react-router

apps/todo-app/app/globals.css

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import "tailwindcss";
2-
2+
@source "../../packages/ui/src/components/ui/**/*.{ts,tsx}";
3+
@source "../../../node_modules/@lambdacurry/forms/**/*.{js,ts,tsx}";
34

45
@theme inline {
56
--breakpoint-3xl: 1600px;
@@ -163,26 +164,6 @@
163164
}
164165
}
165166

166-
@utility border-grid {
167-
@apply border-border/50 dark:border-border;
168-
}
169-
170-
@utility section-soft {
171-
@apply from-background to-surface/40 dark:bg-background 3xl:fixed:bg-none bg-gradient-to-b;
172-
}
173-
174-
@utility theme-container {
175-
@apply font-sans;
176-
}
177-
178-
@utility container-wrapper {
179-
@apply 3xl:fixed:max-w-[calc(var(--breakpoint-2xl)+2rem)] mx-auto w-full px-2;
180-
}
181-
182-
@utility container {
183-
@apply 3xl:max-w-screen-2xl mx-auto max-w-[1400px] px-4 lg:px-8;
184-
}
185-
186167
@utility no-scrollbar {
187168
-ms-overflow-style: none;
188169
scrollbar-width: none;

apps/todo-app/app/routes.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import type { RouteConfig } from '@react-router/dev/routes';
22
import { index, route } from '@react-router/dev/routes';
33

4-
export default [
5-
index('routes/home.tsx'),
6-
route('create-todo', 'routes/create-todo.tsx'),
7-
] satisfies RouteConfig;
4+
export default [index('routes/home.tsx'), route('create-todo', 'routes/create-todo.tsx')] satisfies RouteConfig;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default, meta } from './home';

apps/todo-app/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ interface ImportMetaEnv {
1111
interface ImportMeta {
1212
readonly env: ImportMetaEnv;
1313
}
14+

apps/todo-app/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { defineConfig } from 'vite';
44
import tsconfigPaths from 'vite-tsconfig-paths';
55

66
export default defineConfig({
7-
plugins: [tailwindcss(), reactRouter(), tsconfigPaths()]
7+
// Plugin order can matter; React Router first, then path resolutions, then Tailwind
8+
plugins: [reactRouter(), tsconfigPaths(), tailwindcss()]
89
});
910

bun.lock

Lines changed: 163 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)