Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mjml-head-font

Package Overview
Dependencies
Maintainers
6
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-head-font

mjml-head-font

  • 4.7.0-beta.2
  • next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
659K
increased by10.63%
Maintainers
6
Weekly downloads
 
Created

What is mjml-head-font?

The mjml-head-font npm package is a component of the MJML framework that allows you to include custom fonts in your MJML email templates. This package helps you to easily integrate web fonts into your email designs, ensuring that your emails look consistent across different email clients.

What are mjml-head-font's main functionalities?

Include Google Fonts

This feature allows you to include Google Fonts in your MJML email templates. The code sample demonstrates how to add the Roboto font to your email and apply it to a text element.

<mjml>
  <mj-head>
    <mj-font name="Roboto" href="https://fonts.googleapis.com/css?family=Roboto" />
  </mj-head>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-text font-family="Roboto, Arial, sans-serif">
          This is a text with Roboto font.
        </mj-text>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

Include Custom Fonts

This feature allows you to include custom fonts hosted on your own server or a third-party server. The code sample demonstrates how to add a custom font to your email and apply it to a text element.

<mjml>
  <mj-head>
    <mj-font name="CustomFont" href="https://example.com/fonts/customfont.woff" />
  </mj-head>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-text font-family="CustomFont, Arial, sans-serif">
          This is a text with a custom font.
        </mj-text>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

Other packages similar to mjml-head-font

FAQs

Package last updated on 28 Aug 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc