imagewize/callandor

Pattern library for Sage 11 hybrid themes with Tailwind CSS and theme.json support

Maintainers

Package info

github.com/imagewize/callandor

Type:wordpress-plugin

pkg:composer/imagewize/callandor

Statistics

Installs: 87

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0


README

Callandor Plugin

Callandor

Block Pattern Library for the Nynaeve Theme

Total Downloads Latest Stable Version License

Callandor is a WordPress block pattern library plugin built specifically for the Nynaeve Theme by Imagewize. It delivers professionally designed, business-focused block patterns that integrate seamlessly with Nynaeve's theme.json design system, Tailwind CSS utility classes, and hybrid theme architecture (Sage 11).

Primary Target: Callandor is built and maintained for the Nynaeve Theme. All patterns are designed, tested, and optimized against Nynaeve's design tokens (colors, typography, and spacing). While the plugin can work with other non-block/hybrid themes that share compatible theme.json settings, Nynaeve integration is the primary focus.

Note for Block Theme Users: If you're using a full block theme (FSE theme), you don't need this plugin. Block themes can load patterns directly from the theme's patterns/ directory without requiring PHP registration. This plugin is specifically for classic themes, hybrid themes, and any theme that cannot load patterns natively.

Features

  • Nynaeve-First Design: All patterns built against Nynaeve's design tokens, color palette, typography, and spacing system
  • Theme Integration: Seamlessly integrates with theme.json colors, typography, and spacing
  • Tailwind CSS: Built with Tailwind utility classes for modern, responsive designs
  • 9 Professional Patterns: Ready-to-use patterns for hero sections, features, CTAs, testimonials, pricing, team, and contact sections
  • Pattern Caching: Optimized performance with 24-hour transient caching for faster page loads
  • Business-Focused: Designed for SME businesses with focus on conversions and ROI
  • Easy Management: Simple admin interface to browse and manage patterns with cache control
  • Fully Responsive: Mobile-first designs that look great on all devices
  • Developer Friendly: Clean code following WordPress standards with full Composer support

Available Patterns

The plugin includes these professionally-designed patterns (all using WordPress native blocks with theme.json integration):

Hero Sections

  • Hero Section with Call to Action - Classic hero with headline, description, and prominent CTA button on colored background
  • Hero Two-Tone - Modern hero with two-tone heading, dual CTA buttons, and image in responsive two-column layout

Features & Services

  • 3-Column Feature Grid - Showcase services with icon placeholders, headings, and descriptions in clean grid layout

Call-to-Actions

  • Newsletter Signup CTA - Email capture with heading, description, and email input form on accent background

Social Proof

  • Client Testimonial Cards - Professional testimonial display with quote, author name, and company in card format
  • Client Reviews - Orange Background - Vibrant testimonial section with three reviews on bold orange background with profile images

E-Commerce & Pricing

  • 3-Column Pricing Table - Service package comparison with features list, pricing, and CTA buttons

Team & About

  • Team Member Grid - Professional team profiles with photos, names, roles, and bios in 3-column layout

Contact & Info

  • Contact Information Section - Office hours, contact details, and physical address in organized 3-column card layout

All patterns are fully responsive, use Nynaeve's theme.json design tokens, and integrate seamlessly with WordPress's native block editor.

Requirements

  • WordPress 6.6+
  • PHP 8.2+
  • Nynaeve Theme (primary) or another non-block/hybrid theme with compatible theme.json
  • Gutenberg block editor
  • theme.json support (required for full styling)

Not Required For:

  • Full block themes (FSE themes) - they have built-in pattern support

Theme Compatibility & Design Tokens

All Callandor patterns are designed and tested against the Nynaeve Theme by Imagewize. Patterns rely on specific design tokens (color slugs, font size slugs, font families, and spacing presets) defined in Nynaeve's theme.json.

Nynaeve Design Tokens Used

Token type Slugs used
Colors primary, primary-accent, primary-dark, main, main-accent, base, secondary, tertiary, border-light, border-dark
Font sizes xs, sm, base, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl
Font families montserrat, open-sans, menlo
Spacing 20, 40, 50, 60

Using with Other Themes

Callandor can work with other non-block or hybrid themes, but visual appearance may differ if your theme does not define the same design tokens. To adapt patterns to a different theme, either:

  1. Define matching token slugs in your theme's theme.json using the same slug names
  2. Override pattern styles via your theme stylesheet after insertion
  3. Edit the pattern after inserting — all typography uses WordPress font size slugs so you can change sizes via the block toolbar

Installation

Via Composer (Recommended for Bedrock)

composer require imagewize/callandor

Manual Installation

  1. Download the latest release
  2. Upload to /wp-content/plugins/callandor
  3. Activate through WordPress admin
  4. Go to Appearance → Callandor Patterns

Development Installation

cd wp-content/plugins
git clone https://github.com/imagewize/callandor.git
cd callandor
composer install --dev

Usage

Inserting Patterns

  1. Open the WordPress block editor
  2. Click the + button to add a block
  3. Navigate to the Patterns tab
  4. Find patterns under Callandor categories (Hero Sections, Features, etc.)
  5. Click to insert and customize

Admin Interface

Access the pattern management interface:

  • Navigate to Appearance → Callandor Patterns
  • View all available patterns organized by category
  • See pattern metadata and slugs
  • Clear pattern cache for development workflow
  • Configure plugin settings (license key for Phase 2)

Theme Integration

Patterns automatically use Nynaeve's design tokens from theme.json:

Colors:

  • primary (#017cb6) - Brand blue
  • primary-accent (#e6f4fb) - Light blue accent
  • base (#ffffff) - White background
  • main (#171b23) - Text black
  • Additional semantic colors

Typography:

  • Font families: open-sans, montserrat, menlo
  • Font sizes (xs through 7xl)
  • Consistent spacing scale

Development

Project Structure

callandor/
├── callandor.php                 # Main plugin file
├── composer.json                 # Composer configuration
├── includes/                     # PHP classes
│   ├── class-pattern-loader.php  # Pattern registration
│   └── class-admin-settings.php  # Admin interface
├── patterns/                     # Pattern files
│   ├── hero/
│   ├── cta/
│   ├── features/
│   ├── testimonials/
│   └── pricing/
├── assets/                       # CSS/JS assets
│   ├── css/admin.css
│   └── js/admin.js
└── docs/
    └── PLUGIN_SPEC.md           # Build specification

Creating Custom Patterns

Create a new PHP file in the appropriate patterns/ subdirectory:

<?php
/**
 * Pattern: Your Pattern Name
 * Category: hero
 */

return array(
    'title'         => __( 'Your Pattern Title', 'callandor' ),
    'description'   => __( 'Pattern description', 'callandor' ),
    'categories'    => array( 'hero' ),
    'keywords'      => array( 'hero', 'header', 'landing' ),
    'viewportWidth' => 1200,
    'content'       => '<!-- wp:group -->
        <!-- Your block markup here -->
        <!-- /wp:group -->',
);

Coding Standards

This project follows WordPress Coding Standards (WPCS):

# Check coding standards
composer phpcs

# Fix coding standards automatically
composer phpcbf

# Run static analysis
composer phpstan

Theme Compatibility

Why This Plugin Exists

Block themes (FSE themes) can register patterns directly in their patterns/ directory without needing PHP. However, non-block themes, classic themes, and hybrid themes (like Sage 11 / Nynaeve) require patterns to be registered via PHP using register_block_pattern(). This plugin provides that registration layer for Nynaeve and compatible themes.

Designed For

Nynaeve Theme (Primary Target)

  • Built specifically for Nynaeve with full integration
  • All theme.json colors, fonts, and spacing
  • Tailwind utility classes
  • Responsive spacing system
  • Sage 11 hybrid theme architecture

Other Non-Block/Hybrid Themes (Secondary)

  • Works with any classic or hybrid theme that defines matching theme.json tokens
  • WordPress block editor (Gutenberg)
  • theme.json configuration (required for full styling)
  • Visual results vary based on your theme's design tokens

Not Compatible With

Full Block Themes (FSE Themes)

  • Block themes don't need this plugin
  • They load patterns natively from the theme's patterns/ directory
  • Examples: Twenty Twenty-Four, Twenty Twenty-Three, etc.

Roadmap

Phase 1 (Current - v1.0.1)

  • ✅ Local pattern library for Nynaeve Theme
  • ✅ Theme.json integration
  • ✅ Admin interface
  • ✅ 9 professional patterns (Hero, Features, CTA, Testimonials, Pricing, Team, Contact)
  • ✅ Composer support
  • ✅ WordPress Coding Standards compliance
  • ✅ WordPress.org plugin repository ready

Phase 2 (Planned)

  • Premium pattern library (Nynaeve-exclusive patterns)
  • License key system
  • Remote pattern updates
  • Pattern caching
  • Additional Nynaeve-focused categories

Future

  • Pattern variations
  • Custom pattern builder
  • Import/export functionality
  • Multi-language support
  • Advanced filtering

Contributing

We welcome contributions! Here's how you can help:

  1. Report Bugs: Open an issue
  2. Suggest Features: Start a discussion
  3. Submit Patterns: Fork, create, and submit a pull request
  4. Improve Docs: Help us improve documentation

Development Setup

git clone https://github.com/imagewize/callandor.git
cd callandor
composer install

Pull Request Process

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-pattern)
  3. Commit your changes (git commit -m 'Add amazing pattern')
  4. Push to branch (git push origin feature/amazing-pattern)
  5. Open a Pull Request

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

Image Credits

Pattern placeholder images are sourced from Unsplash under the Unsplash License:

All images are used for demonstration purposes and can be easily replaced with your own images when using the patterns.

Changelog

See CHANGELOG.md for detailed version history.

Made with love for the Nynaeve Theme and the WordPress community