Skip to content

Commit

Permalink
Add textVariants to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianekstrom committed Apr 11, 2023
1 parent df0a9bd commit 04ab499
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions documentation/docs/fundamentals/defining-your-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ const theme = createTheme({
l: 24,
xl: 40,
},
textVariants: {
header: {
fontWeight: 'bold',
fontSize: 34,
},
body: {
fontSize: 16,
lineHeight: 24,
},
defaults: {
// We can define a default text variant here.
},
},
});

export type Theme = typeof theme;
Expand Down

0 comments on commit 04ab499

Please sign in to comment.