Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Fix line height and add new props
Browse files Browse the repository at this point in the history
  • Loading branch information
EderOBarreto committed Jul 14, 2022
1 parent 9c25717 commit 338aff2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/lib/foundation/gameflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,73 +85,73 @@ export const typography: Typography = {
'header-xl': {
fontSize: '2.25rem',
fontWeight: '600',
lineHeight: '1.2px',
lineHeight: '1.2',
fontFamily: 'Montserrat',
},
'header-lg': {
fontSize: '1.5rem',
fontWeight: '600',
lineHeight: '1.2px',
lineHeight: '1.2',
fontFamily: 'Montserrat',
},
'header-md': {
fontSize: '1.125rem',
fontWeight: '600',
lineHeight: '1.2px',
lineHeight: '1.2',
fontFamily: 'Montserrat',
},
'header-sm': {
fontSize: '1rem',
fontWeight: '600',
lineHeight: '1.2px',
lineHeight: '1.2',
fontFamily: 'Montserrat',
},
'header-xs': {
fontSize: '0.875rem',
fontWeight: '600',
lineHeight: '1.2px',
lineHeight: '1.2',
fontFamily: 'Montserrat',
},
'body-lg': {
fontSize: '0.875rem',
fontWeight: '500',
lineHeight: '1.3px',
fontFamily: 'Mulish',
lineHeight: '1.3',
fontFamily: 'Mulish, sans-serif, Helvetica',
},
'body-md': {
fontSize: '0.75rem',
fontWeight: '500',
lineHeight: '1.3px',
fontFamily: 'Mulish',
lineHeight: '1.3',
fontFamily: 'Mulish, sans-serif, Helvetica',
},
'body-sm': {
fontSize: '0.625rem',
fontWeight: '500',
lineHeight: '1.3px',
fontFamily: 'Mulish',
lineHeight: '1.3',
fontFamily: 'Mulish, sans-serif, Helvetica',
},
button: {
fontSize: '0.875rem',
fontWeight: '500',
lineHeight: '1.2px',
lineHeight: '1.2',
fontFamily: 'Montserrat',
},
link: {
fontSize: '0.875rem',
fontWeight: '500',
lineHeight: '1.2px',
lineHeight: '1.2',
fontFamily: 'Montserrat',
},
'label-md': {
fontSize: '0.75rem',
fontWeight: '500',
lineHeight: '1.0px',
lineHeight: '1.0',
fontFamily: 'Montserrat',
},
'label-sm': {
fontSize: '0.625rem',
fontWeight: '500',
lineHeight: '1.0px',
lineHeight: '1.0',
fontFamily: 'Montserrat',
},
}
Expand Down
4 changes: 4 additions & 0 deletions src/lib/tailwind/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const getConfig = (theme: Theme = gameflowTheme): Partial<TailwindConfig>
animations: animation,
screens,
typography,
motion,
} = theme

const { fontSize, fontWeight, typographyComponents } = getTypographyConfig(typography)
Expand All @@ -31,6 +32,9 @@ export const getConfig = (theme: Theme = gameflowTheme): Partial<TailwindConfig>
header: ['Montserrat', 'Helvetica'],
body: ['Mulish', 'sans-serif'],
},
transitionTimingFunction: {
default: motion.curve,
},
},
plugins: [
plugin(({ addComponents }) => {
Expand Down

0 comments on commit 338aff2

Please sign in to comment.