{"bugs":{"url":"https://github.com/material-components/material-components-web/issues"},"dist":{"shasum":"3d1de38bc6f793cd4ef1b82c0c3b320f3557cf7e","tarball":"https://registry.npmjs.org/@material/typography/-/typography-8.0.0-canary.596e98424.0.tgz","fileCount":22,"integrity":"sha512-5bbGCWsf1f9HfHJ+pwA9wn6R6StQTi6cOf2R6ugAazo7z4iNtGMg2yn0sm3drWx7RCIo0AZ2QUZ34QHdPj3znA==","signatures":[{"sig":"MEYCIQDzR7LLQLMPdSgQtgbgwCYoJUjLGwo5yClbAsW0AZTGBQIhAPNNgJ0+2zeCj7VAedays7gElSOUgdW8ZPJZB3RDif0j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":103767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmZZOCRA9TVsSAnZWagAAwlwP/1leXzpk1Bq+dKcseK7m\nXG9LNJQNXjQAhlbf4td6Us2Ip+FsgXLbD9oRiG0pzSd4YfOkvDPfwvzfp2DZ\newREX56WRRBgvYiXuyDZ395KWtyIUMw2bkPI1kjNcOxZCPeIpW2XnJQJGMHT\nQ9aBZvbbXai4akiPqg/tN6GW3ily6zaGrjL/jUaDjG7YKX//fyQxmtuhnpnW\nuGl7Jjp/cgWFREtQineYtTJ6kvSgzPs/M4v5kC77NJmCoVdw+/B0F56MJzdu\nela86BiKpLRKRqBNxzZ8N6oQm/7gHhsMsdNfuQnz3ISQc8I5O/6355xQi9+5\nxkR8mR4gqBAsj1RTK4tepPKTXHObuGaO4FSPEUb6kfeGv6ertVi6hvh5qo7r\nGobgKk+NhGgHYDLuVtpzCPrbNyD/4Zl3oke1c+xEzoqvYgxYrjS0nRUNOfE9\nwWcZkN7twSU+vXFpM5U7c5rLVaS4jE644VE6vArhOwixZecE6FevDOU8JTEe\n+AselrKvUI+n/tThRu2zItPBD7Ks9LI/cgTrDpv07uNtiIbpnoTi9SATcZYV\nvPa8Hnb3exhZieXMMJXBK2CaDxFFMeMcXS0b4vTrYVrDIaytdwgiCIt+is4W\n1BB7Q4RhaUouFrlU62nLniPm4YnfvjUcK55sjWfzDNQgVKTMjhgKMBOMaWQD\nl0BQ\r\n=IKh5\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":"8fdc1f444b4540a876847c7c3fb4a934e75fee2c","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.22.1+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":"ssuarez","email":"sayrisuarez@google.com"},{"name":"candysonya","email":"wangchan518@gmail.com"},{"name":"asyncliz","email":"asyncliz@gmail.com"},{"name":"esgonzalez","email":"esgonzalez@google.com"},{"name":"allanchen","email":"allanchen@google.com"},{"name":"emarquez","email":"emarquez@google.com"},{"name":"aomarks","email":"aomarks@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"}],"sideEffects":false,"_nodeVersion":"10.22.1","dependencies":{"@material/theme":"8.0.0-canary.596e98424.0","@material/feature-targeting":"8.0.0-canary.596e98424.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/typography_8.0.0-canary.596e98424.0_1603901005818_0.13302390021086818","host":"s3://npm-registry-packages"},"_id":"@material/typography@8.0.0-canary.596e98424.0","version":"8.0.0-canary.596e98424.0"}