Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Custom fontFamily? #83

Open
iamtomffee opened this issue Mar 3, 2021 · 4 comments
Open

[Docs] Custom fontFamily? #83

iamtomffee opened this issue Mar 3, 2021 · 4 comments
Assignees

Comments

@iamtomffee
Copy link

Documentation Link

https://magnus-ui.com/docs/customization/

Describe the problem

Could you provide an object of all theme customization settings? How the developer can change the default font your UI is using?

Describe the improvement

Add example of how to change default fontFamily settings.

@dhruvsaxena1998
Copy link

Is there any way to set fontFamily via theme customization?

@dhruvsaxena1998
Copy link

Ok after a while found out the default theme options, https://github.com/jsartisan/react-native-magnus/blob/master/src/style/defaultTheme.ts

also we can give default font-family like this in same ThemeProvider option, working and tested. Though it's not given in defaultStyles.

fontFamily: {
  normal: 'Poppins-Regular',
  bold: 'Poppins-Bold',
  100: 'Poppins-Light',
  500: 'Poppins-Medium',
  700: 'Poppins-SemiBold',
  900: 'Poppins-ExtraBold',
}

@radelcom
Copy link

radelcom commented Aug 15, 2021

@dhruvsaxena1998 does loading a custom font work for you? I tried to load a custom font Google Font Inter but does not seem to work.

@ayrtonlacerda
Copy link

Don't Work in iOS

version 1.0.62
Screen Shot 2021-12-26 at 20 06 42
2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants