Convert Figma logo to code with AI

framework7io logoframework7

Full featured HTML framework for building iOS & Android apps

18,654
3,196
18,654
247

Top Related Projects

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.

27,135

Quasar Framework - Build high-performance VueJS user interfaces in record time

⚡ Write Native with TypeScript ✨ Best of all worlds (TypeScript, Swift, Objective C, Kotlin, Java, Dart). Use what you love ❤️ Angular, React, Solid, Svelte, Vue with: iOS (UIKit, SwiftUI), Android (View, Jetpack Compose), Flutter and you name it compatible.

access core functions on Android, iPhone and Blackberry using JavaScript

Quick Overview

Framework7 is a free and open-source HTML framework for developing mobile, desktop, or web apps with a native look and feel. It's platform-agnostic and can be used with or without Vue.js, React, or Svelte for building iOS & Android apps, Progressive Web Apps, or desktop apps via Electron.

Pros

  • Rich UI components and layouts that closely mimic native iOS and Android interfaces
  • Flexible and modular architecture allowing developers to use only the components they need
  • Supports multiple JavaScript frameworks (Vue, React, Svelte) as well as vanilla JavaScript
  • Extensive documentation and active community support

Cons

  • Learning curve can be steep for developers new to mobile app development
  • Performance may not match truly native apps in complex scenarios
  • Limited customization options for some components without diving into the source code
  • May require additional plugins or libraries for advanced features like push notifications

Code Examples

  1. Creating a basic page structure:
<div class="page">
  <div class="navbar">
    <div class="navbar-inner">
      <div class="title">My App</div>
    </div>
  </div>
  <div class="page-content">
    <p>Page content goes here</p>
  </div>
</div>
  1. Initializing Framework7 app:
const app = new Framework7({
  root: '#app',
  name: 'My App',
  id: 'com.myapp.test',
  theme: 'auto',
});
  1. Creating a popup:
app.popup.create({
  content: `
    <div class="popup">
      <div class="page">
        <div class="navbar">
          <div class="navbar-inner">
            <div class="title">Popup</div>
            <div class="right">
              <a href="#" class="link popup-close">Close</a>
            </div>
          </div>
        </div>
        <div class="page-content">
          <p>Popup content goes here</p>
        </div>
      </div>
    </div>
  `,
}).open();

Getting Started

  1. Install Framework7:

    npm install framework7
    
  2. Create an HTML file with basic structure:

    <!DOCTYPE html>
    <html>
    <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
      <title>My App</title>
      <link rel="stylesheet" href="path/to/framework7.bundle.min.css">
    </head>
    <body>
      <div id="app"></div>
      <script src="path/to/framework7.bundle.min.js"></script>
      <script src="js/app.js"></script>
    </body>
    </html>
    
  3. Initialize the app in your JavaScript file (app.js):

    const app = new Framework7({
      root: '#app',
      name: 'My App',
      id: 'com.myapp.test',
      routes: [
        // Define your app routes here
      ],
    });
    

Competitor Comparisons

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.

Pros of Ionic Framework

  • Larger community and ecosystem, with more resources and third-party plugins
  • Better integration with Angular, React, and Vue.js frameworks
  • More comprehensive documentation and learning resources

Cons of Ionic Framework

  • Steeper learning curve, especially for developers new to web technologies
  • Larger bundle sizes, which can impact app performance on low-end devices
  • More opinionated structure, which may limit flexibility in some cases

Code Comparison

Framework7 (HTML structure):

<div class="page">
  <div class="navbar">
    <div class="navbar-inner">
      <div class="title">My App</div>
    </div>
  </div>
  <div class="page-content">
    <!-- Content goes here -->
  </div>
</div>

Ionic Framework (Angular component):

@Component({
  selector: 'app-home',
  template: `
    <ion-header>
      <ion-toolbar>
        <ion-title>My App</ion-title>
      </ion-toolbar>
    </ion-header>
    <ion-content>
      <!-- Content goes here -->
    </ion-content>
  `
})
export class HomePage { }

Both frameworks offer similar functionality for building mobile apps using web technologies. Framework7 is more lightweight and easier to get started with, while Ionic Framework provides better integration with popular JavaScript frameworks and has a larger ecosystem. The choice between the two depends on your specific project requirements and familiarity with web development technologies.

27,135

Quasar Framework - Build high-performance VueJS user interfaces in record time

Pros of Quasar

  • Built on Vue.js, offering a more modern and flexible framework
  • Extensive UI component library with Material Design and iOS theme support
  • Supports multiple build modes: SPA, SSR, PWA, and mobile/desktop apps

Cons of Quasar

  • Steeper learning curve for developers new to Vue.js ecosystem
  • Less focus on native-like mobile UI compared to Framework7

Code Comparison

Framework7 (HTML-based):

<div class="page">
  <div class="navbar">
    <div class="navbar-inner">
      <div class="title">My App</div>
    </div>
  </div>
  <div class="page-content">
    <!-- Content goes here -->
  </div>
</div>

Quasar (Vue.js-based):

<template>
  <q-layout view="lHh Lpr lFf">
    <q-header elevated>
      <q-toolbar>
        <q-toolbar-title>My App</q-toolbar-title>
      </q-toolbar>
    </q-header>
    <q-page-container>
      <!-- Content goes here -->
    </q-page-container>
  </q-layout>
</template>

Both frameworks offer powerful tools for building mobile and web applications, but Quasar leverages Vue.js for a more component-based approach, while Framework7 provides a more traditional HTML-based structure. Quasar excels in versatility and modern web development practices, while Framework7 focuses on creating native-like mobile experiences.

⚡ Write Native with TypeScript ✨ Best of all worlds (TypeScript, Swift, Objective C, Kotlin, Java, Dart). Use what you love ❤️ Angular, React, Solid, Svelte, Vue with: iOS (UIKit, SwiftUI), Android (View, Jetpack Compose), Flutter and you name it compatible.

Pros of NativeScript

  • Provides true native performance by compiling to native code
  • Allows direct access to native APIs and platform-specific features
  • Supports TypeScript, offering better type checking and tooling

Cons of NativeScript

  • Steeper learning curve, especially for developers new to mobile development
  • Smaller community and ecosystem compared to Framework7
  • May require platform-specific code for certain features

Code Comparison

NativeScript (XML and TypeScript):

<StackLayout>
  <Label text="Hello, NativeScript!" />
  <Button text="Click Me" tap="onButtonTap" />
</StackLayout>
export function onButtonTap() {
  console.log("Button tapped!");
}

Framework7 (HTML and JavaScript):

<div class="page">
  <div class="navbar">
    <div class="navbar-inner">
      <div class="title">Hello, Framework7!</div>
    </div>
  </div>
  <div class="page-content">
    <a class="button" id="myButton">Click Me</a>
  </div>
</div>
$$('#myButton').on('click', function () {
  console.log('Button clicked!');
});

access core functions on Android, iPhone and Blackberry using JavaScript

Pros of PhoneGap

  • Broader platform support, including iOS, Android, Windows, and more
  • Extensive plugin ecosystem for accessing native device features
  • Simpler learning curve for web developers

Cons of PhoneGap

  • Performance can be slower compared to native apps
  • User interface may not feel as native or smooth
  • Limited access to some advanced device features

Code Comparison

PhoneGap:

document.addEventListener('deviceready', onDeviceReady, false);

function onDeviceReady() {
    console.log('PhoneGap is ready');
    navigator.geolocation.getCurrentPosition(onSuccess, onError);
}

Framework7:

var app = new Framework7({
    root: '#app',
    name: 'My App',
    theme: 'auto',
    routes: [
        // Define your routes here
    ]
});

Framework7 focuses on creating a UI that looks and feels like native iOS and Android apps, while PhoneGap provides a wrapper for web technologies to access native device features. Framework7 offers better performance and a more native-like experience, but PhoneGap has broader platform support and a larger plugin ecosystem. The choice between the two depends on the specific requirements of your project, such as target platforms, performance needs, and desired user experience.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Framework7

Build Status Greenkeeper

Framework7

Full Featured Mobile HTML Framework For Building iOS & Android Apps

Supporting Framework7

Framework7 is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider becoming a backer or sponsor on Patreon.

Sponsors

WFM Buddy - Delighting your Workforce Evernomic AltMarket - Best Deals on Games, Software & Subscriptions Route4Me Route Planner Nettikasinot 2022 | Löydä Luotettava & Turvallinen Nettikasino! Thorium Builder - full visual Framework7 app builder Tommy Buy Instagram Followers Viron Kasinot Buy Facebook Page Followers Buy Facebook Followers TopKasynoOnline PL
FBPostLikes Buy Quality Instagram Followers Fun88 Vietnam Fun88 Thailand casino utan svensk licens utländska casino 10 euro casino utan svensk licens 10 euro Fun88 Fun88 Ethereum Wiki Time Now Private Instagram Viewer with no login required
Funded Account PRO Transparencia en Casinos Online Buy TikTok Followers Purchase TikTok Followers Buy Instagram Followers Buy TikTok Likes Cheap CASINOLEGAL SuperClones iDEAL Online Casino Online Casino Zonder Registratie Real Money Casinos Buy Facebook Likes
iDealeCasinos SoftOrbits WriteHuman AI Humanizer Best Online Casino best replica watches playfortuna.com Yahoo Finance - Super Clone superclonereps Uudet Nettikasinot Legit Casino humanize AI with UnAIMyText Super Clone Watches - 1:1 Replica Watches at Unbeatable Price
Buy TikTok Followers & Likes here Buy TikTok Followers AI ETFs Super Clone Watches: Best Website for 1:1 Replica Watches Buy Tiktok Followers Bruce Dilger IB IA Writing Service | Buy SL or HL Assessments BetWinner Guidebook | BetWinner Platform Bonusoid Casinos Internacionales Online Non Gamstop Casino CasinoAllianz
Buy Youtube Subscribers Buy Instagram Followers Buy Youtube Subscribers Zamsino.com 🎖️ Global Online Gambling Guide Najlepsze kasyna online w Polsce Luotetut suomalaiset nettikasinot (2024) ▶️ 35+ Sivustoa! Chile Casinos No Deposit Bonus IGComment Accelerating Your Software Products | Teravision Technologies Casinos Online Sin Licencia 2024 JinaCoin | 仮想通貨/暗号資産ニュース・情報メディア
Buy Instagram Likes - Real Likes & Instant Delivery! Best Bitcoin Casinos Bet Consulting AirdropList(エアドロップリスト) | 仮想通貨のエアドロップ最新情報一覧 UK Betting Sites Not on GamStop » Non GamStop Bookies 2023 888Starz Polska: Załóż Konto i Otrzymaj Bonus Powitalny do 1500 EUR! Buy Instagram Followers | Real, Instant Delivery & Only $2.97 Nettikasinot | Katso parhaat nettikasinot 2023 | Top 10 lista Beoordelen van nieuwe online casino's 2023 Onlinecasinosspelen.com site is dé nummer één gids, waardoor je gemakkelijk alle informatie van de top 10 online casino sites. Aviator Game | Play Aviator Money Game by Spribe Pin Up Aviator Game Casino | Aviator Game in India
Revisão do jogo Lucky Jet - Jogue por dinheiro real Jogos Lucky Jet Gioca Crazy Time Casinò per soldi veri - Crazy Time Casinò Italia JetX Apostas | JetiX Aposta - Jogo do Foguete que Ganha Dinheiro jogo do aviãozinho betting sider Fastest Payout Casinos in Canada [2022] Correct Casinos | Reputable Online Casinos, Slots & Bonuses CSGO Captain | Your Guide to Counter-Strike 2022 - CS:GO Captain NonGamStopOdds | Find the best UK casino not on GamStop Discover The Best Reputable Online Casinos in Canada Buy Instagram views Non-GAMSTOP casinos
NonGamStopWager.com Fortune Games® | Free Spins No Deposit Slot Games | Online Slots Best 1$ deposit casino in Canada VPN for Firefox to Make the Internet a Better Place CasinoExpo svenska nya casinon online Ranking Bukmacherów Legalnych 2020. Bukmacher nr 1 to... Evolution Host - A DDoS Protected VPS host that accepts Bitcoin Rise — Creative Web Development Agency CyberBrain IT Services HICAPPS - Health Informatics Custom APPs Blokt - Cryptocurrency News Wappler - The Visual Web App Creator

Getting Started

Framework7 Development

First, install all dependencies:

$ npm install

Development Builds

The following npm scripts are available to create development builds:

  • build:dev - build development versions of all packages (Core, Vue, React, Svelte)
  • build-core:dev - build development version of Core (vanilla JS) Framework7
  • build-react:dev - build development version of Framework7 React package
  • build-vue:dev - build development version of Framework7 Vue package
  • build-svelte:dev - build development version of Framework7 Svelte package

Compiled results will be available in build/ folder.

Production Builds

To build production versions the following npm scripts are available:

  • build:prod - build production versions of all packages (Core, Vue, React, Svelte)
  • build-core:prod - build production version of Core (vanilla JS) Framework7
  • build-react:prod - build production version of Framework7 React package
  • build-vue:prod - build production version of Framework7 Vue package
  • build-svelte:prod - build production version of Framework7 Svelte package

Compiled results will be available in packages/ folder.

Kitchen Sink

To run Kitchen Sink with development environment (development version will be built first) use the following npm scripts:

  • core - build development version of Core (vanilla JS) Framework7 package and run core Kitchen Sink
  • react - build development version of Framework7 React package and run React Kitchen Sink
  • vue - build development version of Framework7 Vue package and run Vue Kitchen Sink
  • svelte - build development version of Framework7 Svelte package and run Svelte Kitchen Sink

Source Code

Whole source code is located under the /src/ folder.

Contributing

Before you open an issue please review the contributing guideline.

All changes should be committed to src/ files only!

Framework7 uses LESS for CSS compilations, and ES modules JS files.

The project uses .editorconfig and ESLint to define and lint the coding style of each file. We recommend that you install the Editor Config and ESLint extension for your preferred IDE.

If you want to help in Framework7 development and make it event better visit this page: https://framework7.io/contribute/

Forum

If you have questions about Framework7 or want to help others you are welcome to special forum at https://forum.framework7.io/

Docs

Documentation available at https://framework7.io/docs/

Tutorials

Tutorials available at https://framework7.io/tutorials/

Showcase

Appstore apps made with Framework7: https://framework7.io/showcase/

Previous Versions

NPM DownloadsLast 30 Days