Skip to content

Commit 1a2dfdf

Browse files
Merge pull request #22 from isaac-pj/main
fix(resolve-weight): check extrabold before bold
2 parents b151ee5 + 903790e commit 1a2dfdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/custom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ const resolveWeight = (weightOrSrc?: string | number) => {
8888
if (weightOrSrc.includes('medium')) return 500
8989
if (weightOrSrc.includes('semibold')) return 600
9090
if (weightOrSrc.includes('demibold')) return 600
91-
if (weightOrSrc.includes('bold')) return 700
9291
if (weightOrSrc.includes('extrabold')) return 800
9392
if (weightOrSrc.includes('ultrabold')) return 800
93+
if (weightOrSrc.includes('bold')) return 700
9494
if (weightOrSrc.includes('black')) return 900
9595
if (weightOrSrc.includes('heavy')) return 900
9696
return 400

0 commit comments

Comments
 (0)