A modern, lightweight WordPress theme built with Shadcn UI components and contemporary web technologies.
WP Shadcn is designed for developers and content creators who value clean code and excellent user experience. This theme emphasizes performance, accessibility, and ease of customization.
- π― Modern Block-Based Theme Architecture - Full-site editing support with flexible block patterns
- π Dark Mode Support - Automatic detection of user system preferences
- π± Responsive Design - Beautiful on all devices and screen sizes
- π» Clean & Semantic HTML - Follows WordPress best practices
- β‘ Performance Optimized - Lightweight and fast-loading
- π¨ Built with Shadcn UI - Component design principles for consistency
- π¨ Customizable Color Palette - Easily adjust theme colors
- π Layout Options - Full-width and centered layout modes
- π§ Header & Footer Customization - Full control over your site structure
- π§© Custom Block Patterns - Pre-designed content blocks for quick creation
- WordPress: 6.4 or higher
- PHP: 7.4 or higher
-
Upload the theme:
# Copy the shadcn folder to your WordPress themes directory cp -r shadcn /path/to/wp-content/themes/ -
Activate the theme:
- Go to Appearance β Themes in the WordPress admin dashboard
- Find "WP Shadcn" and click "Activate"
-
Configure settings (Optional):
- Go to Appearance β Editor to customize theme settings
- Adjust header and footer content through the WordPress Site Editor
Navigate to Appearance β Editor to customize your theme
- Adjust header and footer content through the WordPress Site Editor
- Customize colors and typography
- Use the included block patterns for quick page creation
- Access patterns when editing pages/posts in the Block Editor
- The theme automatically detects user system preferences
- No manual configuration needed
Q: Does this theme support dark mode?
Yes! The theme includes built-in dark mode support that automatically detects user system preferences.
Q: Can I customize the colors?
Yes, you can customize colors through the WordPress Customizer (Appearance β Customize).
Q: Is this theme SEO friendly?
Yes, the theme follows WordPress best practices and semantic HTML standards for better SEO.
Q: How do I use the block patterns?
When creating or editing pages/posts, look for the "Patterns" section in the Block Editor to insert pre-designed content blocks.
Q: Can I modify the theme code?
Absolutely! The theme is built with developers in mind. All code is clean and well-structured for easy customization.
shadcn/
βββ assets/
β βββ css/ # Stylesheets
β βββ fonts/ # Font files
β βββ js/ # JavaScript files
βββ parts/ # Reusable template parts
βββ patterns/ # Block patterns
βββ templates/ # Page templates
βββ functions.php # Theme functions
βββ style.css # Main stylesheet
βββ theme.json # Theme configuration
βββ README.md # This file
- β Initial release
- β Modern block-based theme architecture
- β Dark mode support
- β Responsive design
- β Block patterns for quick content creation
- β Some small issues
- β Update Navigation style
- β Update layout
- β Added: Support WooCommerce Cart/Checkout template
- β Added: WooCommerce Checkout header
- β Added: New patterns (404 section, Hero section, CTA section, ...)
- β Added: Block hover settings
- β Added: SVG Image block variation
- β Added: 5 Features patterns
- β Updated: Navigation styles
- β Updated: Integrate with WooCommerce 10.4
- β Fixed: Header menu issue
- Shadcn UI - Component design principles
- WordPress Block Editor - Modern theme development
This section is for developers who want to contribute or customize the theme.
Before you begin development, make sure you have the following installed:
- PHP 7.4 or higher
- WordPress 6.4 or higher
- Composer (for PHP dependencies)
- Node.js & Yarn (for asset management)
- Git (for version control)
-
Clone or download the theme:
cd /path/to/wp-content/themes/ git clone [your-repo-url] shadcn cd shadcn
-
Install dependencies:
# Install PHP dependencies ./run.sh dev-init # or manually: composer install # Install JavaScript/asset dependencies (if package.json exists) yarn install
-
Start development mode:
./run.sh dev # or manually: yarn run dev
The theme includes a run.sh script with helpful commands:
# Initialize development environment (install composer dependencies)
./run.sh dev-init
# Start development mode (watch for changes, compile assets)
./run.sh dev
# Create a release build (generates a zip file for distribution)
./run.sh release
# Show all available commands
./run.sh helpshadcn/
βββ assets/
β βββ css/ # Compiled stylesheets
β βββ images/ # Theme images and icons
β βββ js/ # JavaScript files
βββ inc/
β βββ BlockSettings/ # Block customization settings
β βββ Core/ # Core theme functionality
β βββ Integrations/ # Third-party integrations (WooCommerce, etc.)
β βββ Interfaces/ # PHP interfaces
β βββ Traits/ # Reusable PHP traits
βββ parts/ # Reusable template parts (header, footer, etc.)
βββ patterns/ # Block patterns (PHP files)
βββ styles/
β βββ blocks/ # Block-specific style variations (JSON)
βββ templates/ # Page templates (HTML)
βββ functions.php # Main theme functions file
βββ theme.json # Theme configuration (colors, typography, etc.)
βββ style.css # Main stylesheet with theme metadata
βββ phpcs.xml # PHP CodeSniffer configuration
βββ run.sh # Development helper script
This theme follows WordPress coding standards:
- PHP: WordPress Coding Standards (enforced via PHP CodeSniffer)
- JavaScript: WordPress JavaScript Coding Standards
- CSS: WordPress CSS Coding Standards
Run PHP CodeSniffer to check code quality:
# Check all PHP files
./vendor/bin/phpcs
# Check specific file
./vendor/bin/phpcs inc/Core.php
# Auto-fix fixable issues
./vendor/bin/phpcbfBlock patterns are located in the patterns/ directory. To create a new pattern:
- Create a new PHP file in
patterns/(e.g.,my-pattern.php) - Define the pattern metadata and HTML content
- Register the pattern in your theme
Example pattern structure:
<?php
/**
* Title: My Custom Pattern
* Slug: shadcn/my-pattern
* Categories: featured
*/
?>
<!-- Your block markup here -->Block style variations are defined in styles/blocks/ as JSON files. These files follow the WordPress theme.json schema for block-specific styling.
The theme includes built-in dark mode support:
- JavaScript:
assets/js/dark-mode.js - Styles: Configured in
theme.jsoncolor palette - PHP:
inc/DarkMode.php
-
Test in WordPress Site Editor:
- Go to Appearance β Editor
- Test template changes and block patterns
-
Test responsive design:
- Use browser dev tools to check different screen sizes
-
Test dark mode:
- Toggle system dark mode preference
- Verify all elements render correctly
When you're ready to create a distribution package:
./run.sh releaseThis will:
- Clean up development files
- Create a
release/directory - Generate a
shadcn.zipfile ready for distribution - Exclude files listed in
.distignore
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Make your changes following coding standards
- Test thoroughly
- Commit your changes (
git commit -m 'Add my feature') - Push to the branch (
git push origin feature/my-feature) - Create a Pull Request
-
Enable WordPress debug mode in
wp-config.php:define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
-
Check debug logs at:
wp-content/debug.log -
Use browser console for JavaScript debugging
-
Inspect block markup in the Site Editor
This theme is licensed under the GNU General Public License v2 or later.
See LICENSE for more details.
- Built with Shadcn UI principles
- Block-based architecture inspired by modern WordPress theme development
For support, questions, or to report bugs, please contact the theme author or visit the theme repository.
Copyright Β© 2025 Shadcn
WP Shadcn is distributed under the terms of the GNU GPL