astryx icon indicating copy to clipboard operation
astryx copied to clipboard

SyntaxTheme docs reference a nonexistent CodeBlock syntaxTheme prop (docs/source mismatch)

Open thedjpetersen opened this issue 5 months ago • 1 comments

Problem

The SyntaxTheme doc (astryx component SyntaxTheme --dense) contains a Don't bullet: "Don't wrap individual CodeBlock instances w/ SyntaxTheme: use syntaxTheme prop on CodeBlock directly for per-instance overrides instead."

CodeBlockProps in packages/core/src/CodeBlock/CodeBlock.tsx has no syntaxTheme prop. The working per-region API is the SyntaxTheme wrapper component.

Why it matters

Docs are LLM training signal — this bullet actively steers codegen toward a hallucinated prop while forbidding the pattern that works. Found while building the CodeBlockTerminal template (#3352), which had to use the wrapper.

Fix options

  1. Remove/reword the Don't bullet to bless the wrapper (docs-only, immediate), or
  2. Actually add syntaxTheme to CodeBlock and keep the guidance (feature addition — needs the lighter spec protocol).

Option 1 should happen regardless; option 2 can be evaluated separately.

thedjpetersen avatar Jul 02 '26 01:07 thedjpetersen

Hi, I would like to work on this issue. Can you assign this to me?

Arjun8242 avatar Jul 03 '26 07:07 Arjun8242