From 911babd3e028797b33576b0366edbafaf761bb53 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+Berry-13@users.noreply.github.com> Date: Wed, 6 Mar 2024 18:05:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=8C=EF=B8=8F=20style:=20Update=20Light?= =?UTF-8?q?/Dark=20UI=20Themes=20(#1754)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * BIG UI UPDATE * fix: search bar, dialog template, new chat icon, convo icon and delete/rename button * moved some color config and a lot of files * small text fixes and tailwind config refactor * Update localization and UI styles * Update styles and add user-select:none to Tooltip component * Update mobile.css styles for navigation mask and background color * Update component imports and styles * Update DeleteButton imports and references * Update UI components * Update tooltip delay duration * Fix styling and update text in various components * fixed assistant style * minor style fixes * revert: removed CreationHeader & CreationPanel * style: match new styling for SidePanel * style: match bg-gray-800 to ChatGPT (#212121) * style: remove slate for gray where applicable to match new light theme --------- Co-authored-by: Danny Avila --- client/index.html | 2 +- client/src/components/Auth/LoginForm.tsx | 4 +- client/src/components/Auth/Registration.tsx | 2 +- .../components/Auth/RequestPasswordReset.tsx | 2 +- client/src/components/Auth/ResetPassword.tsx | 4 +- client/src/components/Chat/Input/ChatForm.tsx | 2 +- .../Chat/Input/Files/DragDropOverlay.tsx | 2 +- .../components/Chat/Input/OptionsPopover.tsx | 8 +- .../components/Chat/Input/PopoverButtons.tsx | 2 +- .../src/components/Chat/Input/SendButton.tsx | 37 ++++++--- .../src/components/Chat/Input/StopButton.tsx | 4 +- .../Chat/Menus/Endpoints/MenuItem.tsx | 2 +- .../components/Chat/Menus/EndpointsMenu.tsx | 2 +- .../Chat/Menus/Presets/EditPresetDialog.tsx | 9 +- .../Chat/Menus/Presets/PresetItems.tsx | 25 ++++-- .../src/components/Chat/Menus/PresetsMenu.tsx | 4 +- .../Chat/Menus/UI/MenuSeparator.tsx | 2 +- .../Chat/Messages/Content/Image.tsx | 2 +- .../Chat/Messages/Content/MessageContent.tsx | 4 +- .../components/Chat/Messages/Content/Part.tsx | 2 +- .../components/Chat/Messages/HoverButtons.tsx | 10 +-- .../components/Chat/Messages/MessagesView.tsx | 4 +- .../components/Conversations/Conversation.jsx | 6 +- client/src/components/Conversations/Convo.tsx | 15 ++-- .../components/Conversations/DeleteButton.tsx | 8 +- .../Conversations/NewDeleteButton.tsx | 66 --------------- .../components/Conversations/RenameButton.tsx | 4 +- client/src/components/Conversations/index.ts | 1 - .../Endpoints/EndpointOptionsPopover.tsx | 4 +- .../src/components/Endpoints/MinimalIcon.tsx | 8 +- .../components/Endpoints/PopoverButtons.tsx | 2 +- .../Endpoints/SaveAsPresetDialog.tsx | 7 +- .../Endpoints/Settings/Examples.tsx | 4 +- client/src/components/Endpoints/index.ts | 1 - .../Input/EndpointMenu/EndpointItem.tsx | 2 +- .../Input/EndpointMenu/EndpointMenu.jsx | 21 +---- .../Input/EndpointMenu/FileUpload.tsx | 2 +- .../Input/EndpointMenu/PresetItem.tsx | 2 +- .../Input/SetKeyDialog/HelpText.tsx | 8 +- .../Input/SetKeyDialog/SetKeyDialog.tsx | 2 +- client/src/components/Input/SubmitButton.tsx | 6 +- client/src/components/Input/TextChat.tsx | 14 ++-- .../components/Messages/Content/CodeBlock.tsx | 4 +- .../Messages/Content/MessageContent.tsx | 4 +- .../components/Messages/Content/Plugin.tsx | 4 +- .../src/components/Messages/HoverButtons.tsx | 10 +-- client/src/components/Messages/Message.tsx | 4 +- .../src/components/Messages/MessageHeader.tsx | 2 +- client/src/components/Messages/Messages.tsx | 4 +- .../Nav/ExportConversation/ExportModal.jsx | 2 +- client/src/components/Nav/Logout.tsx | 2 +- client/src/components/Nav/MobileNav.tsx | 6 +- client/src/components/Nav/Nav.tsx | 4 +- client/src/components/Nav/NavLinks.tsx | 26 +++--- client/src/components/Nav/NewChat.tsx | 78 ++++++++++-------- client/src/components/Nav/SearchBar.tsx | 2 +- client/src/components/Nav/Settings.tsx | 58 ++++++------- .../Nav/SettingsTabs/Account/Account.tsx | 2 +- .../Nav/SettingsTabs/Account/Avatar.tsx | 6 +- .../components/Nav/SettingsTabs/Beta/Beta.tsx | 2 +- .../components/Nav/SettingsTabs/Data/Data.tsx | 2 +- .../Nav/SettingsTabs/General/General.tsx | 2 +- .../Plugins/Store/PluginPagination.tsx | 3 + .../Plugins/Store/PluginStoreDialog.tsx | 12 +-- .../Plugins/Store/PluginStoreItem.tsx | 2 +- .../SidePanel/Builder/ActionsAuth.tsx | 2 +- .../SidePanel/Builder/ActionsPanel.tsx | 2 +- .../SidePanel/Builder/AssistantPanel.tsx | 6 +- .../SidePanel/Builder/AssistantSelect.tsx | 6 +- .../SidePanel/Builder/ContextButton.tsx | 4 +- .../components/SidePanel/Builder/Images.tsx | 4 +- .../components/SidePanel/Files/PanelTable.tsx | 4 +- client/src/components/SidePanel/Nav.tsx | 2 +- client/src/components/SidePanel/SidePanel.tsx | 6 +- client/src/components/SidePanel/Switcher.tsx | 14 ++-- client/src/components/Tools/ToolItem.tsx | 2 +- .../src/components/Tools/ToolSelectDialog.tsx | 10 +-- .../src/components/svg/PluginMinimalIcon.tsx | 21 ----- client/src/components/svg/index.ts | 1 - client/src/components/ui/AlertDialog.tsx | 4 +- client/src/components/ui/Button.tsx | 12 +-- client/src/components/ui/Dialog.tsx | 56 +++++++------ client/src/components/ui/DialogTemplate.tsx | 31 +++++-- client/src/components/ui/Dropdown.tsx | 4 +- client/src/components/ui/HoverCard.tsx | 2 +- client/src/components/ui/Input.tsx | 2 +- client/src/components/ui/InputNumber.tsx | 2 +- client/src/components/ui/Landing.tsx | 10 +-- .../src/components/ui/MultiSelectDropDown.tsx | 10 +-- client/src/components/ui/MultiSelectPop.tsx | 4 +- client/src/components/ui/Prompt.tsx | 2 +- client/src/components/ui/Select.tsx | 7 +- client/src/components/ui/SelectDropDown.tsx | 12 +-- .../src/components/ui/SelectDropDownPop.tsx | 4 +- client/src/components/ui/Slider.tsx | 4 +- client/src/components/ui/Switch.tsx | 4 +- client/src/components/ui/Tabs.tsx | 4 +- client/src/components/ui/Templates.tsx | 12 +-- client/src/components/ui/Tooltip.tsx | 3 +- client/src/hooks/ScreenshotContext.tsx | 2 +- client/src/localization/languages/Ar.tsx | 1 - client/src/localization/languages/Eng.tsx | 2 +- client/src/mobile.css | 4 +- client/src/style.css | 82 ++++--------------- client/src/utils/buildTree.ts | 4 +- client/src/utils/index.ts | 6 +- client/tailwind.config.cjs | 27 +++--- index.html | 2 +- 108 files changed, 438 insertions(+), 524 deletions(-) delete mode 100644 client/src/components/Conversations/NewDeleteButton.tsx delete mode 100644 client/src/components/svg/PluginMinimalIcon.tsx diff --git a/client/index.html b/client/index.html index 3654c8766..bad6b4194 100644 --- a/client/index.html +++ b/client/index.html @@ -2,7 +2,7 @@ - + LibreChat diff --git a/client/src/components/Auth/LoginForm.tsx b/client/src/components/Auth/LoginForm.tsx index 64e5ea549..c56f3ed9f 100644 --- a/client/src/components/Auth/LoginForm.tsx +++ b/client/src/components/Auth/LoginForm.tsx @@ -44,7 +44,7 @@ const LoginForm: React.FC = ({ onSubmit }) => { pattern: { value: /\S+@\S+\.\S+/, message: localize('com_auth_email_pattern') }, })} aria-invalid={!!errors.email} - className="peer block w-full appearance-none rounded-md border border-gray-300 bg-white px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-500 focus:outline-none focus:ring-0 dark:border-gray-700 dark:bg-gray-900 dark:text-white dark:focus:border-green-500" + className="peer block w-full appearance-none rounded-md border border-gray-300 bg-white px-2.5 pb-2.5 pt-5 text-sm text-gray-800 focus:border-green-500 focus:outline-none focus:ring-0 dark:border-gray-700 dark:bg-gray-900 dark:text-white dark:focus:border-green-500" placeholder=" " />