Affan is a mobile-first, PWA-ready HTML5 template for building app-like websites. It installs to the home screen, works offline and ships with Dark Mode and full RTL support. It is built with Bootstrap 5, plain JavaScript (no jQuery) and Sass, with a modern Gulp 5 workflow.
Version 3.0 is the biggest update since launch. Every element and page was redesigned as a real mobile app screen, 27 new pages were added, and Dark Mode, RTL and accessibility were checked on all 141 pages.
Use Affan for eCommerce stores, startups, agencies, SaaS and business apps, blogs and news, chat and social apps, portfolios, courses and travel, or any mobile website that should feel like a native app.
What’s New in Version 3.0
- 141 HTML pages
89 UI elements, 47 app pages and 5 main pages. - 19 new elements
Skeleton Screens, Flip Cards, Split Screen, Full-screen Sections, News Ticker, Floating Action Button, File Tree, Form Wizard, Survey Form, Parallax, Quick View, Flip Clock, Weather Widget, Polls, Image Zoom, Code Blocks, QR Code Generator, Flipbook and Emoji Picker. - 8 new chart pages
Bar, Radial, Radar, Mixed, Sparkline, Heatmap, Candlestick and Treemap, plus new variants on the Area, Column, Line and Pie pages. - App-style sections on every element page
Bottom sheets, swipe actions, swipe cards, pull to refresh, coach marks, segmented tabs, load more, infinite scroll and more. - Working app flows
Shop, cart, three-step checkout, order tracking, invoices, chat with voice messages and reactions, video call, blog with bookmarks, profile, notifications and FAQ. - Dark Mode and RTL checked on every page
RTL now mirrors Bootstrap utilities, direction icons, carousels and form controls automatically. - Accessibility
Keyboard-friendly controls, labels for icon buttons, a main landmark and a page heading on every page, and body text that meets WCAG AA contrast. - Faster and safer
One stylesheet per page, lazy-loaded images, a fixed service worker for offline mode, and 0 npm audit vulnerabilities. - New documentation
Rewritten for 3.0, with setup, customization, Dark Mode, RTL, PWA, deploy and troubleshooting guides.
Key Features
- Progressive Web App (PWA)
Manifest, service worker, install prompt and an offline fallback page. - Bootstrap 5.3
Responsive, flexible layouts on the latest Bootstrap 5. - Plain JavaScript, no jQuery
Lightweight scripts that only run on the pages that need them. - Dark Mode
One switch; the visitor’s choice is remembered. - RTL Ready
Full right-to-left support for Arabic, Hebrew, Urdu and other RTL languages. - Modern Workflow
NPM, Gulp 5, Dart Sass, a live-reload dev server, ESLint and an automated page check. - SCSS Architecture
Colors are CSS variables, and every component has its own partial. - Tabler Icons
More than 5,200 icons, loaded in small files by category. - ApexCharts
12 chart pages with interactive, responsive charts. - Mobile Navigation
Multiple header styles, footer tab bars, and left and right side menus. - Feedback Components
Alerts, toasts with undo, modals, loading states and online/offline detection. - Advanced Forms
Searchable selects, multi-select tags, input groups, file upload with preview, range sliders, autocomplete, OTP, validation and a form wizard. - Content Components
Cards, timelines, accordions, tabs, lists, galleries with zoom and filters, sliders, carousels, ratings, testimonials, pricing and comparison tables. - Data
Data tables, countdowns, counters, progress rings and charts. - Ready Pages
Shop, cart, checkout, orders, invoices, blog, chat, video call, profile, notifications, settings, language, search, about, team, services, contact, FAQ, policies, error pages and coming soon. - Authentication Pages
Login, register, social login, OTP, password reset, email verification and account locked. - Swipe & Touch Gestures
Swipe to delete, swipe cards, swipe galleries and pull to refresh. - Bottom Sheets & Action Sheets
Native-style share, filter, search and feedback panels. - Skeleton Loading Screens
Placeholders that show the layout while content loads. - Smart Back Navigation
The back button returns visitors to the same scroll position. - Install Prompt
A ready “Install Now” toast on the home page. - QR Code Generator
Create QR codes for links, text and contacts, and download them as PNG or SVG. - Emoji Picker
Search and categories, ready to drop into chats and comments. - Code Blocks
Syntax highlighting with Prism, copy button and a diff view. - Interactive Widgets
Flipbook, weather widget, polls, survey form and image zoom. - Chat & Video Call
Voice messages, reactions, replies and a draggable self view. - Live Page Search
Instant search on the Elements and Pages lists. - Language Page
Choosing an RTL language flips the layout automatically. - Accessibility-Minded
Keyboard support, screen reader labels and WCAG AA text contrast. - Reduced Motion Support
Animations calm down when visitors ask for reduced motion. - Fast Loading
Lazy-loaded images and a single stylesheet per page. - RTL-Safe CSS
Logical properties, with Bootstrap utilities mirrored automatically. - Well-Commented Code
Every script starts with a short note on what it does. - Detailed Documentation
Setup, customization, deploy and troubleshooting guides. - Google Fonts
Google Sans, easy to swap for any font. - Easy to Customize
Edit the ready-made HTML and CSS, or use the source files and build tools. - Cross-Browser
Works in current Chrome, Safari, Edge and Firefox.
Technology
- HTML5, CSS3, Sass (SCSS)
- Bootstrap 5.3.8
- Plain JavaScript (ES2015+), no jQuery
- Gulp 5, Browsersync, ESLint
- Tabler Icons 3.50, ApexCharts, Tiny Slider, Vanilla DataTables, Nice Select2, VenoBox, Isotope, Prism, StPageFlip
Pre-buy FAQ
Q. What type of template is this?
Affan is a mobile-first HTML5 template for app-like websites, with Progressive Web App (PWA) support, Dark Mode and RTL.
Q. What will I receive after purchasing?
All HTML, CSS (compiled and SCSS source), JavaScript and supporting files, plus the documentation. Demo images are not included in the download.
Q. What is a PWA?
A Progressive Web App is a website that works like an app: it can be installed on the home screen, loads fast and keeps working offline. Installation and offline mode need a site served over HTTPS.
Q. What skills do I need to customize it?
Basic HTML and CSS are enough. The compiled files in the dist folder can be edited directly.
Q. What are NPM, Gulp and SCSS used for? Do I need them?
They are optional. NPM installs the dependencies, Gulp builds the files and runs a live-reload dev server, and SCSS keeps the styles organized. To use them you need Node.js 22.12 or later.
Q. Do the forms, cart and chat work out of the box?
They work as front-end demos in the browser, with no backend. To save real data you need to connect your own backend or API.
Q. Is this a WordPress theme?
No. It is an HTML template. A developer can convert it into a WordPress theme.
Q. Is this a native app? Can I publish it on Google Play or the App Store?
No, it is a web template. To publish it in an app store, it must first be wrapped as a native app, for example with a WebView, Capacitor or Cordova.
Q. How many websites can I build with one license?
A Regular License covers one end product (one website). Check the Envato license terms for details.
Changelog
Version 3.0.0
- Added: 19 new elements and 8 new chart pages
- Added: app-style sections on every element page
- Improved: redesigned shop, checkout, orders, blog, chat, video call, company and account pages
- Improved: Dark Mode and RTL checked on all 141 pages
- Improved: accessibility (keyboard, labels, landmarks, headings, contrast)
- Fixed: service worker install and offline mode
- Improved: vendor CSS bundled into one stylesheet; lazy-loaded images
- Updated: Gulp 4 to Gulp 5, gulp-sass 6, Sass 1.108; new build, dev server, lint and test commands
- Updated: Tabler Icons 3.50.0, VenoBox 2.2.1
- Removed: the static folder (files moved into src)
- Updated: documentation rewritten for 3.0
Version 2.0.0
- Improved: design quality
- Updated: Bootstrap 5.3.3 to 5.3.8
- Updated: ApexCharts 3.49.1 to 3.54.1
- Updated: all development dependencies
Please Note
All images and videos are for preview purposes only and are not included in the download.
Credits
- All credits are listed in the documentation.