From 9b524e3dc7fa24215c7b1346288199a4745b8084 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Thu, 2 Jul 2026 09:53:22 -0700 Subject: [PATCH] Upgrade Tailwind to v4 (#491) --- .../commands/openFolderSettings.tsx | 2 +- .../components/BinaryFileEditor.tsx | 2 +- .../components/CloneGitRepositoryDialog.tsx | 2 +- .../yaak-client/components/ColorIndicator.tsx | 2 +- .../components/CommandPaletteDialog.tsx | 6 +- apps/yaak-client/components/CookieDialog.tsx | 10 +- .../components/DnsOverridesEditor.tsx | 2 +- apps/yaak-client/components/DropMarker.tsx | 4 +- apps/yaak-client/components/DynamicForm.tsx | 10 +- .../components/EnvironmentActionsDropdown.tsx | 2 +- .../components/EnvironmentEditDialog.tsx | 2 +- apps/yaak-client/components/FolderLayout.tsx | 4 +- .../components/FolderSettingsDialog.tsx | 8 +- apps/yaak-client/components/GrpcEditor.tsx | 2 +- .../components/GrpcRequestPane.tsx | 8 +- .../components/HttpAuthenticationEditor.tsx | 2 +- .../components/HttpRequestLayout.tsx | 2 +- .../components/HttpRequestPane.tsx | 4 +- .../components/HttpResponsePane.tsx | 12 +- .../yaak-client/components/JsonBodyEditor.tsx | 4 +- apps/yaak-client/components/LicenseBadge.tsx | 2 +- .../yaak-client/components/MarkdownEditor.tsx | 4 +- .../components/ModelSettingsEditor.tsx | 2 +- .../components/MoveToWorkspaceDialog.tsx | 2 +- apps/yaak-client/components/Prose.css | 12 +- .../components/ResponseCookies.tsx | 2 +- .../components/ResponseHeaders.tsx | 2 +- apps/yaak-client/components/ResponseInfo.tsx | 2 +- apps/yaak-client/components/RouteError.tsx | 2 +- apps/yaak-client/components/SelectFile.tsx | 2 +- .../components/Settings/Settings.tsx | 16 +- .../components/Settings/SettingsGeneral.tsx | 2 +- .../components/Settings/SettingsHotkeys.tsx | 2 +- .../components/Settings/SettingsInterface.tsx | 8 +- .../components/Settings/SettingsPlugins.tsx | 4 +- .../components/Settings/SettingsProxy.tsx | 4 +- .../components/Settings/SettingsTheme.tsx | 2 +- apps/yaak-client/components/Sidebar.tsx | 12 +- .../components/TemplateFunctionDialog.tsx | 8 +- apps/yaak-client/components/UrlBar.tsx | 2 +- .../components/WebsocketRequestPane.tsx | 6 +- apps/yaak-client/components/Workspace.tsx | 4 +- .../components/WorkspaceActionsDropdown.tsx | 2 +- .../components/WorkspaceEncryptionSetting.tsx | 2 +- .../components/WorkspaceSettingsDialog.tsx | 6 +- .../components/core/AutoScroller.tsx | 4 +- apps/yaak-client/components/core/Checkbox.tsx | 4 +- .../components/core/ColorPicker.tsx | 4 +- .../components/core/CountBadge.tsx | 2 +- .../components/core/DetailsBanner.tsx | 2 +- apps/yaak-client/components/core/Dialog.tsx | 12 +- apps/yaak-client/components/core/Dropdown.tsx | 26 +- .../components/core/Editor/DiffViewer.css | 12 +- .../components/core/Editor/Editor.css | 50 +- .../components/core/Editor/Editor.tsx | 2 +- .../components/core/EventViewerRow.tsx | 4 +- apps/yaak-client/components/core/Hotkey.tsx | 2 +- .../components/core/HttpMethodTag.tsx | 2 +- apps/yaak-client/components/core/Input.tsx | 10 +- .../components/core/KeyValueRow.tsx | 6 +- apps/yaak-client/components/core/Label.tsx | 2 +- .../components/core/PairEditor.tsx | 6 +- .../components/core/PairOrBulkEditor.tsx | 2 +- .../components/core/PillButton.tsx | 2 +- .../components/core/PlainInput.tsx | 6 +- .../components/core/RadioCards.tsx | 2 +- .../components/core/SegmentedControl.tsx | 6 +- apps/yaak-client/components/core/Select.tsx | 4 +- .../components/core/SettingRow.tsx | 8 +- .../yaak-client/components/core/Tabs/Tabs.tsx | 10 +- apps/yaak-client/components/core/Toast.tsx | 8 +- apps/yaak-client/components/core/Tooltip.tsx | 8 +- .../components/git/FileHistoryDialog.tsx | 2 +- .../components/git/GitCommitDialog.tsx | 10 +- .../components/git/GitDropdown.tsx | 2 +- .../graphql/GraphQLDocsExplorer.tsx | 20 +- .../components/graphql/GraphQLEditor.tsx | 6 +- .../responseViewers/EventStreamViewer.tsx | 2 +- .../responseViewers/MultipartViewer.tsx | 4 +- .../components/responseViewers/TextViewer.tsx | 4 +- .../hooks/useToggleCommandPalette.tsx | 2 +- apps/yaak-client/lib/editEnvironment.tsx | 2 +- apps/yaak-client/lib/initGlobalListeners.tsx | 8 +- apps/yaak-client/lib/toast.tsx | 2 +- apps/yaak-client/main.css | 12 +- apps/yaak-client/package.json | 6 - apps/yaak-client/postcss.config.cjs | 6 +- apps/yaak-client/tailwind.config.cjs | 16 - apps/yaak-proxy/main.css | 12 +- apps/yaak-proxy/postcss.config.cjs | 6 +- apps/yaak-proxy/tailwind.config.cjs | 7 - package-lock.json | 901 +++++++----------- package.json | 3 + packages/tailwind-config/index.cjs | 134 --- packages/tailwind-config/index.css | 124 +++ packages/tailwind-config/index.d.ts | 5 - packages/tailwind-config/package.json | 7 +- packages/ui/src/components/Button.tsx | 6 +- packages/ui/src/components/DropMarker.tsx | 4 +- packages/ui/src/components/FormattedError.tsx | 4 +- packages/ui/src/components/HeaderSize.tsx | 2 +- packages/ui/src/components/Icon.tsx | 2 +- packages/ui/src/components/IconButton.tsx | 6 +- packages/ui/src/components/InlineCode.tsx | 4 +- packages/ui/src/components/LoadingIcon.tsx | 2 +- packages/ui/src/components/Overlay.tsx | 2 +- packages/ui/src/components/ResizeHandle.tsx | 2 +- packages/ui/src/components/SidebarLayout.tsx | 2 +- packages/ui/src/components/Table.tsx | 4 +- packages/ui/src/components/WindowControls.tsx | 6 +- packages/ui/src/components/tree/Tree.tsx | 6 +- packages/ui/src/components/tree/TreeItem.tsx | 8 +- 112 files changed, 744 insertions(+), 1027 deletions(-) delete mode 100644 apps/yaak-client/tailwind.config.cjs delete mode 100644 apps/yaak-proxy/tailwind.config.cjs delete mode 100644 packages/tailwind-config/index.cjs create mode 100644 packages/tailwind-config/index.css delete mode 100644 packages/tailwind-config/index.d.ts diff --git a/apps/yaak-client/commands/openFolderSettings.tsx b/apps/yaak-client/commands/openFolderSettings.tsx index 5ef2c77a..e08ad576 100644 --- a/apps/yaak-client/commands/openFolderSettings.tsx +++ b/apps/yaak-client/commands/openFolderSettings.tsx @@ -10,7 +10,7 @@ export function openFolderSettings(folderId: string, tab?: FolderSettingsTab) { id: "folder-settings", title: null, size: "lg", - className: "h-[50rem]", + className: "h-200", noPadding: true, render: () => , }); diff --git a/apps/yaak-client/components/BinaryFileEditor.tsx b/apps/yaak-client/components/BinaryFileEditor.tsx index 7fc3d458..ccab5fa6 100644 --- a/apps/yaak-client/components/BinaryFileEditor.tsx +++ b/apps/yaak-client/components/BinaryFileEditor.tsx @@ -38,7 +38,7 @@ export function BinaryFileEditor({ {filePath != null && mimeType !== contentType && !ignoreContentType.value && ( - +
Set Content-Type header
{mimeType} for current request? diff --git a/apps/yaak-client/components/CloneGitRepositoryDialog.tsx b/apps/yaak-client/components/CloneGitRepositoryDialog.tsx index ccf14580..b7048a5f 100644 --- a/apps/yaak-client/components/CloneGitRepositoryDialog.tsx +++ b/apps/yaak-client/components/CloneGitRepositoryDialog.tsx @@ -108,7 +108,7 @@ export function CloneGitRepositoryDialog({ hide }: Props) { rightSlot={ void }) { name="command" label="Command" placeholder="Search or type a command" - className="font-sans !text-base" + className="font-sans text-base!" defaultValue={command} onChange={handleSetCommand} onKeyDownCapture={handleKeyDown} @@ -448,7 +448,7 @@ export function CommandPaletteDialog({ onClose }: { onClose: () => void }) {
{filteredGroups.map((g) => (
- + {g.label} {g.items.map((v) => ( @@ -491,7 +491,7 @@ function CommandPaletteItem({ color="custom" justify="start" className={classNames( - "w-full h-sm flex items-center rounded px-1.5", + "w-full h-sm flex items-center rounded-sm px-1.5", "hover:text-text", active && "bg-surface-highlight", !active && "text-text-subtle", diff --git a/apps/yaak-client/components/CookieDialog.tsx b/apps/yaak-client/components/CookieDialog.tsx index a4dc7701..31c90913 100644 --- a/apps/yaak-client/components/CookieDialog.tsx +++ b/apps/yaak-client/components/CookieDialog.tsx @@ -155,7 +155,7 @@ export const CookieDialog = ({ cookieJarId }: Props) => { rightSlot={ filter.length > 0 && ( { @@ -239,7 +239,7 @@ export const CookieDialog = ({ cookieJarId }: Props) => { {c.name} - + {c.value} {cookieDomain(c)} @@ -547,7 +547,7 @@ function CookieEditor({ } function CookieKeyValueRow({ labelClassName, ...props }: ComponentProps) { - return ; + return ; } function CookieTextInput({ @@ -589,7 +589,7 @@ function CookieTextarea({ onChange, value }: { onChange: (value: string) => void