Skip to content

Commit 9610aac

Browse files
Merge pull request #253 from Shopify/docs/update-theme-definment
Add textVariants to docs
2 parents df0a9bd + 04ab499 commit 9610aac

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

documentation/docs/fundamentals/defining-your-theme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ const theme = createTheme({
3434
l: 24,
3535
xl: 40,
3636
},
37+
textVariants: {
38+
header: {
39+
fontWeight: 'bold',
40+
fontSize: 34,
41+
},
42+
body: {
43+
fontSize: 16,
44+
lineHeight: 24,
45+
},
46+
defaults: {
47+
// We can define a default text variant here.
48+
},
49+
},
3750
});
3851

3952
export type Theme = typeof theme;

0 commit comments

Comments
 (0)