Skip to content

Commit

Permalink
Merge pull request #37 from sodality-tech/fontWeights
Browse files Browse the repository at this point in the history
account for pascal and camel case font weights
  • Loading branch information
mark-nicepants committed Jun 21, 2024
2 parents 27f3173 + 8f78e86 commit ad46ac7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lib/models/font_weight_value.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,19 @@ class FontWeightValue {

final _fontWeightMap = {
100: ['thin', 'hairline'],
200: ['extra-light', 'ultra-light'],
200: ['extra-light', 'ultra-light', 'extralight', 'ultralight'],
300: ['light'],
400: ['normal', 'regular', 'book'],
500: ['medium'],
600: ['semi-bold', 'demi-bold'],
600: ['semi-bold', 'demi-bold', 'semibold', 'demibold'],
700: ['bold'],
800: ['extra-bold', 'ultra-bold'],
900: ['black', 'heavy', 'extra-black', 'ultra-black'],
800: ['extra-bold', 'ultra-bold', 'extrabold', 'ultrabold'],
900: [
'black',
'heavy',
'extra-black',
'ultra-black',
'extrablack',
'ultrablack'
],
};

0 comments on commit ad46ac7

Please sign in to comment.