-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat: Basic typography styles #1128
Comments
@marcysutton Do you know if the fonts are system specific? They always seem thinner when I get home and switch to my mac. |
@epelc Roboto is loaded through @font-face and Google fonts. There certainly could be some rendering differences cross-browser, depending on CSS font-smoothing properties used. We'll take a look at that when the work is started on this issue. |
Ok as a note it seems different when switching between chrome on windows and chrome on a mac. |
We'll look at it and do our best to unify the font rendering, but within reason....it is next to impossible to make sites look identical cross-browser and cross-platform. |
@marcysutton Thanks and I didn't mean to push for this I just wanted to mention it so you could be aware of it. As some people only use one platform I tend to switch between them daily. |
@marcysutton I found a cool way to handle typography Start at about 11:30 into it. Essentially they abstract everything to the different types of text you would need and then you just include a mixing to get the correct styles. |
The reason that the fonts change between browsers and look thinner on certain systems is related to the order in which the font files are loaded. I've run across this before, and that was the fix. |
From @rschmukler: "Just a heads up our paddings/margins are currently done with px off of base units... They will probably need to be converted with em" |
Please take a look at this CSS for English and English-Like Typography Gist. From what I have been able to glean from the Material Design spec and the Android developer guidelines, it’s not clear to me how widget dimensions, padding, etc are supposed to respond. In my experience, |
See this Gist about using SASS to calculate lengths in em from lengths specified in px. |
|
@Splaktar Yes. So are |
Thanks for the resources, all. I'm working on creating reusable classes in the framework while setting useful defaults and limiting global styles. Stay tuned for a PR. |
To encourage design consistency and help developers following the Material Design spec, Angular Material should provide typographic defaults and classes establishing common sizes, font-weights, type treatments, etc. It should play nicely with theming and RTL support, if possible.
In the spec:
https://www.google.com/design/spec/style/typography.html#typography-standard-styles
The text was updated successfully, but these errors were encountered: