mdi icons color code example

Example 1: mdi icon size and color

<div class="input-group">
    <input type="text" class="form-control" placeholder="Search...">
    <span class="input-group-btn">
        <button class="btn btn-default" type="button" aria-label="Search">
            <i class="mdi mdi-magnify" aria-hidden="true"></i>
        </button>
    </span>
</div>

Example 2: mdi icon size and color

<div class="alert alert-danger" role="alert">
    <span class="mdi mdi-alert-circle" aria-hidden="true"></span>
    <span class="sr-only">Error:</span>
    Enter a valid email address
</div>

Example 3: mdi icon size and color

<ol class="breadcrumb">
    <li>
        <a href="#">
            <i class="mdi mdi-home-modern" aria-hidden="true"</i>
            <span>Home</span>
        </a>
    </li>
    ...
</ol>

Example 4: mdi icon size and color

<div class="btn-toolbar" role="toolbar">
   <div class="btn-group">
        <button type="button"
                class="btn btn-default"
                aria-label="Left Align">
            <i class="mdi mdi-format-align-left"
               aria-hidden="true"></i>
        </button>
        ...
    </div>
</div>

Tags:

Misc Example