Appearance
Usage
Everyday workflow
- Assign modules to the included positions (header, sidebar, footer, etc.).
- Use the template settings to adjust colors, logos, and navigation.
Developer workflow
Recommended build commands:
bash
npm run dev:css
npm run dev:jsFor production builds:
bash
npm run buildPHP compilation mode
If you do not want Node.js running during development:
- Enable Developer Mode in template settings.
- Turn on Compile SCSS on each request for automatic compilation on page reload when files change in
src/. - Optionally enable Show compile toolbar for manual builds.
Note: this setting adds overhead to each request, so disable it when you are finished compiling or when moving toward production.
SCSS structure
src/scss/template.scssfor the main entry point.src/scss/_variables.scssfor tokens and breakpoints.src/scss/_mixins.scssfor reusable patterns.src/scss/components/for component-level styles.
Custom layouts
Create layouts in template_layouts/ and render them with Joomla FileLayout:
php
<?php defined('_JEXEC') or die; ?>
<div class="custom-section">
<h2><?php echo $displayData['title']; ?></h2>
</div>Asset management
Use the helper to include project-specific assets:
php
$nxp->addCSS('custom.css');
$nxp->addJS('custom.js');Troubleshooting
- Clear Joomla cache and hard refresh if CSS/JS is stale.
- Check
engine/logs/template.log.phpfor compilation errors. - Ensure
css/,js/, andengine/logs/are writable by the web server.
Production optimization
- Disable developer mode before going live.
- Build assets with Vite to minify CSS and JS.
- Enable Joomla caching and gzip at the server level.