Prerequisites
Before you begin, ensure you have the following:- Basic understanding of HTML, CSS, JavaScript, and the Twig Template Engine
- Partner account at Salla Partners Portal to create a demo store
- A GitHub account for theme syncing
- Node.js installed on your machine
- pnpm package manager (required)
Theme Raed enforces the use of pnpm as the package manager. The
preinstall script will prevent installation with npm or yarn.Installation
Theme Raed can be installed in two ways:Create a new theme
You can create a theme either through the Salla Partners Portal or via the CLI:This will install the Twilight Engine along with Theme Raed as the default starter theme.
Directory structure
Theme Raed follows a structured organization:Key directories
- assets/js: Contains all JavaScript modules, including page-specific scripts and reusable components
- assets/styles: SCSS files with Tailwind CSS configuration
- views/components: Twig components for theme features and custom components
- views/pages: Main page templates (cart, product, blog, etc.)
- views/layouts: Master layout template that wraps page content
Configuration files
Theme Raed includes several configuration files:package.json
Defines project dependencies and npm scripts:twilight.json
Configures theme metadata, features, and components. This file defines:- Theme name and repository
- Supported features (mega-menu, fonts, color, breadcrumb, etc.)
- Custom components and their settings
- Theme settings exposed in the Salla Partners Portal
tailwind.config.js
Customizes Tailwind CSS for the theme:webpack.config.js
Handles asset bundling and compilation. See the Build process page for details.Next steps
Preview mode
Learn how to preview your theme during development
Build process
Understand the build system and webpack configuration
Customization
Customize the theme to match your brand