@marketgoo/ola-emails

1.0.4 • Public • Published

Ola for emails

MJML implementation of Ola design system created by marketgoo.

Install

npm i @marketgoo/ola-emails

Usage

You can load the mjml code in three different ways:

ola-emails '<mjml>...</mjml>'
ola-emails --file 'email.mjml'
ola-emails < email.mjml

Options

  • --theme. The path of a json file with a theme tokens.
  • --validation. Validation level (strict, soft or skip). soft by default
  • --file. The file with the mjml code

Example

ola-emails --theme=./my-theme.json --file email.mjml > email.html

Documentation

Documentation page is available https://marketgoo.github.io/Ola-Emails/docs.html

You can document your new components (or edits) in the docs.js file at the root of project.

As you can see, there is a json with all of the components. The schema of each object is:

  • name: Name of component. Example OlaIcon
  • tag: Tag of component: Example ola-icon
  • attr: What attributes are avaibable in this component, with their types and allowed/default values.
  • parent: The tag name of the parent, if has.
  • subcomponents: Array with the tags of it children, if has.
  • example: An example of implementation of this componnent.

Readme

Keywords

none

Package Sidebar

Install

npm i @marketgoo/ola-emails

Weekly Downloads

39

Version

1.0.4

License

MIT

Unpacked Size

101 kB

Total Files

43

Last publish

Collaborators

  • pedro_marketgoo
  • oscarotero
  • diego_marketgoo
  • twoixter
  • griselmm
  • maria_marketgoo