Getting started with Theme Raed
Theme Raed is the starting point for developers to design themes for merchant stores on the Salla Platform. It allows you to not only design Salla themes with custom HTML/CSS/JS files and reusable custom UI components, but also to build custom actions that trigger JS events and hooks.What is Theme Raed?
Theme Raed is the default starter theme that comes bundled with Twilight, Salla’s powerful themes engine. It provides:- A complete theme structure with organized directories
- Pre-built components for common e-commerce features
- Customizable templates using Twig
- Modern styling with TailwindCSS
- JavaScript functionality with Webpack bundling
- Multi-language support (Arabic and English)
Prerequisites
Before you start developing with Theme Raed, make sure you have:Technical knowledge
Basic understanding of:
- HTML, CSS, and JavaScript
- Twig Template Engine
- Command line interface
Salla Partner account
Create a partner account at Salla Partners Portal to:
- Create demo stores for testing
- Publish and manage your themes
- Access theme configuration tools
GitHub account
A GitHub account for:
- Syncing your theme code
- Version control
- Collaboration with team members
Salla CLI
You’ll need Node.js and npm installed on your system to use the Salla CLI and run the development tools.
Directory structure
Theme Raed follows a well-organized structure for easy development:Key directories explained
assets/
Contains all static assets including images, JavaScript, and stylesheets
locales/
Translation files for multi-language support (Arabic and English)
views/components/
Reusable UI components for headers, footers, products, and home sections
views/pages/
Complete page templates for cart, products, blog, customer area, and more
Theme configuration
Thetwilight.json file is the heart of your theme configuration. It defines:
- Theme name and metadata
- Enabled features (mega-menu, fonts, colors, breadcrumb, etc.)
- Component definitions and settings
- Custom theme options
twilight.json (excerpt)
Build scripts
Theme Raed uses Webpack for building and bundling. The available npm scripts are:package.json
npm run production- Build optimized files for productionnpm run development- Build files for development with source mapsnpm run watch- Watch for file changes and rebuild automatically
Next steps
Now that you understand what Theme Raed is and what you need, proceed to the installation guide:Installation guide
Learn how to install Theme Raed via Salla Partners Portal or Salla CLI