Skip to content

Commit c9322a7

Browse files
ScriptedAlchemychenjiahan
authored andcommitted
chore: upgrade tailwind
1 parent 79d16b5 commit c9322a7

File tree

12 files changed

+31
-28
lines changed

12 files changed

+31
-28
lines changed

examples/default-template/app/app.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
2+
3+
@config '../tailwind.config.ts';
44

55
html,
66
body {

examples/default-template/app/root.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import {
1414

1515
import type { Route } from './+types/root';
1616
import './app.css';
17-
// import stylesheet from "./app.css?url";
18-
// console.log(stylesheet);
1917

2018
interface RouteHandle {
2119
breadcrumb?: (data: any) => string;
@@ -62,7 +60,7 @@ function Navigation() {
6260
}));
6361

6462
return (
65-
<header className="sticky top-0 bg-white/80 dark:bg-gray-950/80 backdrop-blur-sm border-b border-gray-200 dark:border-gray-800">
63+
<header className="sticky top-0 bg-white/80 dark:bg-gray-950/80 backdrop-blur-xs border-b border-gray-200 dark:border-gray-800">
6664
<div className="max-w-7xl mx-auto">
6765
{/* Main Navigation */}
6866
<nav className="px-4">

examples/default-template/app/routes/docs/advanced.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default function Advanced() {
169169

170170
<section className="mb-12">
171171
<h2 className="text-2xl font-semibold text-gray-900 dark:text-white mb-4">Try It Out</h2>
172-
<div className="bg-gradient-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 rounded-lg p-6 hover:from-blue-100 hover:to-purple-100 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 transition-colors">
172+
<div className="bg-linear-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 rounded-lg p-6 hover:from-blue-100 hover:to-purple-100 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 transition-colors">
173173
<p className="text-lg mb-2">
174174
Check out our{' '}
175175
<Link

examples/default-template/app/routes/docs/getting-started.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default function GettingStarted() {
170170

171171
<section className="mb-12">
172172
<h2 className="text-2xl font-semibold text-gray-900 dark:text-white mb-4">Next Steps</h2>
173-
<div className="bg-gradient-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 rounded-lg p-6 hover:from-blue-100 hover:to-purple-100 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 transition-colors">
173+
<div className="bg-linear-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 rounded-lg p-6 hover:from-blue-100 hover:to-purple-100 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 transition-colors">
174174
<p className="text-lg mb-2">
175175
Now that you understand the basics, check out the{' '}
176176
<Link

examples/default-template/app/routes/docs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default function DocsIndex() {
116116

117117
<section className="mb-12">
118118
<h2 className="text-2xl font-semibold text-gray-900 dark:text-white mb-4">Next Steps</h2>
119-
<div className="bg-gradient-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 rounded-lg p-6 hover:from-blue-100 hover:to-purple-100 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 transition-colors">
119+
<div className="bg-linear-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 rounded-lg p-6 hover:from-blue-100 hover:to-purple-100 dark:hover:from-blue-900/30 dark:hover:to-purple-900/30 transition-colors">
120120
<p className="text-lg mb-2">
121121
Once you're comfortable with the basics, explore our{' '}
122122
<Link

examples/default-template/app/routes/docs/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function DocsLayout() {
1818
<div className="max-w-8xl mx-auto px-4 sm:px-6 md:px-8">
1919
<div className="flex">
2020
{/* Sidebar */}
21-
<aside className="hidden md:block w-64 flex-shrink-0 border-r border-gray-200 dark:border-gray-800">
21+
<aside className="hidden md:block w-64 shrink-0 border-r border-gray-200 dark:border-gray-800">
2222
<div className="sticky top-16 pt-8 pb-4 overflow-y-auto h-[calc(100vh-4rem)]">
2323
<div className="mb-8">
2424
<h3 className="text-sm font-semibold text-gray-900 dark:text-gray-100 uppercase tracking-wider mb-3">

examples/default-template/app/routes/projects/edit.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function EditProject() {
5757
name="name"
5858
id="name"
5959
defaultValue={project.name}
60-
className="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm"
60+
className="mt-1 block w-full rounded-md border-gray-300 shadow-xs focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm"
6161
/>
6262
</div>
6363

@@ -73,7 +73,7 @@ export default function EditProject() {
7373
name="description"
7474
rows={3}
7575
defaultValue={project.description}
76-
className="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm"
76+
className="mt-1 block w-full rounded-md border-gray-300 shadow-xs focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm"
7777
/>
7878
</div>
7979

@@ -88,7 +88,7 @@ export default function EditProject() {
8888
id="status"
8989
name="status"
9090
defaultValue={project.status}
91-
className="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm"
91+
className="mt-1 block w-full rounded-md border-gray-300 shadow-xs focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm"
9292
>
9393
<option value="planned">Planned</option>
9494
<option value="active">Active</option>
@@ -99,14 +99,14 @@ export default function EditProject() {
9999
<div className="flex justify-end gap-3">
100100
<Link
101101
to=".."
102-
className="px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700"
102+
className="px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-xs hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700"
103103
>
104104
Cancel
105105
</Link>
106106
<button
107107
type="submit"
108108
disabled={isSubmitting}
109-
className="px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"
109+
className="px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md shadow-xs hover:bg-blue-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"
110110
>
111111
{isSubmitting ? 'Saving...' : 'Save Changes'}
112112
</button>

examples/default-template/app/routes/projects/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default function ProjectsLayout() {
2626
<div className="page-container">
2727
<div className="flex gap-8">
2828
{/* Sidebar */}
29-
<aside className="w-64 flex-shrink-0">
29+
<aside className="w-64 shrink-0">
3030
<div className="sticky top-24 space-y-4">
3131
<div className="flex items-center justify-between">
3232
<h2 className="text-lg font-semibold text-gray-900 dark:text-white">

examples/default-template/app/routes/projects/settings.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default function ProjectSettings() {
8585
<select
8686
name="visibility"
8787
defaultValue={project.visibility}
88-
className="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm"
88+
className="mt-1 block w-full rounded-md border-gray-300 shadow-xs focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white sm:text-sm"
8989
>
9090
<option value="private">Private</option>
9191
<option value="team">Team Only</option>
@@ -103,7 +103,7 @@ export default function ProjectSettings() {
103103
type="checkbox"
104104
name="notifications.email"
105105
defaultChecked={project.notifications.email}
106-
className="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"
106+
className="h-4 w-4 rounded-sm border-gray-300 text-blue-600 focus:ring-blue-500"
107107
/>
108108
<span className="ml-3 text-gray-900 dark:text-white">
109109
Email notifications
@@ -114,7 +114,7 @@ export default function ProjectSettings() {
114114
type="checkbox"
115115
name="notifications.slack"
116116
defaultChecked={project.notifications.slack}
117-
className="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"
117+
className="h-4 w-4 rounded-sm border-gray-300 text-blue-600 focus:ring-blue-500"
118118
/>
119119
<span className="ml-3 text-gray-900 dark:text-white">
120120
Slack notifications
@@ -125,7 +125,7 @@ export default function ProjectSettings() {
125125
type="checkbox"
126126
name="notifications.discord"
127127
defaultChecked={project.notifications.discord}
128-
className="h-4 w-4 rounded border-gray-300 text-blue-600 focus:ring-blue-500"
128+
className="h-4 w-4 rounded-sm border-gray-300 text-blue-600 focus:ring-blue-500"
129129
/>
130130
<span className="ml-3 text-gray-900 dark:text-white">
131131
Discord notifications
@@ -141,13 +141,13 @@ export default function ProjectSettings() {
141141
<div className="space-y-4">
142142
<button
143143
type="button"
144-
className="px-4 py-2 text-sm font-medium text-yellow-700 bg-yellow-100 border border-transparent rounded-md hover:bg-yellow-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-yellow-500"
144+
className="px-4 py-2 text-sm font-medium text-yellow-700 bg-yellow-100 border border-transparent rounded-md hover:bg-yellow-200 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-yellow-500"
145145
>
146146
Archive Project
147147
</button>
148148
<button
149149
type="button"
150-
className="px-4 py-2 text-sm font-medium text-red-700 bg-red-100 border border-transparent rounded-md hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"
150+
className="px-4 py-2 text-sm font-medium text-red-700 bg-red-100 border border-transparent rounded-md hover:bg-red-200 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500"
151151
>
152152
Delete Project
153153
</button>
@@ -157,14 +157,14 @@ export default function ProjectSettings() {
157157
<div className="flex justify-end gap-3">
158158
<Link
159159
to=".."
160-
className="px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700"
160+
className="px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-xs hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700"
161161
>
162162
Cancel
163163
</Link>
164164
<button
165165
type="submit"
166166
disabled={isSubmitting}
167-
className="px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"
167+
className="px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md shadow-xs hover:bg-blue-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed"
168168
>
169169
{isSubmitting ? 'Saving...' : 'Save Changes'}
170170
</button>

examples/default-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@types/react": "^19.0.1",
2828
"@types/react-dom": "^19.0.1",
2929
"react-router-devtools": "^1.1.0",
30-
"tailwindcss": "^3.4.17",
30+
"tailwindcss": "^4.0.0",
3131
"typescript": "^5.7.2",
3232
"vite": "^5.4.11",
3333
"vite-tsconfig-paths": "^5.1.4"

0 commit comments

Comments
 (0)