theme.json has no styles.elements when no design system is built

オープン
#5,817 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php, wordpress
領域
backend

調査の方向性

Start by reading ThemeJsonProjection::withSystem() and the WordPressSitePlan path that skips it. Trace how the source element styles and unconditional link and heading defaults are projected when no design system exists. Done means those styles appear in generated theme.json, or a diagnostic explains their absence; the issue does not name a test to run.

索引モデルが issue の本文から書いたものです。

説明

Problem

The block-theme scorecard reports link, button and heading as used but unstyled (theme_json fails). The generated theme.json styles has only spacing and typography.lineHeight. Even the unconditional link/heading fontFamily: inherit default in ThemeJsonProjection is missing.

That default is written only inside withSystem(), which is skipped when the site plan has no usage-derived design system (WordPressSitePlan).

Expected

Element defaults, and the element styles observed in the source, are projected even when no design system is built. Otherwise a diagnostic should explain why they're absent.

Seen on

A 36-route import of a site built with a hosted site builder. Its scorecard reports unstyled_used: [link], along with the empty element styles above.

AI assistance: drafted with Claude (Anthropic) via Claude Code from a human-directed import investigation; measurements come from a real import.

主要言語
PHP
スター
28
フォーク
5
平均マージ
2時間 59分
マージ済み PR(30日)
942

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Automattic/blocks-engine のほかの issue

Automattic/blocks-engine の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。