Skip to content

Commit acde0f1

Browse files
committed
add font
1 parent 6f6ab47 commit acde0f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/guides/customizing-clerk/clerk-theme.android.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ You can customize fonts by modifying the `typography` property of the `ClerkThem
181181
#### Using a font family name
182182

183183
```kotlin
184-
AuthView(clerkTheme = ClerkTheme(typography = ClerkTypography(displaySmall = ClerkTypographyDefaults.displaySmall.copy(fontSize = 24.sp))))
184+
val fontFamily = FontFamily(Font(R.font.custom_font))
185+
186+
AuthView(clerkTheme = ClerkTheme(typography = ClerkTypography(displaySmall = ClerkTypographyDefaults.displaySmall.copy(fontSize = 24.sp, fontFamily = fontFamily))))
185187
```
186188

187189
## Light and Dark mode support

0 commit comments

Comments
 (0)