mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-10-05 19:28:26 +00:00
55 lines
1.2 KiB
TypeScript
55 lines
1.2 KiB
TypeScript
// 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'
|
|
|
|
const fonts = {
|
|
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: Platform.select({
|
|
ios: fonts.helveticaNeue,
|
|
android: fonts.sansSerif,
|
|
}),
|
|
/**
|
|
* 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}),
|
|
}
|