From 3fae42c077e55189cd087c249b33d8591fd9acdc Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 20 Feb 2026 16:17:11 +0000 Subject: [PATCH] Remove hardcoded warning color, add yellow and pink to ALF palette (#9911) --- package.json | 2 +- yarn.lock | 8 ++++---- src/components/Admonition.tsx | 8 ++------ src/screens/Settings/AppPasswords.tsx | 4 ++-- src/screens/PostThread/components/ThreadItemAnchor.tsx | 5 +---- src/screens/Profile/components/ProfileFeedHeader.tsx | 8 +++----- 6 file(s) changed, 13 insertion(s)(+), 22 deletion(s)(-) diff --git a/package.json b/package.json --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "@atproto/api": "^0.18.21", "@bitdrift/react-native": "^0.6.8", "@braintree/sanitize-url": "^6.0.2", - "@bsky.app/alf": "^0.1.6", + "@bsky.app/alf": "^0.1.7", "@bsky.app/expo-image-crop-tool": "^0.5.0", "@bsky.app/react-native-mmkv": "2.12.5", "@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet", diff --git a/yarn.lock b/yarn.lock --- a/yarn.lock +++ b/yarn.lock @@ -3590,10 +3590,10 @@ resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-6.0.4.tgz#923ca57e173c6b232bbbb07347b1be982f03e783" integrity sha512-s3jaWicZd0pkP0jf5ysyHUI/RE7MHos6qlToFcGWXVp+ykHOy77OUMrfbgJ9it2C5bow7OIQwYYaHjk9XlBQ2A== -"@bsky.app/alf@^0.1.6": - version "0.1.6" - resolved "https://registry.yarnpkg.com/@bsky.app/alf/-/alf-0.1.6.tgz#256dac988702f076b98f1963c9d594141bc74a10" - integrity sha512-8DdAOP+qRVgme+5WwqhxU20qzHXvEkEzr60SIBvDEVblCkyEiPZ36YznbpbmpT23qXbfbUFf9mb5IXYJqd8ELQ== +"@bsky.app/alf@^0.1.7": + version "0.1.7" + resolved "https://registry.yarnpkg.com/@bsky.app/alf/-/alf-0.1.7.tgz#96190f9069d4bd599f8c56d0da5cbed50df7cbf3" + integrity sha512-/Qe3fTDaInfZdwXKk6kkDd7xoAWUmUqrlAbuU1ydEzSzjMFa+icfeEaRmbQ8cFIv3XJiU+iuvgBKjJSw0msypQ== dependencies: react-responsive "^10.0.1" diff --git a/src/components/Admonition.tsx b/src/components/Admonition.tsx --- a/src/components/Admonition.tsx +++ b/src/components/Admonition.tsx @@ -9,10 +9,6 @@ import {Text as BaseText, type TextProps} from '#/components/Typography' import {EmojiSad_Stroke2_Corner0_Rounded as EmojiSadIcon} from './icons/Emoji' -export const colors = { - warning: '#FFC404', -} - type Context = { type: 'info' | 'tip' | 'warning' | 'error' | 'apology' } @@ -35,7 +31,7 @@ const fill = { info: t.atoms.text_contrast_medium.color, tip: t.palette.primary_500, - warning: colors.warning, + warning: t.palette.yellow, error: t.palette.negative_500, apology: t.atoms.text_contrast_medium.color, }[type] @@ -110,7 +106,7 @@ const borderColor = { info: t.atoms.border_contrast_high.borderColor, tip: t.palette.primary_500, - warning: colors.warning, + warning: t.palette.yellow, error: t.palette.negative_500, apology: t.atoms.border_contrast_high.borderColor, }[type] diff --git a/src/screens/Settings/AppPasswords.tsx b/src/screens/Settings/AppPasswords.tsx --- a/src/screens/Settings/AppPasswords.tsx +++ b/src/screens/Settings/AppPasswords.tsx @@ -21,7 +21,7 @@ import {ErrorScreen} from '#/view/com/util/error/ErrorScreen' import * as Toast from '#/view/com/util/Toast' import {atoms as a, useTheme} from '#/alf' -import {Admonition, colors} from '#/components/Admonition' +import {Admonition} from '#/components/Admonition' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {useDialogControl} from '#/components/Dialog' import {Growth_Stroke2_Corner0_Rounded as Growth} from '#/components/icons/Growth' @@ -195,7 +195,7 @@ {appPassword.privileged && ( - + Allows access to direct messages diff --git a/src/screens/PostThread/components/ThreadItemAnchor.tsx b/src/screens/PostThread/components/ThreadItemAnchor.tsx --- a/src/screens/PostThread/components/ThreadItemAnchor.tsx +++ b/src/screens/PostThread/components/ThreadItemAnchor.tsx @@ -38,7 +38,6 @@ REPLY_LINE_WIDTH, } from '#/screens/PostThread/const' import {atoms as a, useTheme} from '#/alf' -import {colors} from '#/components/Admonition' import {Button} from '#/components/Button' import {DebugFieldDisplay} from '#/components/DebugFieldDisplay' import {CalendarClock_Stroke2_Corner0_Rounded as CalendarClockIcon} from '#/components/icons/CalendarClock' @@ -647,8 +646,6 @@ if (!isBackdated) return null - const orange = colors.warning - return ( <>