{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"235734a6dc6197b9e345a03b85a9ae7ec046dd33","tarball":"https://registry.npmjs.org/@material/typography/-/typography-5.0.0-canary.ad3bbf782.0.tgz","fileCount":19,"integrity":"sha512-wDnuHsjNDMKgZtuflO6lTCiTrRT00cLPcS69/CE9Ok7arGFR48SDf14VRELHsKWjqysT0uwQnJn5jgb3FCqsvg==","signatures":[{"sig":"MEUCIQCMNVSyin1TGoHFx5n/8tGwOq2Uyapg54Tov+IRwfDv1wIgL40VDBTN/uFwuvutneTLvVlZ1yof7VNf6KdnUUBc/IM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51072,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQarGCRA9TVsSAnZWagAATIEP/1pamNRiiazMqzmYsnBc\nsH7uW9NELC3lKUNFqplvfVQDea460tE2zaXVZUCzN25xxIxVQQJuxen+nHQV\n/d/nWYwRTxdkg1/uoR6vsVOUvdbdsbNRk7ucEguqrGfcVs4SWl1IIyC++2Hl\nNLy1xhEUhJIyIFcibko2yi0ZrC0idYtKi/5Jlakd4AkE+qYLcIvNCqjl6uVj\nU1W6i9tKRURA+EHG48C598OMIt3ZoqN8gwWnbfYnFA2F+YhRaAMqrOo2ThzX\ntrDYFMcKdfHd4VeS0GnKYFDYdWdixMW+k09HfJ/y6CWeyLaJYezzJ7H+473J\n1M/2SXvdS03QbTqrzkbD8kyfL64i4b+O6b+46Aa/oxwirqfGUOYtBQnnhkdU\n6F1DZFJs0rWKIRdnu9ZYwVtc4QewgmYx1nKVNd5PGDgXTGpWK1lfbGqSNTKv\nFksAEFV6hlTqVLwsTtn6PUWIN+COsunzzrS4YRXlqgvNYrc/5NXQhmmUCubA\ndwWEGNpULjjfFRLOQ15PC2fPIPaCbB1o6p0Wash23+waIP0WOBH4PhjZwev8\n8y3kak+zWVBrGXBhOjrKn601YDslLqFrIn/FwQ+FTtKCXKXOEb81+MP1XYq6\nGZJ9FIDEwdQBAQnOJ6Fc05gJgy5trXkrZVpr+5/LD8cb5xjHFwHRWAUA09IO\ntbPZ\r\n=Qwjz\r\n-----END PGP SIGNATURE-----\r\n"},"name":"@material/typography","readme":"<!--docs:\ntitle: \"Typography\"\nlayout: detail\nsection: components\nexcerpt: \"Typographic scale that handles a set of type sizes\"\niconId: typography\npath: /catalog/typography/\n-->\n\n# Typography\n\nMaterial Design's text sizes and styles were developed to balance content density and reading comfort under typical usage conditions.\n\nMDC Typography is a foundational module that applies these styles to MDC Web components. The typographic styles in this module are derived from thirteen styles:\n\n* Headline 1\n* Headline 2\n* Headline 3\n* Headline 4\n* Headline 5\n* Headline 6\n* Subtitle 1\n* Subtitle 2\n* Body 1\n* Body 2\n* Caption\n* Button\n* Overline\n\n## Design & API Documentation\n\n<ul class=\"icon-list\">\n  <li class=\"icon-list-item icon-list-item--spec\">\n    <a href=\"https://material.io/go/design-typography\">Material Design guidelines: Typography</a>\n  </li>\n  <li class=\"icon-list-item icon-list-item--link\">\n    <a href=\"https://material-components.github.io/material-components-web-catalog/#/component/typography\">Demo</a>\n  </li>\n</ul>\n\n## Installation\n\n```\nnpm install @material/typography\n```\n\n## Basic Usage\n\n### HTML Structure\n\nWe recommend using Roboto from Google Fonts:\n\n```html\n<head>\n  <link href=\"https://fonts.googleapis.com/css?family=Roboto:300,400,500\" rel=\"stylesheet\">\n</head>\n<body class=\"mdc-typography\">\n  <h1 class=\"mdc-typography--headline1\">Big header</h1>\n</body>\n```\n\n### Styles\n\n```css\n@use \"@material/typography/mdc-typography\";\n```\n\n## Style Customization\n\n### CSS Classes\n\nSome components have a set typographic style. For example, a raised MDC Card uses Body 1, Body 2, and Headline styles.\n\nIf you want to set the typographic style of an element, which is not a Material Design component, you can apply the following CSS classes.\n\nCSS Class | Description\n--- | ---\n`mdc-typography` | Sets the font to Roboto\n`mdc-typography--headline1` | Sets font properties as Headline 1\n`mdc-typography--headline2` | Sets font properties as Headline 2\n`mdc-typography--headline3` | Sets font properties as Headline 3\n`mdc-typography--headline4` | Sets font properties as Headline 4\n`mdc-typography--headline5` | Sets font properties as Headline 5\n`mdc-typography--headline6` | Sets font properties as Headline 6\n`mdc-typography--subtitle1` | Sets font properties as Subtitle 1\n`mdc-typography--subtitle2` | Sets font properties as Subtitle 2\n`mdc-typography--body1` | Sets font properties as Body 1\n`mdc-typography--body2` | Sets font properties as Body 2\n`mdc-typography--caption` | Sets font properties as Caption\n`mdc-typography--button` | Sets font properties as Button\n`mdc-typography--overline` | Sets font properties as Overline\n\n### Sass Variables and Mixins\n\nMixin | Description\n--- | ---\n`base` | Sets the font to Roboto\n`mdc-typography($style)` | Applies one of the typography styles, including setting the font to Roboto\n`overflow-ellipsis` | Truncates overflow text to one line with an ellipsis\n`baseline-top($distance)` | Sets the baseline height of a text element from top.\n`baseline-bottom($distance)` | Sets the distance from text baseline to bottom. This mixin should be combined with `baseline-top` when setting baseline distance to following text element.\n\n> **A note about `overflow-ellipsis`**, `overflow-ellipsis` should only be used if the element is `display: block` or `display: inline-block`.\n\n#### `$style` Values\n\nThese styles can be used as the `$style` argument for the `mdc-typography` mixin.\n\n* `headline1`\n* `headline2`\n* `headline3`\n* `headline4`\n* `headline5`\n* `headline6`\n* `subtitle1`\n* `subtitle2`\n* `body1`\n* `body2`\n* `caption`\n* `button`\n* `overline`\n\n#### Overriding Styles\n\nAll styles can be overridden using Sass global variables _before_ the component is imported by setting a global \nvariable named `$mdc-typography-styles-{style}`. The variable should be assigned a map that contains all the properties\nyou want to override for a particular style.\n\nExample: Overriding the button `font-size` and `text-transform` properties.\n\n```scss\n$mdc-typography-styles-button: (\n  font-size: 16px,\n  text-transform: none,\n);\n\n@use \"@material/button/mdc-button\";\n```\n\nExample: Overriding the global `font-family` property. \n```scss\n$mdc-typography-font-family: unquote(\"Arial, Helvetica, sans-serif\");\n\n...\n@use ...\n```\n\nExample: Overriding the `font-family` property for `headline1` and `font-family` and `font-size` for `headline2`.\n```scss\n$mdc-typography-styles-headline1: (\n  font-family: unquote(\"Arial, Helvetica, sans-serif\")\n);\n$mdc-typography-styles-headline2: (\n  font-family: unquote(\"Arial, Helvetica, sans-serif\"),\n  font-size: 3.25rem\n);\n\n...\n@use ...\n```\n","gitHead":"48e565307134ef2e860fdfd1a8ce59613a783ba7","license":"MIT","_npmUser":{"name":"abhiomkar","email":"abhiomkar@gmail.com"},"homepage":"https://github.com/material-components/material-components-web#readme","keywords":["material components","material design","typography","font"],"repository":{"url":"git+https://github.com/material-components/material-components-web.git","type":"git","directory":"packages/mdc-typography"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Typography classes, mixins, and variables for Material Components for the web","directories":{},"maintainers":[{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"aomarks","email":"aomarks@google.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"williamernest","email":"williamernest@google.com"}],"_nodeVersion":"10.19.0","dependencies":{"@material/feature-targeting":"5.0.0-canary.ad3bbf782.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/typography_5.0.0-canary.ad3bbf782.0_1581361861849_0.2336683812654543","host":"s3://npm-registry-packages"},"_id":"@material/typography@5.0.0-canary.ad3bbf782.0","version":"5.0.0-canary.ad3bbf782.0"}