This commit is contained in:
zimplexing
2025-06-27 16:16:14 +08:00
commit 7e6095d2bb
111 changed files with 20915 additions and 0 deletions

39
constants/TextStyles.ts Normal file
View File

@@ -0,0 +1,39 @@
/**
* Below are text styles used in the app, primarily in the ThemedText component.
*/
import {TextStyle} from 'react-native';
export const textStyles = function (
scale: number,
linkColor: string,
): {
[key: string]: TextStyle & {fontSize: number; lineHeight: number};
} {
return {
default: {
fontSize: 16 * scale,
lineHeight: 24 * scale,
},
defaultSemiBold: {
fontSize: 16 * scale,
lineHeight: 24 * scale,
fontWeight: '600',
},
title: {
fontSize: 32 * scale,
fontWeight: 'bold',
lineHeight: 32 * scale,
},
subtitle: {
fontSize: 20 * scale,
lineHeight: 20 * scale,
fontWeight: 'bold',
},
link: {
lineHeight: 30 * scale,
fontSize: 16 * scale,
color: linkColor,
},
};
};