Migrate to @bsky.app/alf package (#9030)
* Add storybook shortcut in dev * Migrate to alg pkg * Migrate font_bold to new font_semi_bold * Migrate font_heavy to font_bold * Fix old theme refs * Remove leading util * Bump * Revert "Add storybook shortcut in dev" This reverts commit 7a86195c77fb5d449c7782e64ebabb6addfab919. * Remove alf script * Adjust font scale * Bump * Bump pkg * Migrate values from conflicts * Create default themes outside react * Use built-in alf utils * Migrate old font styles * Remove unused tokens * Move theme creation to more appropriate file * Update button colors * Adjust TextField colors, line heights
This commit is contained in:
@@ -90,7 +90,7 @@ let DrawerProfileCard = ({
|
||||
<View style={[a.flex_row, a.align_center, a.gap_xs, a.flex_1]}>
|
||||
<Text
|
||||
emoji
|
||||
style={[a.font_heavy, a.text_xl, a.mt_2xs, a.leading_tight]}
|
||||
style={[a.font_bold, a.text_xl, a.mt_2xs, a.leading_tight]}
|
||||
numberOfLines={1}>
|
||||
{profile?.displayName || account.handle}
|
||||
</Text>
|
||||
@@ -115,7 +115,7 @@ let DrawerProfileCard = ({
|
||||
</View>
|
||||
<Text style={[a.text_md, t.atoms.text_contrast_medium]}>
|
||||
<Trans>
|
||||
<Text style={[a.text_md, a.font_bold]}>
|
||||
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||
{formatCount(i18n, profile?.followersCount ?? 0)}
|
||||
</Text>{' '}
|
||||
<Plural
|
||||
@@ -126,7 +126,7 @@ let DrawerProfileCard = ({
|
||||
</Trans>{' '}
|
||||
·{' '}
|
||||
<Trans>
|
||||
<Text style={[a.text_md, a.font_bold]}>
|
||||
<Text style={[a.text_md, a.font_semi_bold]}>
|
||||
{formatCount(i18n, profile?.followsCount ?? 0)}
|
||||
</Text>{' '}
|
||||
<Plural
|
||||
@@ -656,7 +656,7 @@ function MenuItem({icon, label, count, bold, onPress}: MenuItemProps) {
|
||||
style={[
|
||||
a.text_xs,
|
||||
a.leading_tight,
|
||||
a.font_bold,
|
||||
a.font_semi_bold,
|
||||
{
|
||||
fontVariant: ['tabular-nums'],
|
||||
color: colors.white,
|
||||
@@ -673,7 +673,7 @@ function MenuItem({icon, label, count, bold, onPress}: MenuItemProps) {
|
||||
style={[
|
||||
a.flex_1,
|
||||
a.text_2xl,
|
||||
bold && a.font_heavy,
|
||||
bold && a.font_bold,
|
||||
web(a.leading_snug),
|
||||
]}
|
||||
numberOfLines={1}>
|
||||
|
||||
@@ -36,7 +36,7 @@ let NavSignupCard = ({}: {}): React.ReactNode => {
|
||||
|
||||
<View style={[a.pt_lg]}>
|
||||
<Text
|
||||
style={[a.text_3xl, a.font_heavy, {lineHeight: a.text_3xl.fontSize}]}>
|
||||
style={[a.text_3xl, a.font_bold, {lineHeight: a.text_3xl.fontSize}]}>
|
||||
<Trans>Join the conversation</Trans>
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
@@ -90,7 +90,7 @@ export function DesktopFeeds() {
|
||||
a.text_md,
|
||||
a.leading_snug,
|
||||
current
|
||||
? [a.font_bold, t.atoms.text]
|
||||
? [a.font_semi_bold, t.atoms.text]
|
||||
: [t.atoms.text_contrast_medium],
|
||||
web({
|
||||
marginHorizontal: 2,
|
||||
|
||||
@@ -161,7 +161,7 @@ function ProfileCard() {
|
||||
},
|
||||
]}>
|
||||
<Text
|
||||
style={[a.font_heavy, a.text_sm, a.leading_snug]}
|
||||
style={[a.font_bold, a.text_sm, a.leading_snug]}
|
||||
numberOfLines={1}>
|
||||
{sanitizeDisplayName(
|
||||
profile.displayName || profile.handle,
|
||||
@@ -462,7 +462,7 @@ function NavItem({count, hasNew, href, icon, iconFilled, label}: NavItemProps) {
|
||||
style={[
|
||||
a.absolute,
|
||||
a.text_xs,
|
||||
a.font_bold,
|
||||
a.font_semi_bold,
|
||||
a.rounded_full,
|
||||
a.text_center,
|
||||
a.leading_tight,
|
||||
@@ -509,7 +509,7 @@ function NavItem({count, hasNew, href, icon, iconFilled, label}: NavItemProps) {
|
||||
) : null}
|
||||
</View>
|
||||
{!leftNavMinimal && (
|
||||
<Text style={[a.text_xl, isCurrent ? a.font_heavy : a.font_normal]}>
|
||||
<Text style={[a.text_xl, isCurrent ? a.font_bold : a.font_normal]}>
|
||||
{label}
|
||||
</Text>
|
||||
)}
|
||||
|
||||
@@ -53,7 +53,7 @@ function Inner() {
|
||||
style={[
|
||||
a.flex_1,
|
||||
a.text_sm,
|
||||
a.font_bold,
|
||||
a.font_semi_bold,
|
||||
t.atoms.text_contrast_medium,
|
||||
]}>
|
||||
<Trans>Trending</Trans>
|
||||
|
||||
Reference in New Issue
Block a user