Meet our new project:Cladd — A React UI kit for building actual appsAll-newPaneFlow v2 is hereAll-newSwiper Studio v2 is heret0ggles —now with a free plan!Start Page HQ —now with a free plan!

Theme Based Rendering

When we develop Framework7 app for multiple platforms with multiple themes (ios, md) we need to control which elements will appear for one or another theme, like showing different icon for iOS and MD themes.

There are special classes that allow to control this:

This is, for example how we hide Navbar's back button text for MD theme:

<div class="navbar">
  <div class="navbar-bg"></div>
  <div class="navbar-inner sliding">
    <div class="left">
      <a href="#" class="link back">
        <i class="icon icon-back"></i>
        <!-- back button text will be visible only in iOS theme -->
        <span class="if-not-md">Back</span>
      </a>
    </div>
    ...
  </div>
</div>