Skip to content

millionscard/cash

Repository files navigation

Millions Design System

Cash

React Native implementation of Millions Design System

CI status

Getting started

Install dependencies

npm install

Start development environment

npm run ios
npm run android

Custom Fonts

iOS uses the "PostScript name" of the font, while Android uses the "font file name".
To prevent platform specific conditions our font file name is the same as the PostScript name.

Currently these are the fonts available:

Inter-Thin
Inter-ExtraLight
Inter-Light
Inter-Medium
Inter-Regular
Inter-SemiBold
Inter-Bold
Inter-ExtraBold
Inter-Black

FuturaPT-Bold
FuturaPT-Book
FuturaPT-Demi
FuturaPT-ExtraBold
FuturaPT-Heavy
FuturaPT-Light
FuturaPT-Medium

To get the PostScript name of a font, use the following command:

(cd assets/fonts && for file in "$arg"*.{ttf,otf}; do fc-scan --format "%{postscriptname}\n" $file; done)

Note: fontconfig is available via homebrew brew cask install fontconfig.

Start development environment of the docs

npm run docs