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

Typography classes & styles #2093

Closed
jvine opened this issue Mar 7, 2019 · 0 comments
Closed

Typography classes & styles #2093

jvine opened this issue Mar 7, 2019 · 0 comments
Assignees

Comments

@jvine
Copy link
Collaborator

jvine commented Mar 7, 2019

Below are the font sizes, weights, and letter-spacing for the classes defined here:
https://material.io/develop/web/components/typography/

(Specify rems; px are for reference.)

class rem px weight line-height letter-spacing other
Headline 1 2.822rem 45.159 300 1.2em -.015em
Headline 2 1.575rem 25.192 300 1.33em 0
Headline 3 1.383rem 22.127 300 1.33em 0
Headline 4 1.215rem 19.436 400 1.45em 0.007em
Headline 5 1.138rem 18.215 400 1.55em 0.005em
Headline 6 1.067rem 17.072 400 1.6em 0.01em
Subtitle 1 0.937rem 14.995 300 1.6em .015em
Subtitle 2 0.878rem 14.053 500 1.75em .02em
Body 1 1rem 16px 400 1.6em 0
Body 2 0.878rem 14.053 400 1.6em .015em
BUTTON 0.878rem 14.053 500 2.25rem 0.09em uppercase
Caption 0.772rem 12.344 400 1.6rem 0.033em
OVERLINE 0.678rem 10.842 500 2em .166em uppercase

assign classes

Some specific class assignments are needed to override default sizes.

element assign class
window title <h2> Heading 6
companion window <h3> Subtitle 1
<dt> Subtitle 2
<dd> Body 1
"Current item" etc. labels in About panel OVERLINE
window dialog <h3> Heading 2 (we don't have any of these yet)

typography

@jvine jvine added the Mirador3 label Mar 7, 2019
@cbeer cbeer self-assigned this Mar 8, 2019
aeschylus added a commit that referenced this issue Mar 8, 2019
@ggeisler ggeisler mentioned this issue Mar 21, 2019
4 tasks
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

No branches or pull requests

2 participants