Shapes

Shapes direct attention, identify components, communicate state, and express brand.

This component requires Javascript for initialization. Click to view Javascript.

Button

html
<div class="m-shape-container shape-parent-bg-white">
  <button type="button" class="btn btn-purple">
    Button
  </button>
  <div class="angle-top-left"></div>
  <div class="angle-top-right"></div>
  <div class="angle-bottom-left"></div>
  <div class="angle-bottom-right"></div>
</div>

Outlined Button

html
<div class="m-shape-container shape-parent-bg-white">
  <button type="button" class="btn btn-outline-purple">
    Button
  </button>
  <div class="angle-top-left border border-bottom border-purple"></div>
  <div class="angle-top-right border border-bottom border-purple"></div>
  <div class="angle-bottom-left border border-bottom border-purple"></div>
  <div class="angle-bottom-right border border-bottom border-purple"></div>
</div>

Card

Unlimited Music

Listen to your favourite artists and albums whenever wherever online and offline

html
<div class="m-shape-container shape-parent-bg-white">
  <div class="card bg-purple bg-opacity-10" style="max-width:400px">
    <div class="card-body">
      <h4 class="card-title text-purple">Unlimited Music</h4>
      <p class="card-text">
        Listen to your favourite artists and albums whenever wherever online
        and offline
      </p>
    </div>
    <div class="d-flex justify-content-between align-items-center flex-wrap p-2">
      <button type="button" class="btn btn-outline-purple border-0">
        Listen Now
      </button>

      <div>
        <button type="button" class="btn btn-fab mini-fab btn-purple m-1">
          <i class="bi bi-heart-fill"></i>
        </button>
        <button type="button" class="btn btn-fab mini-fab btn-purple m-1">
          <i class="bi bi-share-fill"></i>
        </button>
        <button type="button" class="btn btn-fab mini-fab btn-purple m-1">
          <i class="bi bi-three-dots-vertical"></i>
        </button>
      </div>
    </div>
  </div>
  <div class="angle-top-right size-50"></div>
</div>

Card with border

Unlimited Music

Listen to your favourite artists and albums whenever wherever online and offline

html
<div class="m-shape-container shape-parent-bg-white">
  <div class="card border border-purple" style="max-width:400px">
    <div class="card-body">
      <h4 class="card-title text-purple">Unlimited Music</h4>
      <p class="card-text">
        Listen to your favourite artists and albums whenever wherever online
        and offline
      </p>
    </div>
    <div class="d-flex justify-content-between align-items-center flex-wrap p-2">
      <button type="button" class="btn btn-outline-purple border-0">
        Listen Now
      </button>

      <div>
        <button type="button" class="btn btn-fab mini-fab btn-purple m-1">
          <i class="bi bi-heart-fill"></i>
        </button>
        <button type="button" class="btn btn-fab mini-fab btn-purple m-1">
          <i class="bi bi-share-fill"></i>
        </button>
        <button type="button" class="btn btn-fab mini-fab btn-purple m-1">
          <i class="bi bi-three-dots-vertical"></i>
        </button>
      </div>
    </div>
  </div>
  <div class="angle-top-right size-50 border border-bottom border-purple"></div>
</div>

Div

html
<div class="m-shape-container shape-parent-bg-white">
  <div class="bg-purple bg-opacity-10 border border-bottom border-2 border-purple"
       style="height: 200px; width: 200px;"></div>
  <div class="angle-top-left size-50 border border-bottom border-2 border-purple"></div>
  <div class="angle-top-right size-50 border border-bottom border-2 border-purple"></div>
  <div class="angle-bottom-left size-50 border border-bottom border-2 border-purple"></div>
  <div class="angle-bottom-right size-50 border border-bottom border-2 border-purple"></div>
</div>

Javascript

// Initialize Shapes
var shapes = [].slice.call(document.querySelectorAll('.m-shape-container'))
shapes.map(function (s) {
  new materialstyle.Shape(s)
})

With jQuery

// Initialize Shapes
$('.m-shape-container').shape();
We are aware that the documentation is incomplete. While we work on it, You may refer to Bootstrap docs or help us by contributing.