Skip to content

Commit ff7e5e1

Browse files
authored
Migrate to Tailwind CSS v4.0 (#6331)
1 parent 4ced06f commit ff7e5e1

File tree

173 files changed

+971
-976
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+971
-976
lines changed

frontend/app/package-lock.json

Lines changed: 599 additions & 535 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/app/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
"@radix-ui/react-slot": "^1.2.0",
5252
"@radix-ui/react-tabs": "^1.1.4",
5353
"@radix-ui/react-tooltip": "^1.2.0",
54+
"@tailwindcss/vite": "^4.1.4",
5455
"@tanstack/react-query": "^5.74.4",
5556
"@tanstack/react-query-devtools": "^5.74.4",
5657
"@tanstack/react-table": "^8.21.3",
5758
"@uiw/react-color": "^2.4.5",
5859
"@vitejs/plugin-react": "^4.4.0",
59-
"autoprefixer": "^10.4.21",
6060
"class-variance-authority": "^0.7.1",
6161
"clsx": "^2.1.0",
6262
"cm6-graphql": "^0.2.0",
@@ -93,7 +93,7 @@
9393
"remark-gfm": "^4.0.1",
9494
"remeda": "^2.21.3",
9595
"sha1": "^1.1.1",
96-
"tailwind-merge": "^2.6.0",
96+
"tailwind-merge": "^3.2.0",
9797
"tailwindcss-animate": "^1.0.7",
9898
"unidiff": "^1.0.4",
9999
"use-query-params": "^2.2.1",
@@ -118,8 +118,7 @@
118118
"cypress": "^14.3.0",
119119
"openapi-typescript": "^7.6.1",
120120
"playwright": "^1.52.0",
121-
"postcss": "^8.5.3",
122-
"tailwindcss": "^3.4.17",
121+
"tailwindcss": "^4.1.4",
123122
"ts-node": "^10.9.2",
124123
"typescript": "^5.8.3",
125124
"vitest": "^3.1.1",

frontend/app/postcss.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

frontend/app/src/app/styles/index.css

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
@import "./Alert.css";
2-
@import "./DiffView.css";
1+
@import "./Alert.css" layer(base);
2+
@import "./DiffView.css" layer(base);
33

4-
@tailwind base;
5-
@tailwind components;
6-
@tailwind utilities;
4+
@import "tailwindcss";
5+
6+
@config '../../../tailwind.config.js';
77

88
@font-face {
99
font-family: "Inter";
10-
src: url(/src/assets/fonts/Inter-VariableFont_opsz\,wght.ttf);
10+
src: url(/src/assets/fonts/InterVariable.ttf);
11+
}
12+
13+
@layer base {
14+
button:not(:disabled),
15+
[role="button"]:not(:disabled) {
16+
cursor: pointer;
17+
}
1118
}
1219

1320
body {

frontend/app/src/entities/artifacts/ui/artifact-details-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function ArtifactDetailsMenu({ id, hfid, checksum, storageId }: ArtifactD
1717
<DropdownMenuItem className="p-0">
1818
<CopyToClipboard
1919
size={"default"}
20-
className="flex-grow justify-start gap-2 p-2"
20+
className="grow justify-start gap-2 p-2"
2121
text={checksum}
2222
>
2323
Copy Checksum
@@ -29,7 +29,7 @@ export function ArtifactDetailsMenu({ id, hfid, checksum, storageId }: ArtifactD
2929
<DropdownMenuItem className="p-0">
3030
<CopyToClipboard
3131
size={"default"}
32-
className="flex-grow justify-start gap-2 p-2"
32+
className="grow justify-start gap-2 p-2"
3333
text={storageId}
3434
>
3535
Copy Storage ID

frontend/app/src/entities/artifacts/ui/artifact-details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function ArtifactsDetails({ artifactId, artifactSchema }: ArtifactsDetail
6565
</div>
6666
</Content.Card>
6767
<Card className="min-w-[350px] p-0">
68-
<div className="font-semibold p-2 border-b">Activities</div>
68+
<div className="font-semibold p-2 border-b border-gray-200">Activities</div>
6969
<NodeEvents objectId={artifactId} objectKind={artifactKind} />
7070
</Card>
7171
</div>

frontend/app/src/entities/artifacts/ui/artifact-file.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ function FileContent({
8383
}
8484
case "image/svg+xml": {
8585
return (
86-
<Svg value={fileContent} className="border shadow border-neutral-700 rounded-lg grow" />
86+
<Svg value={fileContent} className="border shadow-sm border-neutral-700 rounded-lg grow" />
8787
);
8888
}
8989
default: {
9090
return (
9191
<ScrollArea
9292
scrollX
93-
className="border shadow border-neutral-700 rounded-lg grow"
93+
className="border shadow-sm border-neutral-700 rounded-lg grow"
9494
scrollBarClassName="bg-transparent"
9595
>
9696
<CodeViewer language={config.language} customStyle={{ margin: 0 }}>

frontend/app/src/entities/authentication/ui/login-sso-buttons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const ProviderButton = ({
3333
}: { provider: SSOProvider; redirectTo?: string }) => {
3434
return (
3535
<a
36-
className="h-9 px-4 py-2 inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium disabled:opacity-60 disabled:cursor-not-allowed border bg-custom-white shadow-sm hover:bg-gray-100"
36+
className="h-9 px-4 py-2 inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium disabled:opacity-60 disabled:cursor-not-allowed border border-gray-200 bg-white shadow-xs hover:bg-gray-100"
3737
href={`${INFRAHUB_API_SERVER_URL + provider.authorize_path}?final_url=${redirectTo}`}
3838
>
3939
<Icon icon={provider.icon} />

frontend/app/src/entities/branches/ui/branches-items.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const BranchesItems = () => {
4343
{branches.map((branch) => (
4444
<li
4545
key={branch.name}
46-
className="col-span-1 rounded-lg border cursor-pointer bg-gray-50 hover:bg-gray-100"
46+
className="col-span-1 rounded-lg border border-gray-200 cursor-pointer bg-gray-50 hover:bg-gray-100"
4747
onClick={() => navigate(constructPath(`/branches/${branch.name}`))}
4848
>
4949
<div className="flex w-full items-center justify-between space-x-6 p-6">

0 commit comments

Comments
 (0)