Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add font weight global variables #6171

Merged
merged 1 commit into from
Feb 19, 2018
Merged

Add font weight global variables #6171

merged 1 commit into from
Feb 19, 2018

Conversation

jlukic
Copy link
Member

@jlukic jlukic commented Feb 19, 2018

Adds font weight variables ala #6167

@jlukic jlukic merged commit fba3feb into next Feb 19, 2018
@jaridmargolin
Copy link

Heyo!!!! Thank you for getting this in so fast 🙌

Just to ensure I understand how this differs from the original PR.

  1. @fontWeightNormal -> @normal
  2. @fontWeightBold -> @bold
  3. Remove @fontWeightIcon (wasn't entirely sure if this was necessary in the first place)
  4. Only update bold/normal values within the default theme (I had made updates across all themes)

Thanks again :)

@jlukic
Copy link
Member Author

jlukic commented Feb 23, 2018

You can now just put in a component's theme variables, i.e. @bold: 600; to modify how it handles bold.

To modify it globally add @bold: 600; to site.variables for theme.

The general principle is all variables are parsed per component, so you dont have to worry about namespace collisions between components.

@headerWeight: bold;
@headerTextTransform: normal;
@headerWeight: @bold;
@headerTextTransform: @normal;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@headerTextTransform: @normal;

This is right?

@@ -285,8 +285,8 @@
@tieredActiveItemBackground: #FCFCFC;
@tieredActiveMenuBackground: #FCFCFC;

@tieredSubMenuTextTransform: normal;
@tieredSubMenuFontWeight: normal;
@tieredSubMenuTextTransform: @normal;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tieredSubMenuTextTransform: @normal;

Text transform shouldn't use font weight value I think.

@@ -61,8 +61,8 @@
@footerColor: @textColor;
@footerVerticalPadding: @cellVerticalPadding;
@footerHorizontalPadding: @cellHorizontalPadding;
@footerFontStyle: normal;
@footerFontWeight: normal;
@footerFontStyle: @normal;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@footerFontStyle: @normal;

Font style using font weight value.

@@ -152,8 +152,8 @@

@orBackgroundColor: @white;
@orTextShadow: @invertedTextShadow;
@orTextStyle: normal;
@orTextWeight: bold;
@orTextStyle: @normal;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@orTextStyle: @normal;

Text style using font weight value.

@fontWeight: normal;
@fontStyle: normal;
@fontWeight: @normal;
@fontStyle: @normal;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fontStyle: @normal;

Font style using font weight value.

@dateFontWeight: normal;
@dateFontStyle: normal;
@dateFontWeight: @normal;
@dateFontStyle: @normal;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dateFontStyle: @normal;

Font style using font weight value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants