From ae72e5cf3f94360637135984db1ef6cbf0293858 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 30 Apr 2026 14:13:56 +0200 Subject: [PATCH] Change color palette --- .../answer-compatibility-question-content.tsx | 4 +- .../compatibility-questions-display.tsx | 4 +- .../answers/free-response-display.tsx | 2 +- web/components/bio/profile-bio-block.tsx | 2 +- web/components/browse-matches-button.tsx | 2 +- .../buttons/confirmation-button.tsx | 2 +- .../buttons/more-options-user-button.tsx | 2 +- web/components/buttons/report-button.tsx | 2 +- web/components/chat/chat-message.tsx | 2 +- .../comments/dropdown-button-menu.tsx | 2 +- web/components/comments/dropdown-menu.tsx | 2 +- web/components/compatibility/sort-widget.tsx | 2 +- web/components/editor/embed-modal.tsx | 2 +- web/components/editor/emoji/emoji-list.tsx | 2 +- .../editor/user-mention/mention-list.tsx | 2 +- web/components/events/event-card.tsx | 2 +- web/components/filters/card-size-selector.tsx | 2 +- web/components/filters/field-toggles.tsx | 2 +- web/components/filters/has-photo-filter.tsx | 2 +- web/components/filters/search.tsx | 7 +- web/components/filters/show-age-toggle.tsx | 2 +- web/components/filters/show-photos-toggle.tsx | 2 +- web/components/layout/modal.tsx | 2 +- .../messaging/new-message-button.tsx | 4 +- web/components/multi-user-reaction-link.tsx | 2 +- web/components/nav/sidebar-item.tsx | 6 +- web/components/nav/sidebar.tsx | 10 +-- web/components/optional-profile-form.tsx | 2 +- web/components/page-base.tsx | 2 +- web/components/profile-about.tsx | 2 +- web/components/profile-carousel.tsx | 2 +- web/components/profile-comments.tsx | 2 +- web/components/profile-grid.tsx | 10 +-- .../profile/delete-account-survey-modal.tsx | 2 +- web/components/profile/profile-header.tsx | 2 +- web/components/profile/profile-info.tsx | 4 +- web/components/profile/report-user.tsx | 2 +- .../profile/visibility-confirmation-modal.tsx | 2 +- web/components/questions-form.tsx | 2 +- web/components/searches/button.tsx | 18 +++-- web/components/select-users.tsx | 2 +- web/components/widgets/add-photos.tsx | 4 +- web/components/widgets/avatar.tsx | 4 +- web/components/widgets/card.tsx | 2 +- web/components/widgets/checkbox.tsx | 2 +- .../widgets/choices-toggle-group.tsx | 2 +- .../widgets/customizeable-dropdown.tsx | 2 +- .../widgets/editable-photo-grid.tsx | 2 +- web/components/widgets/editor.tsx | 2 +- web/components/widgets/expanding-input.tsx | 2 +- web/components/widgets/gradient-container.tsx | 2 +- web/components/widgets/icon-toggle.tsx | 2 +- web/components/widgets/input.tsx | 24 +++++-- web/components/widgets/like-button.tsx | 2 +- web/components/widgets/likes-display.tsx | 2 +- .../widgets/news-topics-content-container.tsx | 2 +- web/components/widgets/searchable-select.tsx | 4 +- web/components/widgets/select.tsx | 2 +- web/components/widgets/ship-button.tsx | 2 +- web/components/widgets/short-toggle.tsx | 2 +- web/components/widgets/toast-clipboard.tsx | 2 +- web/pages/compatibility.tsx | 2 +- web/pages/delete-account.tsx | 2 +- web/pages/events.tsx | 16 ++--- web/pages/messages/index.tsx | 2 +- web/pages/privacy.tsx | 2 +- web/pages/referrals.tsx | 2 +- web/pages/terms.tsx | 2 +- web/styles/globals.css | 68 +++++++++++++------ 69 files changed, 173 insertions(+), 122 deletions(-) diff --git a/web/components/answers/answer-compatibility-question-content.tsx b/web/components/answers/answer-compatibility-question-content.tsx index 4b4ae371..24e65326 100644 --- a/web/components/answers/answer-compatibility-question-content.tsx +++ b/web/components/answers/answer-compatibility-question-content.tsx @@ -300,7 +300,7 @@ export const SelectAnswer = (props: { {options.map((label, i) => ( diff --git a/web/components/answers/compatibility-questions-display.tsx b/web/components/answers/compatibility-questions-display.tsx index 35eb2839..0609ef95 100644 --- a/web/components/answers/compatibility-questions-display.tsx +++ b/web/components/answers/compatibility-questions-display.tsx @@ -263,7 +263,7 @@ export function CompatibilityQuestionsDisplay(props: { {/* setSearchTerm(e.target.value)*/} {/* setPage(0)*/} {/* }}*/} - {/* className="h-8 pl-7 pr-2 text-sm border border-ink-300 rounded-xl bg-canvas-0 focus:outline-none focus:ring-1 focus:ring-primary-500 w-48 transition-all"*/} + {/* className="h-8 pl-7 pr-2 text-sm border border-ink-300 rounded-xl bg-canvas-50 focus:outline-none focus:ring-1 focus:ring-primary-500 w-48 transition-all"*/} {/*/>*/} {question.question} diff --git a/web/components/bio/profile-bio-block.tsx b/web/components/bio/profile-bio-block.tsx index d90c679a..87712d38 100644 --- a/web/components/bio/profile-bio-block.tsx +++ b/web/components/bio/profile-bio-block.tsx @@ -26,7 +26,7 @@ export function BioBlock(props: { return ( diff --git a/web/components/browse-matches-button.tsx b/web/components/browse-matches-button.tsx index 2841039c..56414067 100644 --- a/web/components/browse-matches-button.tsx +++ b/web/components/browse-matches-button.tsx @@ -132,7 +132,7 @@ // open // setOpen={setOpen} // > -// +// // // // Browse {!isCurrentUser && `for ${profile.user.name}`} diff --git a/web/components/buttons/confirmation-button.tsx b/web/components/buttons/confirmation-button.tsx index ffc8edf9..0505a35e 100644 --- a/web/components/buttons/confirmation-button.tsx +++ b/web/components/buttons/confirmation-button.tsx @@ -53,7 +53,7 @@ export function ConfirmationButton(props: { return ( <> <Modal open={open} setOpen={updateOpen}> - <Col className="bg-canvas-0 gap-4 rounded-md px-8 py-6"> + <Col className="bg-canvas-50 gap-4 rounded-md px-8 py-6"> {children} <Row className="w-full justify-end gap-4"> <Button diff --git a/web/components/buttons/more-options-user-button.tsx b/web/components/buttons/more-options-user-button.tsx index ddc4c5cf..d0e2ecfa 100644 --- a/web/components/buttons/more-options-user-button.tsx +++ b/web/components/buttons/more-options-user-button.tsx @@ -52,7 +52,7 @@ export function MoreOptionsUserButton(props: {user: User}) { </Tooltip> <Modal open={isModalOpen} setOpen={setIsModalOpen}> - <Col className={'bg-canvas-0 text-ink-1000 rounded-md p-4 '}> + <Col className={'bg-canvas-50 text-ink-1000 rounded-md p-4 '}> <div className="mb-2 flex flex-wrap justify-between"> <Title className={'!mb-0'}>{name} {(isAdmin || isTrusted) && ( diff --git a/web/components/buttons/report-button.tsx b/web/components/buttons/report-button.tsx index 87a5c951..9ed1a147 100644 --- a/web/components/buttons/report-button.tsx +++ b/web/components/buttons/report-button.tsx @@ -61,7 +61,7 @@ export const ReportModal = (props: { return ( - + Report {label} {isReported diff --git a/web/components/chat/chat-message.tsx b/web/components/chat/chat-message.tsx index 17ff35f6..67a8cf21 100644 --- a/web/components/chat/chat-message.tsx +++ b/web/components/chat/chat-message.tsx @@ -121,7 +121,7 @@ export function ChatMessageItem(props: { ? 'bg-canvas-50 italic' : isMe ? 'bg-primary-200 items-end self-end rounded-r-none group-first:rounded-tr-3xl' - : 'bg-canvas-0 items-start self-start rounded-l-none group-first:rounded-tl-3xl', + : 'bg-canvas-50 items-start self-start rounded-l-none group-first:rounded-tl-3xl', )} onMouseDown={() => startLongPress(chat.id)} onMouseUp={cancelLongPress} diff --git a/web/components/comments/dropdown-button-menu.tsx b/web/components/comments/dropdown-button-menu.tsx index ff985275..73336eaf 100644 --- a/web/components/comments/dropdown-button-menu.tsx +++ b/web/components/comments/dropdown-button-menu.tsx @@ -54,7 +54,7 @@ export default function DropdownMenu(props: { ref={refs.setFloating} style={floatingStyles} className={clsx( - 'bg-canvas-0 ring-ink-1000 z-30 mt-2 rounded-md shadow-lg ring-1 ring-opacity-5 focus:outline-none', + 'bg-canvas-50 ring-ink-1000 z-30 mt-2 rounded-md shadow-lg ring-1 ring-opacity-5 focus:outline-none', menuWidth ?? 'w-34', menuItemsClass, 'p-1', diff --git a/web/components/comments/dropdown-menu.tsx b/web/components/comments/dropdown-menu.tsx index 07fb3e85..80560a85 100644 --- a/web/components/comments/dropdown-menu.tsx +++ b/web/components/comments/dropdown-menu.tsx @@ -67,7 +67,7 @@ export default function DropdownMenu(props: { ref={refs.setFloating} style={floatingStyles} className={clsx( - 'bg-canvas-0 ring-ink-1000 z-30 mt-2 rounded-md shadow-lg ring-1 ring-opacity-5 focus:outline-none', + 'bg-canvas-50 ring-ink-1000 z-30 mt-2 rounded-md shadow-lg ring-1 ring-opacity-5 focus:outline-none', menuWidth ?? 'w-34', menuItemsClass, 'py-1', diff --git a/web/components/compatibility/sort-widget.tsx b/web/components/compatibility/sort-widget.tsx index d8a02d3a..05ece8d0 100644 --- a/web/components/compatibility/sort-widget.tsx +++ b/web/components/compatibility/sort-widget.tsx @@ -69,7 +69,7 @@ export function CompatibilitySortWidget(props: { buttonContent={(open: boolean) => ( )} - menuItemsClass={'bg-canvas-0'} + menuItemsClass={'bg-canvas-50'} menuWidth="w-56" /> ) diff --git a/web/components/editor/embed-modal.tsx b/web/components/editor/embed-modal.tsx index a1f2a34d..e338ff55 100644 --- a/web/components/editor/embed-modal.tsx +++ b/web/components/editor/embed-modal.tsx @@ -72,7 +72,7 @@ export function EmbedModal(props: { return ( - + diff --git a/web/components/editor/emoji/emoji-list.tsx b/web/components/editor/emoji/emoji-list.tsx index 5e4e1262..b53e1811 100644 --- a/web/components/editor/emoji/emoji-list.tsx +++ b/web/components/editor/emoji/emoji-list.tsx @@ -41,7 +41,7 @@ export const EmojiList = forwardRef((props: SuggestionProps, ref) => })) return ( -
+
{!items.length ? ( No results ) : ( diff --git a/web/components/editor/user-mention/mention-list.tsx b/web/components/editor/user-mention/mention-list.tsx index 7dc26dff..b573deec 100644 --- a/web/components/editor/user-mention/mention-list.tsx +++ b/web/components/editor/user-mention/mention-list.tsx @@ -40,7 +40,7 @@ export const MentionList = forwardRef((props: SuggestionProps, ref) })) return ( -
+
{!users.length ? ( No results... ) : ( diff --git a/web/components/events/event-card.tsx b/web/components/events/event-card.tsx index 38756e56..c10370cf 100644 --- a/web/components/events/event-card.tsx +++ b/web/components/events/event-card.tsx @@ -57,7 +57,7 @@ export function EventCard(props: { return (
{/* Header */}
diff --git a/web/components/filters/card-size-selector.tsx b/web/components/filters/card-size-selector.tsx index 1c7b9eaf..5e2784f7 100644 --- a/web/components/filters/card-size-selector.tsx +++ b/web/components/filters/card-size-selector.tsx @@ -27,7 +27,7 @@ export function CardSizeSelector(props: { key={size} className={clsx( 'px-3 py-1.5 text-sm rounded-xl border border-canvas-100 transition-colors', - isSelected ? 'bg-primary-100' : 'bg-canvas-0 hover:bg-canvas-25', + isSelected ? 'bg-primary-100' : 'bg-canvas-50 hover:bg-canvas-25', )} onClick={() => updateDisplayOptions({cardSize: size})} > diff --git a/web/components/filters/field-toggles.tsx b/web/components/filters/field-toggles.tsx index 59dc264e..b5c9b54c 100644 --- a/web/components/filters/field-toggles.tsx +++ b/web/components/filters/field-toggles.tsx @@ -43,7 +43,7 @@ export function FieldToggles(props: { { const newValue = !(displayOptions[field.key] ?? true) diff --git a/web/components/filters/has-photo-filter.tsx b/web/components/filters/has-photo-filter.tsx index bb96d659..6694863f 100644 --- a/web/components/filters/has-photo-filter.tsx +++ b/web/components/filters/has-photo-filter.tsx @@ -18,7 +18,7 @@ export function HasPhotoFilter(props: { ) => updateFilter({hasPhoto: e.target.checked ? true : undefined}) diff --git a/web/components/filters/search.tsx b/web/components/filters/search.tsx index ed8d1858..86b6f1d8 100644 --- a/web/components/filters/search.tsx +++ b/web/components/filters/search.tsx @@ -167,7 +167,7 @@ export const Search = forwardRef< ref={ref} value={keywordInput} placeholder={placeholder} - className={'w-full max-w-xs'} + className={'w-full'} onChange={(e: React.ChangeEvent) => { setKeywordInput(e.target.value) }} @@ -203,7 +203,7 @@ export const Search = forwardRef< @@ -232,8 +232,9 @@ export const Search = forwardRef< }} size={'xs'} color={'none'} - className={'bg-canvas-100 hover:bg-canvas-200'} + className={'text-ink-100 bg-primary-500 hover:bg-primary-400 rounded-xl'} > + 🔔 {bookmarked ? t('common.saved', 'Saved!') : loadingBookmark diff --git a/web/components/filters/show-age-toggle.tsx b/web/components/filters/show-age-toggle.tsx index f0849957..05f97352 100644 --- a/web/components/filters/show-age-toggle.tsx +++ b/web/components/filters/show-age-toggle.tsx @@ -19,7 +19,7 @@ export function ShowAgeToggle(props: { ) => updateDisplayOptions({showAge: e.target.checked}) diff --git a/web/components/filters/show-photos-toggle.tsx b/web/components/filters/show-photos-toggle.tsx index 23c3284f..b19e96fb 100644 --- a/web/components/filters/show-photos-toggle.tsx +++ b/web/components/filters/show-photos-toggle.tsx @@ -19,7 +19,7 @@ export function ShowPhotosToggle(props: { ) => updateDisplayOptions({showPhotos: e.target.checked}) diff --git a/web/components/layout/modal.tsx b/web/components/layout/modal.tsx index a4bf62d1..7129f9b7 100644 --- a/web/components/layout/modal.tsx +++ b/web/components/layout/modal.tsx @@ -4,7 +4,7 @@ import clsx from 'clsx' import {Fragment, ReactNode, useEffect, useRef} from 'react' export const MODAL_CLASS = - 'items-center gap-4 rounded-md bg-canvas-0 sm:px-8 px-4 pt-6 pb-2 text-ink-1000 h-[calc(100dvh-var(--hloss)-120px)] sm:h-[calc(95dvh-var(--hloss)-120px)] ' + 'items-center gap-4 rounded-md bg-canvas-50 sm:px-8 px-4 pt-6 pb-2 text-ink-1000 h-[calc(100dvh-var(--hloss)-120px)] sm:h-[calc(95dvh-var(--hloss)-120px)] ' export const SCROLLABLE_MODAL_CLASS = '!overflow-auto' // From https://tailwindui.com/components/application-ui/overlays/modals diff --git a/web/components/messaging/new-message-button.tsx b/web/components/messaging/new-message-button.tsx index 4704dc79..402f391e 100644 --- a/web/components/messaging/new-message-button.tsx +++ b/web/components/messaging/new-message-button.tsx @@ -64,8 +64,8 @@ function MessageModal(props: {open: boolean; setOpen: (open: boolean) => void}) .concat(buildArray(privateUser?.id))} /> - {errorText &&

{errorText}

} - + {errorText &&

{errorText}

} + diff --git a/web/components/multi-user-reaction-link.tsx b/web/components/multi-user-reaction-link.tsx index 22521d81..732cacac 100644 --- a/web/components/multi-user-reaction-link.tsx +++ b/web/components/multi-user-reaction-link.tsx @@ -13,7 +13,7 @@ export function MultiUserReactionModal(props: { const {similarNotifications, modalLabel, open, setOpen} = props return ( - + {modalLabel} {similarNotifications.map((notif) => (