{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"cc749027c245b36410be87ebabe2c405e6753193","tarball":"https://registry.npmjs.org/@material/typography/-/typography-7.0.0-canary.72ff42330.0.tgz","fileCount":20,"integrity":"sha512-0xoVDDnF3sPWww7Ej4WMqVX2KuLS7tbzyiLMDBZD0Rq+Gae6Cy4gZqc+yU/2ZUGCeLVnMDP/6S6BR4H1aIOYOg==","signatures":[{"sig":"MEQCIGUu1hkNeX5SVrdHDwMnJEaTHtxOWciL5M/495EhObATAiAgVUMJD/89qsm1HVDcsXWqugujs9g/gaFL5f5RlahU/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94276,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1TBZCRA9TVsSAnZWagAAql0QAIMzKEiEhzmtZxDnXJvh\nwFc1i2NBxARQY6N+LRdMQzuHbPDOSXy/OlfpsOD0X6mLHsGHwIbRH9SRN4WL\nghw5XBlBzsgOfQfeAeZN9pg3uoj/I0A4gMmEDxLIMlyoRxalne6sTZ5XThKt\n/T8xbGc9uCYj6jODMujRH9bod0B4xPTAJCaKCYluUgvN1jyH4Fd5GUGrp2Fg\nV+WqebHxOHdCiEnj6C/xvBGexhkIAbdqv9p29eNeCDvtIptDi8hB9Bx/tTrc\ngBVzg3PGBiyGBE83qnM97FCUj9ODL5lWdKOAtXWBXlw2yYfr0rmfAEbKS+Ge\nzZvrcib1+U3kQgq+nawcOjyf4c4KrTz4u1Li1mReg58bC21hqcadyC2iYagQ\ndyQxzturA9ZBXzskxrDEQ7DNmwJkrCzKSMAvjiL3DxWp3u94hoWhNkM9JFIm\ne6J3IsHwqt2KgAsNR+vsEfrP1DbZusz5uJMDxTm85oQmW4w1uEiXt6iHCXck\ns9++uULq1vkEeZ8o1EskHb4E3i6wzkCo3sc1ysEbQvIAGgt5wB4rrJkrswYr\nNd7jR3rHiR3n65kfzgzar6QisyAoiu5m4hjq1aKH5AFE3QAS8YerGxfpvpOB\nNv7J13v1dWDZtzmA0LQI526Nnaxpaqu3yUCnULWs15u122FWi5YVa/fflmNR\ndyna\r\n=UWTg\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### Typography styles\n\nThe typography styles (referred to as `<STYLE>` below) used in the type system:\n\nScale | Description\n--- | ---\n`headline1` | The largest text on the screen, reserved for short, important text or numerals\n`headline2` | Headline variant 2\n`headline3` | Headline variant 3\n`headline4` | Headline variant 4\n`headline5` | Headline variant 5\n`headline6` | Headline variant 6\n`subtitle1` | Smaller than headline, reserved for medium-emphasis text that is shorter in length\n`subtitle2` | Subtitle variant 2\n`body1` | Used for long-form writing\n`body2` | Body variant 2\n`caption` | Used sparingly to annotate imagery\n`button` | A call to action used by different types of buttons\n`overline` | Used sparingly to introduce a headline\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--<STYLE>` | Sets font properties as STYLE. Please see [Typography styles section](#typography-styles)\n\nFor example, the `headline1` style as a CSS class would be `mdc-typography--headline1`.\n\n### CSS Custom Properties\n\nCSS Custom property | Description\n--- | ---\n`--mdc-typography-font-family` | The base font-family\n`--mdc-typography-<STYLE>-font-family` | The font-family for STYLE. Please see [Typography styles section](#typography-styles)\n`--mdc-typography-<STYLE>-font-size` | The font-size for STYLE. Please see [Typography styles section](#typography-styles)\n`--mdc-typography-<STYLE>-line-height` | The line-height for STYLE. Please see [Typography styles section](#typography-styles)\n`--mdc-typography-<STYLE>-font-weight` | The font-weight for STYLE. Please see [Typography styles section](#typography-styles)\n`--mdc-typography-<STYLE>-letter-spacing` | The letter-spacing for STYLE. Please see [Typography styles section](#typography-styles)\n`--mdc-typography-<STYLE>-text-decoration` | The text-decoration for STYLE. Please see [Typography styles section](#typography-styles)\n`--mdc-typography-<STYLE>-text-transform` | The text-transform for STYLE. Please see [Typography styles section](#typography-styles)\n\n### Sass Variables and Mixins\n\nMixin | Description\n--- | ---\n`base` | Sets the font to Roboto\n`typography($style)` | Applies one of the typography styles, including setting the font to Roboto\n`smooth-font` | Adds antialiasing for typography\n`overflow-ellipsis` | Truncates overflow text to one line with an ellipsis\n`baseline($top, $bottom, $display)`| Sets a container's baseline that text content will align to.\n`zero-width-prefix` | Adds an invisible, zero-width prefix to a container's text. This ensures that the baseline is always where the text would be, instead of defaulting to the container bottom when text is empty. Do not use this mixin if the `baseline` mixin is already applied.\n`text-baseline($top, $bottom, $display)`| Sets the baseline of flow text content.\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 CSS custom properties or Sass module/global variables.\n\nWhen using Sass **module** variables, the module must be configured _before_ any other `@use` \nstatements with a variable named `$styles-{style}`. The variable should be assigned to a map \nthat contains all the properties you want to override for a particular style.\n\nWhen using Sass **global** variables, they must be defined _before_ the component is imported by setting a global \nvariable named `$mdc-typography-styles-{style}`.\n\n**Example:** Overriding the button `font-size` and `text-transform` properties.\n\nCSS custom properties:\n\n```css\nhtml {\n  --mdc-typography-button-font-size: 16px;\n  --mdc-typography-button-text-transform: 16px;\n}\n```\n\nSass module variables:\n\n```scss\n@use \"@material/typography\" with (\n  $styles-button: (\n    font-size: 16px,\n    text-transform: none,\n  )\n);\n\n@use \"@material/button\";\n@include button.core-styles;\n```\n\nSass global variables:\n\n```scss\n$mdc-typography-styles-button: (\n  font-size: 16px,\n  text-transform: none,\n);\n\n@import \"@material/button/mdc-button\";\n```\n\n**Example:** Overriding the global `font-family` property.\n\nCSS custom properties:\n\n```css\nhtml {\n  --mdc-typography-font-family: Arial, Helvetica, sans-serif;\n}\n```\n\nSass module variables:\n\n```scss\n@use \"@material/typography\" with (\n  $font-family: unquote(\"Arial, Helvetica, sans-serif\")\n);\n\n@use \"@material/button\";\n@include button.core-styles;\n```\n\nSass global variables:\n\n```scss\n$mdc-typography-font-family: unquote(\"Arial, Helvetica, sans-serif\");\n\n@import \"@material/button/mdc-button\";\n```\n\n**Example:** Overriding the `font-family` property for `headline1` and `font-family` and `font-size` for `headline2`.\n\nCSS custom properties:\n\n```css\nhtml {\n  --mdc-typography-headline1-font-family: Arial, Helvetica, sans-serif;\n  --mdc-typography-headline2-font-family: Arial, Helvetica, sans-serif;\n  --mdc-typography-headline2-font-size: 3.25rem;\n}\n```\n\nSass module variables:\n\n```scss\n@use \"@material/typography\" with (\n  $styles-headline1: (\n    $font-family: unquote(\"Arial, Helvetica, sans-serif\")\n  ),\n  $styles-headline2: (\n    $font-family: unquote(\"Arial, Helvetica, sans-serif\"),\n    $font-size: 3.25rem\n  )\n);\n\n@use ...\n```\n\nSass global variables:\n\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@import ...\n```\n","gitHead":"4c820e9d38fc1bae9a502ae78e336f0e8381f432","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.20.2/node@v10.20.1+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.20.1","dependencies":{"@material/theme":"7.0.0-canary.72ff42330.0","@material/feature-targeting":"7.0.0-canary.72ff42330.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/typography_7.0.0-canary.72ff42330.0_1591029848507_0.3612525674486684","host":"s3://npm-registry-packages"},"_id":"@material/typography@7.0.0-canary.72ff42330.0","version":"7.0.0-canary.72ff42330.0"}