From ff98f70f4221a567a855d8aac62b4fd562c958d9 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Sat, 20 Jun 2026 18:53:14 +0200 Subject: [PATCH] refactor: add accent-primary brand token; tokenize Nav/Input/Prompts/Endpoints colors --- .../src/components/Endpoints/ConvoIconURL.tsx | 2 +- .../Endpoints/MessageEndpointIcon.tsx | 6 +++--- .../src/components/Endpoints/MinimalIcon.tsx | 2 +- .../Endpoints/SaveAsPresetDialog.tsx | 2 +- .../Endpoints/Settings/Advanced.tsx | 10 +++++----- .../Endpoints/Settings/Examples.tsx | 4 ++-- .../components/Endpoints/Settings/Google.tsx | 10 +++++----- .../Endpoints/Settings/OptionHover.tsx | 2 +- client/src/components/Endpoints/URLIcon.tsx | 2 +- .../Input/ModelSelect/MultiSelectDropDown.tsx | 20 +++++++++---------- .../Input/ModelSelect/MultiSelectPop.tsx | 12 +++++------ .../Input/ModelSelect/SelectDropDownPop.tsx | 10 +++++----- .../Input/SetKeyDialog/SetKeyDialog.tsx | 2 +- .../components/Nav/Bookmarks/BookmarkNav.tsx | 2 +- .../Nav/ExportConversation/ExportModal.tsx | 6 +++--- .../components/Nav/Favorites/FavoriteItem.tsx | 2 +- .../Nav/Favorites/FavoritesList.tsx | 2 +- .../Nav/Settings/BillingControls.tsx | 4 +++- .../src/components/Nav/Settings/Section.tsx | 2 +- .../Nav/SettingsTabs/Account/Avatar.tsx | 10 +++++----- .../SettingsTabs/Account/BackupCodesItem.tsx | 4 ++-- .../SettingsTabs/Account/DeleteAccount.tsx | 6 +++--- .../Nav/SettingsTabs/ApiKeys/Create.tsx | 2 +- .../Nav/SettingsTabs/ApiKeys/Reveal.tsx | 4 ++-- .../Balance/AutoRefillSettings.tsx | 2 +- .../SettingsTabs/Balance/TokenCreditsItem.tsx | 2 +- .../Nav/SettingsTabs/Data/SharedLinks.tsx | 2 +- .../Speech/STT/AutoSendTextSelector.tsx | 2 +- .../Speech/STT/DecibelSelector.tsx | 2 +- .../SettingsTabs/Speech/TTS/PlaybackRate.tsx | 2 +- .../Prompts/display/PromptDetailHeader.tsx | 2 +- .../components/Prompts/fields/PromptName.tsx | 4 ++-- .../Prompts/forms/CreatePromptForm.tsx | 4 ++-- .../Prompts/lists/ChatGroupItem.tsx | 2 +- client/src/style.css | 4 ++++ .../src/theme/utils/createTailwindColors.js | 3 +++ 36 files changed, 84 insertions(+), 75 deletions(-) diff --git a/client/src/components/Endpoints/ConvoIconURL.tsx b/client/src/components/Endpoints/ConvoIconURL.tsx index ba28b5e115..d4bdf53447 100644 --- a/client/src/components/Endpoints/ConvoIconURL.tsx +++ b/client/src/components/Endpoints/ConvoIconURL.tsx @@ -54,7 +54,7 @@ const ConvoIconURL: React.FC = ({ } return ( -
+
{Icon && ( = (props) => { ) : (
- +
), @@ -110,7 +110,7 @@ const MessageEndpointIcon: React.FC = (props) => { ) : (
-
), @@ -197,7 +197,7 @@ const MessageEndpointIcon: React.FC = (props) => { > {icon} {error === true && ( - + ! )} diff --git a/client/src/components/Endpoints/MinimalIcon.tsx b/client/src/components/Endpoints/MinimalIcon.tsx index 4a85eb09ab..0bc861520e 100644 --- a/client/src/components/Endpoints/MinimalIcon.tsx +++ b/client/src/components/Endpoints/MinimalIcon.tsx @@ -77,7 +77,7 @@ const MinimalIcon: React.FC = (props) => { > {icon} {error === true && ( - + ! )} diff --git a/client/src/components/Endpoints/SaveAsPresetDialog.tsx b/client/src/components/Endpoints/SaveAsPresetDialog.tsx index 6467a4a408..5ca092c064 100644 --- a/client/src/components/Endpoints/SaveAsPresetDialog.tsx +++ b/client/src/components/Endpoints/SaveAsPresetDialog.tsx @@ -83,7 +83,7 @@ const SaveAsPresetDialog = ({ open, onOpenChange, preset }: TEditPresetProps) => } selection={{ selectHandler: submitPreset, - selectClasses: 'bg-green-500 hover:bg-green-600 dark:hover:bg-green-600 text-white', + selectClasses: 'bg-surface-submit hover:bg-surface-submit-hover text-white', selectText: localize('com_ui_save'), }} /> diff --git a/client/src/components/Endpoints/Settings/Advanced.tsx b/client/src/components/Endpoints/Settings/Advanced.tsx index 504e6cd94d..6ef582941e 100644 --- a/client/src/components/Endpoints/Settings/Advanced.tsx +++ b/client/src/components/Endpoints/Settings/Advanced.tsx @@ -137,7 +137,7 @@ export default function Settings({ defaultTextProps, cn( optionText, - 'reset-rc-number-input reset-rc-number-input-text-right h-auto w-12 border-0 group-hover/temp:border-gray-200', + 'reset-rc-number-input reset-rc-number-input-text-right h-auto w-12 border-0 group-hover/temp:border-border-light', ), )} /> @@ -178,7 +178,7 @@ export default function Settings({ defaultTextProps, cn( optionText, - 'reset-rc-number-input reset-rc-number-input-text-right h-auto w-12 border-0 group-hover/temp:border-gray-200', + 'reset-rc-number-input reset-rc-number-input-text-right h-auto w-12 border-0 group-hover/temp:border-border-light', ), )} /> @@ -220,7 +220,7 @@ export default function Settings({ defaultTextProps, cn( optionText, - 'reset-rc-number-input reset-rc-number-input-text-right h-auto w-12 border-0 group-hover/temp:border-gray-200', + 'reset-rc-number-input reset-rc-number-input-text-right h-auto w-12 border-0 group-hover/temp:border-border-light', ), )} /> @@ -262,7 +262,7 @@ export default function Settings({ defaultTextProps, cn( optionText, - 'reset-rc-number-input reset-rc-number-input-text-right h-auto w-12 border-0 group-hover/temp:border-gray-200', + 'reset-rc-number-input reset-rc-number-input-text-right h-auto w-12 border-0 group-hover/temp:border-border-light', ), )} /> @@ -303,7 +303,7 @@ export default function Settings({ defaultTextProps, optionText, 'flex rounded-md bg-transparent py-2 text-xs focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 dark:border-gray-700', - 'pointer-events-none max-h-5 w-12 border-0 group-hover/temp:border-gray-200', + 'pointer-events-none max-h-5 w-12 border-0 group-hover/temp:border-border-light', )} />
diff --git a/client/src/components/Endpoints/Settings/Examples.tsx b/client/src/components/Endpoints/Settings/Examples.tsx index 78b045e141..69a0134120 100644 --- a/client/src/components/Endpoints/Settings/Examples.tsx +++ b/client/src/components/Endpoints/Settings/Examples.tsx @@ -78,14 +78,14 @@ function Examples({ readonly, examples, setExample, addExample, removeExample }:
{imageError && iconURL && (