Installation
Theme Raed gets installed by default when you install the Twilight Themes engine. Twilight can be installed in two ways: through the Salla Partners Portal or through the Salla CLI.Either installation method will trigger the installation of both the Twilight Engine and Theme Raed together.
Installation methods
Salla Partners Portal
Install through the web interface - easiest for beginners
Salla CLI
Install via command line - preferred for developers
Via Salla Partners Portal
The Salla Partners Portal provides a user-friendly interface for creating and managing themes.Access the Partners Portal
Navigate to Salla Partners Portal and sign in with your partner account.
Don’t have a partner account? Register here to get started.
Create a new theme
Follow the theme creation wizard in the Partners Portal. The system will automatically:
- Initialize the Twilight engine
- Install Theme Raed as your starter theme
- Set up the necessary configurations
Connect to a demo store
Select or create a demo store where your theme will be installed and tested.
Via Salla CLI
The Salla CLI is the recommended method for developers as it provides powerful tools for theme development and preview.Install Salla CLI
First, ensure you have Node.js installed, then install the Salla CLI globally:
The CLI requires Node.js version 14 or higher.
Authenticate with Salla
Log in to your Salla partner account through the CLI:Follow the prompts to authenticate your account.
Create a new theme
Use the CLI to create a new theme project:The CLI will:
- Prompt you for theme details (name, description, etc.)
- Install the Twilight engine
- Set up Theme Raed as your starter theme
- Initialize a Git repository
- Install all required dependencies
Post-installation setup
After installing Theme Raed, complete these setup steps:Theme preview
Using the Salla CLI, you can preview your theme in real-time as you develop. Thepreview command allows you to see live updates to your theme on a demo store.
How preview works
- The CLI connects to your selected demo store
- Your theme is loaded in the browser
- As you make changes to files, they’re automatically synced
- The store updates instantly to reflect your changes
Running preview mode
Terminal
- List your available demo stores
- Let you select which store to preview
- Open the store in your default browser
- Watch for file changes and sync them automatically
Preview mode is an excellent option for developers who want to see live updates to their themes appearing on the store right away.
Development workflow
Once installed, here’s a typical development workflow:Available npm scripts
pnpm run production- Build minified, optimized files for productionpnpm run prod- Alias for production buildpnpm run development- Build files with source maps for debuggingpnpm run watch- Watch mode for automatic rebuilding during development
Verify installation
To confirm Theme Raed is installed correctly:Check configuration file
Ensure You should see the theme name “Theme Raed” and configuration details.
twilight.json exists in the root directory:Verify dependencies
Check that all packages are installed:Key packages should include:
@salla.sa/twilight@salla.sa/twilight-componentstailwindcsswebpack
Troubleshooting
Package manager errors
Build failures
If the build fails, try:-
Clear the node_modules and reinstall:
-
Clear webpack cache:
Preview not working
If preview mode doesn’t work:-
Ensure you’re logged in:
- Verify you’re in the theme root directory
- Check that you have at least one demo store in your partner account
Next steps
Now that Theme Raed is installed, you can:Customize components
Start modifying the pre-built components in
src/views/components/Configure theme settings
Edit
twilight.json to enable/disable features and customize settingsModify styles
Customize TailwindCSS configuration in
tailwind.config.jsRead the docs
Explore the complete Twilight Themes documentation