Skip to content

Commit

Permalink
Merge pull request #22 from isaac-pj/main
Browse files Browse the repository at this point in the history
fix(resolve-weight): check extrabold before bold
  • Loading branch information
stafyniaksacha authored Jun 24, 2022
2 parents b151ee5 + 903790e commit 1a2dfdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ const resolveWeight = (weightOrSrc?: string | number) => {
if (weightOrSrc.includes('medium')) return 500
if (weightOrSrc.includes('semibold')) return 600
if (weightOrSrc.includes('demibold')) return 600
if (weightOrSrc.includes('bold')) return 700
if (weightOrSrc.includes('extrabold')) return 800
if (weightOrSrc.includes('ultrabold')) return 800
if (weightOrSrc.includes('bold')) return 700
if (weightOrSrc.includes('black')) return 900
if (weightOrSrc.includes('heavy')) return 900
return 400
Expand Down

0 comments on commit 1a2dfdf

Please sign in to comment.