diff options
author | Eric Bailey <git@esb.lol> | 2024-09-20 17:29:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 17:29:58 -0500 |
commit | 7e2456b906563464c8e43867e62f07df9109bc2b (patch) | |
tree | 8dfca319f8b96190b7e83eb9ba37b17c24a2cb46 /src/components/dialogs/nuxs/TenMillion/index.tsx | |
parent | 4161e233200cc1d111faef47f05881e44ab4e731 (diff) | |
download | voidsky-7e2456b906563464c8e43867e62f07df9109bc2b.tar.zst |
[Neue] Font weights (#5442)
* Align all font weights * Only load necessary fonts * Also comment out from hook
Diffstat (limited to 'src/components/dialogs/nuxs/TenMillion/index.tsx')
-rw-r--r-- | src/components/dialogs/nuxs/TenMillion/index.tsx | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/components/dialogs/nuxs/TenMillion/index.tsx b/src/components/dialogs/nuxs/TenMillion/index.tsx index 896082409..21e775a10 100644 --- a/src/components/dialogs/nuxs/TenMillion/index.tsx +++ b/src/components/dialogs/nuxs/TenMillion/index.tsx @@ -19,10 +19,10 @@ import {isIOS, isNative} from '#/platform/detection' import {useModerationOpts} from '#/state/preferences/moderation-opts' import {useProfileQuery} from '#/state/queries/profile' import {useAgent, useSession} from '#/state/session' -import {useComposerControls} from 'state/shell' +import {useComposerControls} from '#/state/shell' import {formatCount} from '#/view/com/util/numeric/format' +import * as Toast from '#/view/com/util/Toast' import {Logomark} from '#/view/icons/Logomark' -import * as Toast from 'view/com/util/Toast' import { atoms as a, ThemeProvider, @@ -441,10 +441,10 @@ export function TenMillionInner({ allowFontScaling={false} style={[ a.absolute, + a.font_heavy, { color: t.palette.primary_500, fontSize: 32, - fontWeight: '900', width: 32, top: isNative ? -10 : 0, left: 0, @@ -462,11 +462,11 @@ export function TenMillionInner({ style={[ a.relative, a.text_center, + a.font_heavy, { fontStyle: 'italic', fontSize: getFontSize(userNumber), lineHeight: getFontSize(userNumber), - fontWeight: '900', letterSpacing: -2, }, ]}> @@ -536,7 +536,7 @@ export function TenMillionInner({ style={[ a.flex_1, a.text_sm, - a.font_semibold, + a.font_bold, a.leading_snug, lightTheme.atoms.text_contrast_medium, ]}> @@ -551,7 +551,7 @@ export function TenMillionInner({ style={[ a.flex_1, a.text_sm, - a.font_semibold, + a.font_bold, a.leading_snug, a.text_right, lightTheme.atoms.text_contrast_low, @@ -643,14 +643,7 @@ export function TenMillionInner({ <View style={[gtMobile ? a.p_2xl : a.p_xl]}> <Text allowFontScaling={false} - style={[ - a.text_5xl, - a.leading_tight, - a.pb_lg, - { - fontWeight: '900', - }, - ]}> + style={[a.text_5xl, a.leading_tight, a.pb_lg, a.font_heavy]}> <Trans>Thanks for being one of our first 10 million users.</Trans> </Text> |