Skip to content

fix: support realistic solder mask colors - #983

Merged
rushabhcodes merged 1 commit into
tscircuit:mainfrom
rushabhcodes:fix/solder-mask-colors
Aug 21, 2026
Merged

fix: support realistic solder mask colors#983
rushabhcodes merged 1 commit into
tscircuit:mainfrom
rushabhcodes:fix/solder-mask-colors

Conversation

@rushabhcodes

@rushabhcodes rushabhcodes commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Adds support for realistic solder mask colors so <board solderMaskColor="..." /> renders with a true-to-life laminate finish instead of a flat fill.

What changed

  • soldermask-drawing.ts — derive the mask fill from the configured color, with proper base/shade handling per color.
  • create-soldermask-texture-for-layer.ts — pass the board's solder mask color through to the texture generator.
  • stories/solder-mask-color.stories.tsx — a story per supported color.

Supported colors

PCB solder-mask color palette

Rendered output

Captured from the new SolderMaskColor stories (20mm × 20mm board, single 0402 resistor).

image

Usage

<board width="20mm" height="20mm" solderMaskColor="blue">
  <resistor name="R1" footprint="0402" resistance="1k" pcbX={0} pcbY={0} />
</board>

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
3d-viewer Ready Ready Preview Aug 20, 2026 6:23pm

Request Review

@rushabhcodes
rushabhcodes force-pushed the fix/solder-mask-colors branch from 7c4126d to 329383b Compare August 20, 2026 18:23
@rushabhcodes
rushabhcodes marked this pull request as ready for review August 20, 2026 18:24
Copilot AI lite review requested due to automatic review settings August 20, 2026 18:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mohan-bee mohan-bee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one !

@rushabhcodes
rushabhcodes merged commit 546e7fb into tscircuit:main Aug 21, 2026
6 checks passed
@tscircuitbot

Copy link
Copy Markdown

Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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.

5 participants