Skip to content

Add quarter theme — theme.json v3, classic PHP templates, PostCSS build#3

Merged
davekellam merged 3 commits into
mainfrom
copilot/quarter-theme-development
Jun 10, 2026
Merged

Add quarter theme — theme.json v3, classic PHP templates, PostCSS build#3
davekellam merged 3 commits into
mainfrom
copilot/quarter-theme-development

Conversation

Copilot AI commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

New minimal monospace WordPress theme (quarter) replacing/succeeding spacemonkey. Classic PHP template hierarchy with theme.json v3 as the design system foundation, without enabling the full Site Editor.

Design system (theme.json v3)

  • Font family: SF Mono → ui-monospace → Cascadia Code → Source Code Pro → Menlo → Consolas → monospace
  • Palette: #404040 text, #4169e1 / #191970 links (same royalblue/midnightblue as spacemonkey)
  • Content width 42rem, wide 64rem; 7-step spacing scale
  • All tokens surfaced as --wp--preset--* custom properties; CSS references these throughout

CSS build

Source split across six partials in src/css/ (_base, _layout, _typography, _nav, _components, _blocks). PostCSS resolves @import; cssnano runs in production. Compiled dist/css/style.css is committed.

npm run build        # dev
npm run build:prod   # minified (cssnano)
npm run watch

Classic templates

header.php, footer.php, index.php, single.php, page.php, archive.php, search.php, 404.php, comments.php — lean shells delegating to helpers in includes/template-tags.php (quarter_post_date, quarter_pagination, quarter_entry_footer, quarter_post_navigation).

@davekellam davekellam marked this pull request as ready for review June 10, 2026 23:00
@davekellam

Copy link
Copy Markdown
Owner

@copilot remove elements related to registering block templates via php, i was referencing something implemented recently in wordpress 7.0 for registering simple php blocks. Also ensure the theme php files are linted using phpcs ruleset found at the root of the project

Copilot AI commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot remove elements related to registering block templates via php, i was referencing something implemented recently in wordpress 7.0 for registering simple php blocks. Also ensure the theme php ...

Done in 17e02bb. Removed the register_block_templates() and quarter_block_template() functions along with the init action hook from includes/init.php, and updated the file docblock accordingly.

For PHPCS: I installed WPCS and ran the theme directory against the project's phpcs.xml ruleset (which uses DK-Default → WordPress-Extra). The only flagged items are rules explicitly excluded by DK-Default (Universal.Arrays.DisallowShortArraySyntax, Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) — the PHP files are clean under the actual project standard.

Copilot AI changed the title Add quarter theme — theme.json v3, PHP block template registration, PostCSS build Add quarter theme — theme.json v3, classic PHP templates, PostCSS build Jun 10, 2026
Copilot AI requested a review from davekellam June 10, 2026 23:10
@davekellam davekellam merged commit 118bcd9 into main Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants