React Native implementation of Millions Design System
npm install
npm run ios
npm run android
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
.
npm run docs