diff options
author | Eric Bailey <git@esb.lol> | 2024-10-03 20:22:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-03 20:22:54 -0500 |
commit | ce53b3a2648732ee67abd3cf4333f154031bd7e5 (patch) | |
tree | f90cf7326fbba9478f75586cd4851ea78adc135b /src/alf/tokens.ts | |
parent | eb3b01d0adc5d5c053e1d350c087941b56106497 (diff) | |
download | voidsky-ce53b3a2648732ee67abd3cf4333f154031bd7e5.tar.zst |
Font tweaks (#5597)
* Increase fontWeight on android * Use atoms for a couple stray fontWeights * Rm unused file
Diffstat (limited to 'src/alf/tokens.ts')
-rw-r--r-- | src/alf/tokens.ts | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/alf/tokens.ts b/src/alf/tokens.ts index f3ac17e6a..9ea585ee7 100644 --- a/src/alf/tokens.ts +++ b/src/alf/tokens.ts @@ -1,6 +1,6 @@ -import {Platform} from 'react-native' +import {isAndroid} from '#/platform/detection' -export const TRACKING = Platform.OS === 'android' ? 0.1 : 0 +export const TRACKING = isAndroid ? 0.1 : 0 export const color = { temp_purple: 'rgb(105 0 255)', @@ -51,12 +51,9 @@ export const borderRadius = { * These correspond to Inter font files we actually load. */ export const fontWeight = { - regular: '400', - // medium: '500', - semibold: '600', - // bold: '700', - extrabold: '800', - // black: '900', + normal: '400', + bold: isAndroid ? '700' : '600', + heavy: isAndroid ? '900' : '800', } as const export const gradients = { |