-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs(material/theming): rewrite typography guide for @use
#22366
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments but LGTM - yay theming! 👍
@TeriGlover Can you have a look at this content? @jelbourn Is there a way to stage this content so we can see how it renders on the screen? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a few nits.
guides/typography.md
Outdated
``` | ||
| Name | Description | | ||
|-----------------|-----------------------------------------------------------------------------| | ||
| `display-4` | Large, one-off header, usually at the top of the page (e.g. a hero header). | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we change up the wording between the different display-
values? Otherwise it looks like they're all the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH I don't really know what differentiates them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Their font sizes are different:
$display-4: define-typography-level(112px, 112px, 300, $letter-spacing: -0.05em),
$display-3: define-typography-level(56px, 56px, 400, $letter-spacing: -0.02em),
$display-2: define-typography-level(45px, 48px, 400, $letter-spacing: -0.005em),
$display-1: define-typography-level(34px, 40px, 400),
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant semantically, since they're all just different flavors of big. I think you're right, though, that explicitly saying the font-size is really the only meaningful way to convey the difference.
0cd93a3
to
08181d1
Compare
08181d1
to
af51007
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, good job explaining all the facets. Feel free to mark merge ready
when you want
guides/typography.md
Outdated
|
||
A **typography level** is a collection of typographic styles that corresponds to a specific | ||
part of an application's structure, such as a header. Each level includes styles for font family, | ||
font weight, font size, and letter-spacing. Angular Material uses the [typography levels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
font weight, font size, and letter-spacing. Angular Material uses the [typography levels | |
font weight, font size, and letter spacing. Angular Material uses the [typography levels |
This change completely rewrites the typography guide to be more complete, correct, and concise. Summary of changes: * Explain the concepts of "typography level" and "typography config". * Ensure all content is conceptual and not task-based. * Use new Sass `@use` API introduiced in angular#22173 * Split up level descriptions from CSS classes * Clarify that the system currently uses the 2014-era typography levels This is the second PR in a series, following angular#22268. After this will be PRs for theming-your-components, customizing-component-styles, and new docs for strong focus indicators.
af51007
to
d259c4b
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This change completely rewrites the typography guide to be more
complete, correct, and concise.
Summary of changes:
@use
API introduiced in feat(material/core): expose new @use-based Sass API #22173This is the second PR in a series, following #22268. After this will be
PRs for theming-your-components, customizing-component-styles, and new
docs for strong focus indicators.