Skip to content

Fix schematic outline color for strict SVG consumers - #3984

Open
billythompsons wants to merge 2 commits into
tscircuit:mainfrom
billythompsons:fix/portable-schematic-outline-color
Open

billythompsons wants to merge 2 commits into
tscircuit:mainfrom
billythompsons:fix/portable-schematic-outline-color

Conversation

@billythompsons

Copy link
Copy Markdown

Fixes #3982.

Changes the default schematic component outline color from three-argument rgba(132, 0, 0) to the equivalent rgb(132, 0, 0). The new spelling is accepted by SVG 1.1/CSS2 consumers while preserving the rendered color in browsers.

Also extends the existing SchematicLine test to assert the portable color reaches circuit JSON.

Testing:

  • git diff --check
  • Focused Bun test could not be run locally because Bun is not installed in this execution environment; CI will run the repository suite.

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
tscircuit-core-benchmarks Ready Ready Preview Sep 16, 2026 9:29pm UTC

Request Review

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.

SCHEMATIC_COMPONENT_OUTLINE_COLOR "rgba(132, 0, 0)" is not portable SVG color; strict SVG renderers reject schematic output

1 participant