template_0205

This commit is contained in:
Sofio
2026-02-05 13:16:05 +08:00
commit d93e4d9c9f
197 changed files with 52810 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
// TODO: write documentation about fonts and typography along with guides on how to add custom fonts in own
// markdown file and add links from here
import { Platform } from "react-native"
import {
SpaceGrotesk_300Light as spaceGroteskLight,
SpaceGrotesk_400Regular as spaceGroteskRegular,
SpaceGrotesk_500Medium as spaceGroteskMedium,
SpaceGrotesk_600SemiBold as spaceGroteskSemiBold,
SpaceGrotesk_700Bold as spaceGroteskBold,
} from "@expo-google-fonts/space-grotesk"
export const customFontsToLoad = {
spaceGroteskLight,
spaceGroteskRegular,
spaceGroteskMedium,
spaceGroteskSemiBold,
spaceGroteskBold,
}
const fonts = {
spaceGrotesk: {
// Cross-platform Google font.
light: "spaceGroteskLight",
normal: "spaceGroteskRegular",
medium: "spaceGroteskMedium",
semiBold: "spaceGroteskSemiBold",
bold: "spaceGroteskBold",
},
helveticaNeue: {
// iOS only font.
thin: "HelveticaNeue-Thin",
light: "HelveticaNeue-Light",
normal: "Helvetica Neue",
medium: "HelveticaNeue-Medium",
},
courier: {
// iOS only font.
normal: "Courier",
},
sansSerif: {
// Android only font.
thin: "sans-serif-thin",
light: "sans-serif-light",
normal: "sans-serif",
medium: "sans-serif-medium",
},
monospace: {
// Android only font.
normal: "monospace",
},
}
export const typography = {
/**
* The fonts are available to use, but prefer using the semantic name.
*/
fonts,
/**
* The primary font. Used in most places.
*/
primary: fonts.spaceGrotesk,
/**
* An alternate font used for perhaps titles and stuff.
*/
secondary: Platform.select({ ios: fonts.helveticaNeue, android: fonts.sansSerif }),
/**
* Lets get fancy with a monospace font!
*/
code: Platform.select({ ios: fonts.courier, android: fonts.monospace }),
}