Socket
Socket
Sign inDemoInstall

ember-cli-mdc-typography

Package Overview
Dependencies
7
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-cli-mdc-typography

ember-cli addon for @material/typography


Version published
Weekly downloads
129
increased by55.42%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

ember-cli-mdc-typography

ember-cli addon for @material/typography.

Installation

ember install ember-cli-mdc-typography

Components & Modifiers

mdc-typography

The {{mdc-typography}} modifier, when applied to an element, adds a typography attribute to the component. The typography attribute allows you to programmatically customize the typography of the component.

<div {{mdc-typography name}}></div>

The typography value must be one of the following values:

  • headline1
  • headline2
  • headline3
  • headline4
  • headline5
  • headline6
  • subtitle1
  • subtitle2
  • body1
  • body2
  • caption
  • button
  • overline

Other Topics

Configuring Automatic Integration

The typography package automatically adds the mdc-typography class to the root of the ember application. By default, this is the body HTML element. You an change the root element by changing the rootElement property in config/environment.js.

Disable integration

You can disable automatic typography integration by setting the ember-cli-mdc.typography.disabled property in config/environment.js.

let ENV = {
  // ...
  
  'ember-cli-mdc': {
    typography: {
      disabled: true,          // disable adding .mdc-typography class to root element
      autoLinkFont: false      // disable adding <link> tag for Roboto font
    }
  }
};

Roboto Font

The typography package automatically includes links to the Roboto fonts in your application.

Corber integration

When building a Corber application, the Roboto fonts are bundled with the application. This prevents the application from needing to download the fonts.

Keywords

FAQs

Last updated on 08 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc