Jekyll One

Material Design Icons MDI is a very helpful design resource for Web Design that is based on Google’s specification of Material Design. MDI is a community-driven project to create an increased icon-set based on the official Material Design Icon repository provided by Google. The Icon set is a growing collection fully integrated by the Jekyll theme usable out-of-the-box.

HTML Markup

There is no official markup for font icons, but 2 markups are widely used. Both markups can be used in block elements like the anchor tag <a>. That way, it’s on you what to use for font icons.

<span class="mdi mdi-name" role="img" aria-label="name" ></span> (1)
<i class="mdi mdi-name"></i>  (1) (2)
1 Both forms are consistent with the HTML5 spec
2 It’s short and the <i> tag may associated for an icon (semantic meaning)
The <i> tag provides more meaning to machines because of the HTML spec, it provides more meaning to humans because the i can easily associated with icon. And it’s only one letter long - that win! And if you make sure to include equivalent text either inside the <i> tag or right next to it (as Twitter for Bootstrap does), then screen readers understand where to click to reply, the link is usable if CSS doesn’t load, and human readers with good eyesight and a decent browser see a pretty icon.

Asciidoc Markup

For pages using Asciidoc for the source (default), a easier solution is to use Markups from Asciidoc.

pass:[<i class="mdi mdi-<name> mdi-<size> mdi-<modifier>"></i>] (1)
mdi:<name>[<size>, <modifier>] (2)
1 Markup using a pass block
2 Markup using the Asciidoc extension (mdi:)

Sizes

For more eye-minded placement, or to place emphasis on, all icons can be specified in different sizes by the optional parameter size.

The size of an icon is typically specified relative to the base font size. Today, the base font size is set to 16px. That mean for for font icons, that the width of an icon is set to 32px if a relative size of 2x is specified.

See with the following what sizes are available.

Fixed Size

If needed, the icon size can given in absolute sizes from 18px to 48px.

Table 1. Fixed (absolute) sizes
Class Result Code

mdi-18px

<i class="mdi mdi-18px mdi-account"></i>

mdi-24px

<i class="mdi mdi-24px mdi-account"></i>

mdi-36

<i class="mdi mdi-36px mdi-account"></i>

mdi-48px

<i class="mdi mdi-48px mdi-account"></i>

BS Grid Size

For a better Bootstrap integration, the icon size can be given like the view-port shortcuts xs, sm, md, lg and xl.

Table 2. Bootstrap (BS) grid sizes
Class Result Code

mdi-xs

<i class="mdi mdi-xs mdi-account"></i>

mdi-sm

<i class="mdi mdi-sm mdi-account"></i>

mdi-md

<i class="mdi mdi-md mdi-account"></i>

mdi-lg

<i class="mdi mdi-lg mdi-account"></i>

mdi-xl

<i class="mdi mdi-xl mdi-account"></i>

Relative Size

All icons can be specifier relativ to the base size of 1em from 1x to 10x. See the examples with the table below.

Table 3. Relative sizes
Class Result Code

mdi-1x

<i class="mdi mdi-1x mdi-account"></i>

mdi-2x

<i class="mdi mdi-2x mdi-account"></i>

mdi-3x

<i class="mdi mdi-3x mdi-account"></i>

mdi-4x

<i class="mdi mdi-4x mdi-account"></i>

mdi-5x

<i class="mdi mdi-5x mdi-account"></i>

Rotate

To vary icons in their orientation, the icons can be rotated for 7 different angle. This is quite useful, if an icon has an orientation already but does not fit your need.

Using flip- and rotate- at the same time is not supported
Table 4. Rotate icons
Class Result Code

no

<i class="mdi mdi-3x mdi-account"></i>

mdi-rotate-45

<i class="mdi mdi-3x mdi-account mdi-rotate-45">

mdi-rotate-90

<i class="mdi mdi-3x mdi-account mdi-rotate-90">

mdi-rotate-135

<i class="mdi mdi-3x mdi-account mdi-rotate-135">

mdi-rotate-180

<i class="mdi mdi-3x mdi-account mdi-rotate-180">

mdi-rotate-225

<i class="mdi mdi-3x mdi-account mdi-rotate-225">

mdi-rotate-270

<i class="mdi mdi-3x mdi-account mdi-rotate-270">

mdi-rotate-315

<i class="mdi mdi-3x mdi-account mdi-rotate-315">

Flip

Like rotate, an icon can be flipped by horizontal and vertical axes. It is similiar to rotate but the angle (perspective) remains unchanged.

Using mdi-flip- and mdi-rotate- at the same time is not supported
Table 5. Flip icons
Class Result Code

no

<i class="mdi mdi-3x mdi-account-alert"></i>

mdi-flip-h

<i class="mdi mdi-3x mdi-account-alert mdi-flip-h">

mdi-flip-v

<i class="mdi mdi-3x mdi-account-alert mdi-flip-v">

Spin and Pulsed

For realy eye-minded placements of icons, icons can be animated im terms of rotation and pulse. Be careful using animated icons, because this may cause disturbing effects and can demand unwanted attention.

Table 6. Animated icons
Class Result Code

no

<i class="mdi mdi-3x mdi-star"></i>

mdi-spin

<i class="mdi mdi-3x mdi-star mdi-spin">

mdi-spin

<i class="mdi mdi-3x mdi-loading mdi-spin">

mdi-pulsed

<i class="mdi mdi-3x mdi-heart mdi-md-red mdi-pulsed">

Color Palette

The implementation of MDI font icons support the full color palette of Google's_ Material design specification.

BW Colors

The default color set used for MDI are black-and-white for the flavours light and dark of default (dark) if not specified.

Table 7. Black and White color palette
Class Result Code

not specified (default)

active
<i class="mdi mdi-3x mdi-account"></i>

not specified (default)

inactive
<i class="mdi mdi-3x mdi-account mdi-inactive"></i>

mdi-light

active
<i class="mdi mdi-3x mdi-account mdi-light"></i>

mdi-light

inactive
<i class="mdi mdi-3x mdi-account mdi-light mdi-inactive"></i>

mdi-dark

active
<i class="mdi mdi-3x mdi-account mdi-dark"></i>

mdi-dark

inactive
<i class="mdi mdi-3x mdi-account mdi-dark mdi-inactive"></i>

BS Colors

The implementation of MDI font icons support the base color palette of Bootstrap range from primary to danger.

Bootstrap base color palette
Bootstrap base color palette
Table 8. Bootstrap (BS) color palette
Class Result Code

mdi-bs-primary

<i class="mdi mdi-3x mdi-account mdi-bs-primary"></i>

mdi-bs-secondary

<i class="mdi mdi-3x mdi-account mdi-bs-secondary"></i>

mdi-bs-success

<i class="mdi mdi-3x mdi-account mdi-bs-success"></i>

mdi-bs-info

<i class="mdi mdi-3x mdi-account mdi-bs-info"></i>

mdi-bs-danger

<i class="mdi mdi-3x mdi-account mdi-bs-danger"></i>

mdi-bs-warning

<i class="mdi mdi-3x mdi-account mdi-bs-warning"></i>

MD Color Palette

For J1 Theme, 17 additional color variations are available comply with the concepts of Google Material Design:

Material Design color palette
Material Design color palette

Indigo

The color Indigo is used as the primary color for J1 Theme. You’ll find this color quite often in various weights (ranges from 50 to 900).

Table 9. MD colors - Indigo
Class Result Code

mdi-md-indigo

<i class="mdi mdi-3x mdi-alert mdi-md-indigo"></i>

mdi-md-indigo-50

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-50"></i>

mdi-md-indigo-100

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-100"></i>

mdi-md-indigo-200

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-200"></i>

mdi-md-indigo-300

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-300"></i>

mdi-md-indigo-400

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-400"></i>

mdi-md-indigo-500

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-500"></i>

mdi-md-indigo-600

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-600"></i>

mdi-md-indigo-700

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-700"></i>

mdi-md-indigo-800

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-800"></i>

mdi-md-indigo-900

<i class="mdi mdi-3x mdi-alert mdi-md-indigo-900"></i>

Pink

The color Pink is used as the complementary color for J1 Theme. You’ll find this color to put an emphasis on some elements. All colors comes in ranges from 50 to 900 but for Pink mostly the default weight of 500 is used.

Table 10. MD colors - Pink
Class Result Code

mdi-md-pink

<i class="mdi mdi-3x mdi-alert mdi-md-pink"></i>

mdi-md-pink-50

<i class="mdi mdi-3x mdi-alert mdi-md-pink-50"></i>

mdi-md-pink-100

<i class="mdi mdi-3x mdi-alert mdi-md-pink-100"></i>

mdi-md-pink-200

<i class="mdi mdi-3x mdi-alert mdi-md-pink-200"></i>

mdi-md-pink-300

<i class="mdi mdi-3x mdi-alert mdi-md-pink-300"></i>

mdi-md-pink-400

<i class="mdi mdi-3x mdi-alert mdi-md-pink-400"></i>

mdi-md-pink-500

<i class="mdi mdi-3x mdi-alert mdi-md-pink-500"></i>

mdi-md-pink-600

<i class="mdi mdi-3x mdi-alert mdi-md-pink-600"></i>

mdi-md-pink-700

<i class="mdi mdi-3x mdi-alert mdi-md-pink-700"></i>

mdi-md-pink-800

<i class="mdi mdi-3x mdi-alert mdi-md-pink-800"></i>

mdi-md-pink-900

<i class="mdi mdi-3x mdi-alert mdi-md-pink-900"></i>

Icon Overview

The Material Design Icon Font support a rich set of 5900+ icons (version v5.9.55) from a wide varity of topics.

Click on the elements below to copy icon data to clipboard