leungd / tatami
Starter theme to build a Timber theme
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:wordpress-theme
pkg:composer/leungd/tatami
Requires
- timber/timber: ^1.7
- dev-master
- dev-main
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/minimist-1.2.6
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.8
This package is auto-updated.
Last update: 2026-01-19 03:41:18 UTC
README
A foundational WordPress starter theme built with modern development tools.
Features
- Timber/Twig - Template engine for clean, maintainable templates
- Vite - Fast development server and optimized production builds
- Tailwind CSS - Utility-first CSS framework with typography plugin
- Modern JavaScript - ES modules support with Vite
Requirements
- PHP 7.4+
- WordPress 5.0+
- Composer
- Node.js & npm/yarn
- Timber plugin
Installation
- Clone or copy this theme into your WordPress themes directory
- Install PHP dependencies:
composer install - Install JavaScript dependencies:
npm installoryarn install - Install and activate the Timber plugin
Development
Start the Vite development server:
npm run dev
Build for production:
npm run build
Configuration
Tailwind
Customize Tailwind in tailwind.config.js. Add your brand colors, extend the default theme, and configure safelist patterns for dynamic classes.
Theme Files
Core PHP Files
functions.php- Main theme setuplib/Tatami.lib.php- Theme functionality, Timber context, and custom functionslib/Theme.lib.php- Asset enqueueinglib/Vite.lib.php- Vite integration for WordPress
Template Files (Twig)
views/base.twig- Base template with HTML structureviews/page.twig- Default page templateviews/single.twig- Single post templateviews/archive.twig- Archive/blog templateviews/search.twig- Search results templateviews/404.twig- 404 error templateviews/header.twig- Site header with navigationviews/footer.twig- Site footerviews/menu.twig- Menu component with dropdownsviews/partials/- Reusable template partials
Customization
Adding Custom Post Types
Add your custom post types in the register_post_types() method in lib/Tatami.lib.php.
Adding Custom Taxonomies
Add your custom taxonomies in the register_taxonomies() method in lib/Tatami.lib.php.
Timber Context
Modify the global Timber context in the add_to_context() method in lib/Tatami.lib.php. This is where you can add site-wide variables accessible in all Twig templates.
Custom Twig Filters
Add custom Twig filters in the add_to_twig() method in lib/Tatami.lib.php.
Theme Options
This theme is designed to work with ACF (Advanced Custom Fields) options pages. Configured options are available in Twig templates via {{ options }}.
Assets
Styles
Main stylesheet: src/scss/main.scss
Scripts
Main JavaScript: src/js/main.js
Images
Place images in src/img/ - they'll be processed by Vite.
License
This theme is licensed under the terms specified in the LICENSE file.