From 4e91d696c736b16304b6436f029df64b04d2bd34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Tue, 6 Jan 2026 04:25:04 +0100 Subject: [PATCH] pl-fe: Remove confusingly named accent-blue color, lighten links in dark/black mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/link.tsx | 2 +- packages/pl-fe/src/components/mention.tsx | 2 +- packages/pl-fe/src/components/parsed-content.tsx | 2 +- packages/pl-fe/src/components/parsed-mfm.tsx | 4 ++-- packages/pl-fe/src/components/site-error-boundary.tsx | 4 ++-- packages/pl-fe/src/components/status-mention.tsx | 2 +- packages/pl-fe/src/components/status-reply-mentions.tsx | 2 +- packages/pl-fe/src/components/status.tsx | 4 ++-- packages/pl-fe/src/components/ui/button/useButtonStyles.ts | 2 +- packages/pl-fe/src/components/ui/text.tsx | 2 +- packages/pl-fe/src/components/ui/toast.tsx | 4 ++-- .../pl-fe/src/features/chats/components/chat-message.tsx | 2 +- .../features/chats/components/chat-widget/chat-settings.tsx | 2 +- .../src/features/chats/components/shoutbox-message-list.tsx | 2 +- .../src/features/compose-event/components/upload-button.tsx | 2 +- .../src/features/compose/components/reply-mentions.tsx | 2 +- packages/pl-fe/src/features/compose/editor/index.tsx | 4 ++-- .../compose/editor/plugins/floating-link-editor-plugin.tsx | 2 +- .../src/features/edit-profile/components/header-picker.tsx | 2 +- .../pl-fe/src/features/group/components/group-header.tsx | 2 +- .../src/features/group/components/group-relationship.tsx | 2 +- .../src/features/status/components/detailed-status.tsx | 2 +- packages/pl-fe/src/hooks/use-theme-css.ts | 2 -- .../modals/manage-group-modal/steps/confirmation-step.tsx | 4 ++-- .../src/modals/report-modal/steps/confirmation-step.tsx | 2 +- packages/pl-fe/src/normalizers/pl-fe/pl-fe-config.ts | 1 - packages/pl-fe/src/pages/dashboard/theme-editor.tsx | 6 ------ packages/pl-fe/src/pages/statuses/event-information.tsx | 4 ++-- packages/pl-fe/src/styles/markup.scss | 4 ++-- packages/pl-fe/src/styles/new/mixins.scss | 4 ++-- packages/pl-fe/src/styles/utilities.scss | 2 +- packages/pl-fe/tailwind.config.ts | 3 +-- 32 files changed, 38 insertions(+), 48 deletions(-) diff --git a/packages/pl-fe/src/components/link.tsx b/packages/pl-fe/src/components/link.tsx index f378bd041..cb7e4f66e 100644 --- a/packages/pl-fe/src/components/link.tsx +++ b/packages/pl-fe/src/components/link.tsx @@ -4,7 +4,7 @@ import React from 'react'; const Link = (props: LinkProps) => ( ); diff --git a/packages/pl-fe/src/components/mention.tsx b/packages/pl-fe/src/components/mention.tsx index 2f65aa18d..ce6d0e1f2 100644 --- a/packages/pl-fe/src/components/mention.tsx +++ b/packages/pl-fe/src/components/mention.tsx @@ -24,7 +24,7 @@ const Mention: React.FC = ({ mention: { acct, username }, disabled }) diff --git a/packages/pl-fe/src/components/parsed-content.tsx b/packages/pl-fe/src/components/parsed-content.tsx index 098e8b39e..3c71eee04 100644 --- a/packages/pl-fe/src/components/parsed-content.tsx +++ b/packages/pl-fe/src/components/parsed-content.tsx @@ -253,7 +253,7 @@ function parseContent({ e.stopPropagation()} > diff --git a/packages/pl-fe/src/components/parsed-mfm.tsx b/packages/pl-fe/src/components/parsed-mfm.tsx index 53066c3c5..779884f24 100644 --- a/packages/pl-fe/src/components/parsed-mfm.tsx +++ b/packages/pl-fe/src/components/parsed-mfm.tsx @@ -412,7 +412,7 @@ const ParsedMfm: React.FC = React.memo(({ text, emojis, mentions, sp e.stopPropagation()} > @@ -430,7 +430,7 @@ const ParsedMfm: React.FC = React.memo(({ text, emojis, mentions, sp e.stopPropagation()} > diff --git a/packages/pl-fe/src/components/site-error-boundary.tsx b/packages/pl-fe/src/components/site-error-boundary.tsx index 4a1179f32..68363fced 100644 --- a/packages/pl-fe/src/components/site-error-boundary.tsx +++ b/packages/pl-fe/src/components/site-error-boundary.tsx @@ -100,7 +100,7 @@ const SiteErrorBoundary: React.FC = ({ children }) => { defaultMessage="We're sorry for the interruption. If the problem persists, please reach out to our support team. You may also try to {clearCookies} (this will log you out)." values={{ clearCookies: ( - + = ({ children }) => {
- + {' '} diff --git a/packages/pl-fe/src/components/status-mention.tsx b/packages/pl-fe/src/components/status-mention.tsx index 3fb6c21b9..fdcc2caef 100644 --- a/packages/pl-fe/src/components/status-mention.tsx +++ b/packages/pl-fe/src/components/status-mention.tsx @@ -23,7 +23,7 @@ const StatusMention: React.FC = ({ accountId, fallback }) => { e.stopPropagation()} > diff --git a/packages/pl-fe/src/components/status-reply-mentions.tsx b/packages/pl-fe/src/components/status-reply-mentions.tsx index 6cfb4257a..8ea6531ef 100644 --- a/packages/pl-fe/src/components/status-reply-mentions.tsx +++ b/packages/pl-fe/src/components/status-reply-mentions.tsx @@ -64,7 +64,7 @@ const StatusReplyMentions: React.FC = ({ status, hoverable key={account.id} to='/@{$username}' params={{ username: account.acct }} - className='inline-block max-w-[200px] truncate align-bottom text-primary-600 no-underline [direction:ltr] hover:text-primary-700 hover:underline dark:text-accent-blue dark:hover:text-accent-blue' + className='inline-block max-w-[200px] truncate align-bottom text-primary-600 no-underline [direction:ltr] hover:text-primary-700 hover:underline dark:text-primary-400 dark:hover:text-primary-400' onClick={(e) => e.stopPropagation()} > @{account.username} diff --git a/packages/pl-fe/src/components/status.tsx b/packages/pl-fe/src/components/status.tsx index 8d5202272..a3f354eef 100644 --- a/packages/pl-fe/src/components/status.tsx +++ b/packages/pl-fe/src/components/status.tsx @@ -309,7 +309,7 @@ const Status: React.FC = (props) => { } + icon={} text={ = (props) => { : {filterResults.map(({ filter }) => filter.title).join(', ')}. {' '} - diff --git a/packages/pl-fe/src/components/ui/button/useButtonStyles.ts b/packages/pl-fe/src/components/ui/button/useButtonStyles.ts index a3052a461..6bb8db55f 100644 --- a/packages/pl-fe/src/components/ui/button/useButtonStyles.ts +++ b/packages/pl-fe/src/components/ui/button/useButtonStyles.ts @@ -9,7 +9,7 @@ const themes = { 'bg-white dark:bg-primary-900 border-gray-400 dark:border-gray-800 hover:border-primary-300 dark:hover:border-primary-700 focus:border-primary-500 text-gray-900 dark:text-gray-100 focus:ring-primary-500', accent: 'border-transparent bg-secondary-500 hover:bg-secondary-400 focus:bg-secondary-500 text-gray-100 focus:ring-secondary-300', danger: 'border-transparent bg-danger-100 dark:bg-danger-900 text-danger-600 dark:text-danger-200 hover:bg-danger-600 hover:text-gray-100 dark:hover:text-gray-100 dark:hover:bg-danger-500 focus:ring-danger-500', - transparent: 'border-transparent bg-transparent text-primary-600 dark:text-accent-blue dark:bg-transparent hover:bg-gray-200 dark:hover:bg-gray-800/50', + transparent: 'border-transparent bg-transparent text-primary-600 dark:text-primary-400 dark:bg-transparent hover:bg-gray-200 dark:hover:bg-gray-800/50', outline: 'border-gray-100 border-2 bg-transparent text-gray-100 hover:bg-white/10', muted: 'border border-solid bg-transparent border-gray-400 dark:border-gray-800 hover:border-primary-300 dark:hover:border-primary-700 focus:border-primary-500 text-gray-800 dark:text-gray-100 focus:ring-primary-500', }; diff --git a/packages/pl-fe/src/components/ui/text.tsx b/packages/pl-fe/src/components/ui/text.tsx index 0395cf20c..089297542 100644 --- a/packages/pl-fe/src/components/ui/text.tsx +++ b/packages/pl-fe/src/components/ui/text.tsx @@ -4,7 +4,7 @@ import React from 'react'; const themes = { default: 'text-gray-900 dark:text-gray-100', danger: 'text-danger-700 dark:text-danger-500', - primary: 'text-primary-600 dark:text-accent-blue', + primary: 'text-primary-600 dark:text-primary-400', muted: 'text-gray-700 dark:text-gray-600', subtle: 'text-gray-400 dark:text-gray-500', success: 'text-success-600', diff --git a/packages/pl-fe/src/components/ui/toast.tsx b/packages/pl-fe/src/components/ui/toast.tsx index 381cf8379..8e074aa6b 100644 --- a/packages/pl-fe/src/components/ui/toast.tsx +++ b/packages/pl-fe/src/components/ui/toast.tsx @@ -51,7 +51,7 @@ const Toast = (props: IToast) => { return ( ); @@ -67,7 +67,7 @@ const Toast = (props: IToast) => { }; const renderAction = () => { - const classNames = 'mt-0.5 flex-shrink-0 rounded-full text-sm font-medium text-primary-600 dark:text-accent-blue hover:underline focus:outline-none'; + const classNames = 'mt-0.5 flex-shrink-0 rounded-full text-sm font-medium text-primary-600 dark:text-primary-400 hover:underline focus:outline-none'; if (action && actionLabel) { return ( diff --git a/packages/pl-fe/src/features/chats/components/chat-message.tsx b/packages/pl-fe/src/features/chats/components/chat-message.tsx index 038c8aef9..7b290e02a 100644 --- a/packages/pl-fe/src/features/chats/components/chat-message.tsx +++ b/packages/pl-fe/src/features/chats/components/chat-message.tsx @@ -230,7 +230,7 @@ const ChatMessage = (props: IChatMessage) => { 'text-ellipsis break-words relative rounded-md py-2 px-3 max-w-full space-y-2 [&_.mention]:underline': true, 'rounded-tr-sm': (!!chatMessage.attachment) && isMyMessage, 'rounded-tl-sm': (!!chatMessage.attachment) && !isMyMessage, - '[&_.mention]:text-primary-600 dark:[&_.mention]:text-accent-blue': !isMyMessage, + '[&_.mention]:text-primary-600 dark:[&_.mention]:text-primary-400': !isMyMessage, '[&_.mention]:text-white dark:[&_.mention]:white': isMyMessage, 'bg-primary-500 text-white': isMyMessage, 'bg-gray-200 dark:bg-gray-800 text-gray-900 dark:text-gray-100': !isMyMessage, diff --git a/packages/pl-fe/src/features/chats/components/chat-widget/chat-settings.tsx b/packages/pl-fe/src/features/chats/components/chat-widget/chat-settings.tsx index 6fa6215e1..c4085f406 100644 --- a/packages/pl-fe/src/features/chats/components/chat-widget/chat-settings.tsx +++ b/packages/pl-fe/src/features/chats/components/chat-widget/chat-settings.tsx @@ -112,7 +112,7 @@ const ChatSettings = () => { - diff --git a/packages/pl-fe/src/features/chats/components/shoutbox-message-list.tsx b/packages/pl-fe/src/features/chats/components/shoutbox-message-list.tsx index 4f10da0f8..3cdfb09b1 100644 --- a/packages/pl-fe/src/features/chats/components/shoutbox-message-list.tsx +++ b/packages/pl-fe/src/features/chats/components/shoutbox-message-list.tsx @@ -67,7 +67,7 @@ const ShoutboxMessage: React.FC = ({ message, isMyMessage }) = className={ clsx({ 'text-ellipsis break-words relative rounded-md py-2 px-3 max-w-full space-y-2 [&_.mention]:underline': true, - '[&_.mention]:text-primary-600 dark:[&_.mention]:text-accent-blue': !isMyMessage, + '[&_.mention]:text-primary-600 dark:[&_.mention]:text-primary-400': !isMyMessage, '[&_.mention]:text-white dark:[&_.mention]:white': isMyMessage, 'bg-primary-500 text-white': isMyMessage, 'bg-gray-200 dark:bg-gray-800 text-gray-900 dark:text-gray-100': !isMyMessage, diff --git a/packages/pl-fe/src/features/compose-event/components/upload-button.tsx b/packages/pl-fe/src/features/compose-event/components/upload-button.tsx index dcffb1cc7..d3be7e340 100644 --- a/packages/pl-fe/src/features/compose-event/components/upload-button.tsx +++ b/packages/pl-fe/src/features/compose-event/components/upload-button.tsx @@ -31,7 +31,7 @@ const UploadButton: React.FC = ({ disabled, onSelectFile }) => { }; return ( - + = ({ composeId }) => { return ( @{username} diff --git a/packages/pl-fe/src/features/compose/editor/index.tsx b/packages/pl-fe/src/features/compose/editor/index.tsx index 3ff0c273b..5786bbcde 100644 --- a/packages/pl-fe/src/features/compose/editor/index.tsx +++ b/packages/pl-fe/src/features/compose/editor/index.tsx @@ -67,8 +67,8 @@ interface IComposeEditor { const theme: InitialConfigType['theme'] = { emoji: 'select-none', - hashtag: 'hover:underline text-primary-600 dark:text-accent-blue hover:text-primary-800 dark:hover:text-accent-blue', - link: 'hover:underline text-primary-600 dark:text-accent-blue hover:text-primary-800 dark:hover:text-accent-blue', + hashtag: 'hover:underline text-primary-600 dark:text-primary-400 hover:text-primary-800 dark:hover:text-primary-400', + link: 'hover:underline text-primary-600 dark:text-primary-400 hover:text-primary-800 dark:hover:text-primary-400', text: { bold: 'font-bold', code: 'font-mono', diff --git a/packages/pl-fe/src/features/compose/editor/plugins/floating-link-editor-plugin.tsx b/packages/pl-fe/src/features/compose/editor/plugins/floating-link-editor-plugin.tsx index 55d2dcbc4..05d135539 100644 --- a/packages/pl-fe/src/features/compose/editor/plugins/floating-link-editor-plugin.tsx +++ b/packages/pl-fe/src/features/compose/editor/plugins/floating-link-editor-plugin.tsx @@ -198,7 +198,7 @@ const FloatingLinkEditor = ({ ) : ( <> - + {linkUrl}
(({