{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"b45e6a18a7b7536d75794351ff2879ad6f2c6ce3","tarball":"https://registry.npmjs.org/@material/typography/-/typography-10.0.0-canary.ea55b87ca.0.tgz","fileCount":22,"integrity":"sha512-jUqfwDXtLD7ScDlTSWXMa/gNgurrXeU8u1IUGQPrqrnAJsRTfc+2X9KfNN1p81C42XpwOJ2vC9GZos95MjVP0g==","signatures":[{"sig":"MEQCIBSqkiDEuts900JkHhxPbRxcnmu8SX6N0XtXSV17aekuAiAvkxck6/ghj6wucMLco7qqPHu/4HaeOLOL+XTNpjC0wA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":103662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEKmgCRA9TVsSAnZWagAAU8sP/i89GUFEi96zjxRZgQDH\nEa+AR3uPQt434F58tzisW8raKuINWaP89MDhQFlgaV2Qi1mtWeUZ5aUpAZHV\nCGSq0r2WPxZK5LWbinU+Oo85Bovrg4AAA5h7UBB/AEklm+JnBt5mR08KF+xW\nm8HjODqEj+vMzgl+3R5zJLDoK5UB9/CZKlPtmcCqTMsqFoULfUVKmnInmJ6e\n9k6cmONtOYs/5gseYYiLaCCJB80AEbJ4KlWWfFVOqeDnIqLy4XidVXRb7oKa\nWaUYzNIQ7b4r1H6+K8liwYZY3/PQ5KX9wj3u9yPKf8RtWdODHSozglmFkJcJ\ntrP4X1h4GcFGHbBCdAY8DFh8jJeyAAZxkl07IXnHTDxqfU+So4l0gSgl2chq\nr+KjFkEsesGsQSCBSGKAY7/Mlif5bDvlJcDAYmZOAmhvQl9DoQSzNcbVnsv8\nWPvQfuSIQzIDSsF7DtpbQ0+KiYIt/QQYzCrb1VqhVVXRo3ja6anuIgSvNaNv\ndZGvtkyw/0J97aOt/THhL/rCDu++CBhEwU13Kqw2tr6LZNvX+efd4hp32Jmo\n6rEXHcomPEbhAALLFiPgWT68bma2m0KhM8dLNpbICqD9m+gsCzC57wGqdyV/\nBk3o5sNjPBI0B8/trzh+gb0uYXtzJsEJZeLvtHutH1o0RH20pHFo2rgwJP2h\nA8bT\r\n=eWrQ\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: none;\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":"00e7569feb0aac4c4dbbfb9b292c9f53adb608bd","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.23.0+x64 (linux)","description":"Typography classes, mixins, and variables for Material Components for the web","directories":{},"maintainers":[{"name":"material-admin","email":"aprigogin+npm@google.com"},{"name":"abhiomkar","email":"abhiomkar@gmail.com"},{"name":"azakus","email":"dfreedm2@gmail.com"},{"name":"bicknellr","email":"bicknellr@gmail.com"},{"name":"bwobrien","email":"obrien.test@gmail.com"},{"name":"lynnjepsen","email":"lynnjepsen@google.com"},{"name":"acdvorak","email":"acdvorak@gmail.com"},{"name":"kfranqueiro","email":"kenneth.franqueiro@gmail.com"},{"name":"aprigogin","email":"andrey.prigogin@gmail.com"},{"name":"patrickrodee","email":"prodee@google.com"},{"name":"bonniez","email":"bonniez@google.com"},{"name":"moog16","email":"mattgoo@gmail.com"},{"name":"williamernest","email":"williamernest@google.com"},{"name":"aomarks","email":"aomarks@gmail.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"ssuarez","email":"sayrisuarez@google.com"},{"name":"taylorv","email":"brian.t.vann@gmail.com"}],"sideEffects":false,"_nodeVersion":"10.23.0","dependencies":{"@material/theme":"10.0.0-canary.ea55b87ca.0","@material/feature-targeting":"10.0.0-canary.ea55b87ca.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/typography_10.0.0-canary.ea55b87ca.0_1611704735655_0.838275621158207","host":"s3://npm-registry-packages"},"_id":"@material/typography@10.0.0-canary.ea55b87ca.0","version":"10.0.0-canary.ea55b87ca.0"}