Typography
...
/*************************** SAAS ABLE / AI THEME - TYPOGRAPHY ***************************/
export default function typography(theme: Theme) {
return {
fontFamily: FONT_ARCHIVO,
// heading - large
h1: {
fontWeight: 400,
fontSize: 57,
// lineHeight = lineHeight in figma / fontSize. i.e 1.123 = 64/57
lineHeight: 1.123,
letterSpacing: -0.25,
[theme.breakpoints.down('md')]: {
fontSize: 45,
lineHeight: 1.156
},
[theme.breakpoints.down('sm')]: {
fontSize: 32,
lineHeight: 1.222
}
},
// heading - medium
h2: {
...
},
// display - medium
h3: {
...
},
// display - small
h4: {
...
},
// label - large
h5: {
...
},
// paragraph - large
h6: {
...
},
// paragraph - medium
body1: {
...
},
// paragraph - small
body2: {
...
},
// label - medium
subtitle1: {
...
},
// label - small
subtitle2: {
...
},
// hyperlink - small
caption: {
...
},
// hyperlink - large
caption1: {
...
},
// hyperlink - medium
caption2: {
...
},
// button
button: {
textTransform: 'capitalize'
}
};
}
```Typography Variant
Property
Value
Description
Last updated