Modern, blazing-fast WordPress theme built with Tailwind CSS v4 and Svelte components.
Blaze Theme adalah tema WordPress modern yang menggabungkan kekuatan Tailwind CSS v4 untuk styling yang fleksibel dan Svelte untuk komponen interaktif yang reaktif. Tema ini dirancang untuk memberikan performa maksimal dengan developer experience yang luar biasa.
Download the theme
# Clone or download from repository
git clone https://github.com/yourusername/blaze-theme.git
Upload to WordPress
wp-content/themes/blaze-theme folderActivate the theme
Install dependencies and build
cd wp-content/themes/blaze-theme
npm install
npm run build
Clone the repository
cd wp-content/themes/
git clone https://github.com/yourusername/blaze-theme.git
cd blaze-theme
Install dependencies
npm install
Start development server
npm run dev
Activate theme in WordPress admin
# Development mode with hot reload
npm run dev
# Build for production
npm run build
# Watch mode (auto rebuild on changes)
npm run watch
# Clean build directory
npm run clean
# Lint JavaScript/Svelte
npm run lint
# Format code with Prettier
npm run format
# Type checking (if using TypeScript)
npm run type-check
Start dev server
npm run dev
Make your changes in svelte/ or assets/ directories
View changes - Vite will hot reload your changes automatically
Build for production when ready
npm run build
Create .env file (optional):
# Development
VITE_DEV_SERVER_PORT=5173
VITE_DEV_SERVER_HOST=localhost
# WordPress
WP_HOME=http://localhost/wordpress
WP_SITEURL=http://localhost/wordpress
blaze-theme/
βββ assets/ # Source files
β βββ css/ # Tailwind CSS entry
β βββ js/ # JavaScript files
β βββ images/ # Images and icons
β
βββ dist/ # Build output (generated)
β βββ css/ # Compiled CSS
β βββ js/ # Compiled JavaScript
β
βββ inc/ # PHP includes
β βββ customizer.php # Theme customizer
β βββ theme-setup.php # Theme setup
β βββ enqueue.php # Asset loading
β βββ template-tags.php # Helper functions
β βββ admin/ # Admin functionality
β
βββ svelte/ # Svelte components
β βββ components/ # UI components
β βββ stores/ # State management
β βββ main.js # Entry point
β
βββ template-parts/ # Reusable template parts
β βββ header/ # Header components
β βββ footer/ # Footer components
β βββ content/ # Content layouts
β βββ post/ # Post components
β βββ page/ # Page components
β βββ blocks/ # Content blocks
β
βββ templates/ # Page templates
β βββ full-width.php
β βββ landing-page.php
β βββ blog-grid.php
β
βββ languages/ # Translations
β
βββ functions.php # Main functions file
βββ style.css # Theme info (required)
βββ index.php # Main template
βββ header.php # Global header
βββ footer.php # Global footer
βββ sidebar.php # Sidebar template
Access via Appearance β Customize
Site Identity
Colors
Typography
Layout
Header
Footer
// Add custom setting
$wp_customize->add_setting('blaze_custom_setting', [
'default' => 'value',
'sanitize_callback' => 'sanitize_text_field',
]);
// Add control
$wp_customize->add_control('blaze_custom_setting', [
'label' => __('Custom Setting', 'blaze'),
'section' => 'blaze_section',
'type' => 'text',
]);
Theme uses CSS variables for easy customization:
:root {
--color-primary: #DC2626;
--color-secondary: #3B82F6;
--font-family: system-ui, -apple-system, sans-serif;
--font-size-base: 16px;
--border-radius: 8px;
--container-width: 1200px;
}
Override in Additional CSS (Customizer) or child theme.
ColorPicker.svelte
<ColorPicker
settingId="primary_color"
defaultColor="#DC2626"
/>
RangeSlider.svelte
<RangeSlider
settingId="font_size"
min={12}
max={24}
step={1}
defaultValue={16}
unit="px"
/>
Header.svelte
<Header
siteName="Blaze Theme"
siteTagline="Fast & Modern"
/>
MobileMenu.svelte
<MobileMenu
{menuItems}
/>
SearchModal.svelte
<SearchModal
searchUrl="/search"
/>
Newsletter.svelte
<Newsletter
apiUrl="/wp-json/blaze/v1/newsletter"
/>
PostCard.svelte
<PostCard
{post}
/>
PostGrid.svelte
<PostGrid
{posts}
category="all"
/>
PostMeta.svelte
<PostMeta
{author}
{date}
{category}
readingTime="5 min"
/>
Button.svelte
<Button
variant="primary"
size="md"
href="/link"
>
Click Me
</Button>
Modal.svelte
<Modal
title="Modal Title"
size="md"
>
<p>Modal content</p>
</Modal>
Loader.svelte
<Loader
type="spinner"
size="md"
color="primary"
/>
<!-- Mount point for Svelte component -->
<div id="mobile-menu-mount"
data-menu-items='<?php echo json_encode($menu_items); ?>'>
</div>
<?php
// Component will auto-initialize via main.js
Select template in WordPress editor:
Reusable template components:
// Load header branding
get_template_part('template-parts/header/site-branding');
// Load post content by type
get_template_part('template-parts/content/content', get_post_type());
// Load post metadata
get_template_part('template-parts/post/post-meta');
// Load custom block
get_template_part('template-parts/blocks/hero');
<?php
/**
* Template Name: Custom Layout
*/
get_header();
?>
<main class="container mx-auto px-4 py-8">
<?php
while (have_posts()) :
the_post();
get_template_part('template-parts/content/content', 'page');
endwhile;
?>
</main>
<?php
get_footer();
Target scores:
| Browser | Supported Versions |
|---|---|
| Chrome | Last 2 versions |
| Firefox | Last 2 versions |
| Safari | Last 2 versions |
| Edge | Last 2 versions |
| Opera | Last 2 versions |
| iOS Safari | Last 2 versions |
| Android Chrome | Last 2 versions |
Note: Internet Explorer is not supported.
We welcome contributions! Here's how you can help:
[Feature Request] taggit checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-featureBlaze Theme is licensed under the GNU General Public License v2 or later.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Full license text: GPL-2.0
Your Name / Team Name
Need custom development or premium support?
Stay updated with latest releases and news:
Made with β€οΈ and β by [Your Name]
If you find this theme helpful, please consider:
π₯ Blaze Theme - Fast. Modern. Beautiful.