Skip to content

Commit

Permalink
Merge pull request #122 from finos/evangk6-563
Browse files Browse the repository at this point in the history
update font weight defaults
  • Loading branch information
evangk6 authored Oct 6, 2023
2 parents 277ae73 + 9fd3830 commit c7bb96e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/atoms/fontsSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export class FontsSettings extends Atom {
this.baseFontSize = new PropertyNumber("Base font size", false, this, {defaultValue: 16});
this.fontWeights.push(new PropertyNumber(`Font weight 0`, false, this, {defaultValue: 300}))
this.fontWeights.push(new PropertyNumber(`Font weight 1`, false, this, {defaultValue: 400}))
this.fontWeights.push(new PropertyNumber(`Font weight 2`, false, this, {defaultValue: 500}))
this.fontWeights.push(new PropertyNumber(`Font weight 3`, false, this, {defaultValue: 600}))
this.fontWeights.push(new PropertyNumber(`Font weight 4`, false, this, {defaultValue: 700}))
this.fontWeights.push(new PropertyNumber(`Font weight 2`, false, this, {defaultValue: 600}))
this.fontWeights.push(new PropertyNumber(`Font weight 3`, false, this, {defaultValue: 700}))
this.fontWeights.push(new PropertyNumber(`Font weight 4`, false, this, {defaultValue: 800}))
this.standardLineHeight = new PropertyNumber("Standard Line Height", false, this, {defaultValue: 160});
this.headerLineHeight = new PropertyNumber("Header Line Height", false, this, {defaultValue: 110});
this.smallLineHeight = new PropertyNumber("Small Text Line Height", false, this, {defaultValue: 100});
Expand Down
2 changes: 1 addition & 1 deletion src/atoms/typographyStyling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class TypographyStyling extends Node {
getDefaultValue: this.getFontFamilyDefaultSelectableValue.bind(this),
});
this.fontSize = new PropertyFontRange("Font Size", false, this, 0, 128, defaultFontSize);
this.fontWeight = new PropertyNumberSelectable("Font Weight", false, this, [100, 300, 400, 500, 600, 700, 800, 900, 1000], defaultFontWeight);
this.fontWeight = new PropertyNumberSelectable("Font Weight", false, this, [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000], defaultFontWeight);
this.lineHeight = new PropertyPercentageSelectable("Line Height", false, this, [130, 160], defaultLineHeight);
this.letterSpacing = new PropertyPixelRange("Character Spacing", false, this, -2, 10, defaultLetterSpacing);
}
Expand Down

0 comments on commit c7bb96e

Please sign in to comment.