# mohan-bee - Hey @Abse , can you help me with t... Channel: #contributor Source: https://discord.com/channels/1233487248129921135/1509257535658393672 Started: 2026-05-27T18:10:37.616000+00:00 Last activity: 2026-06-18T14:57:15.714000+00:00 ## mohan-bee — 2026-05-27T18:10:37.150000+00:00 Hey <@398467566588264449> , can you help me with the board color fix? I updated `circuit-to-svg` so board colors are only used in the realistic soldermask render path, but I’m still unsure if this is the right place in the pipeline. Could you please help me confirm the correct fix? https://github.com/tscircuit/circuit-to-svg/pull/566 ## techmannih — 2026-05-27T18:59:12.498000+00:00 Where do you want this change to be made — in core or somewhere else? ## techmannih — 2026-05-27T19:03:52.115000+00:00 <@1238122660345548882> can you link the issue with the pr ## mohan-bee — 2026-05-27T19:05:52.570000+00:00 ig this needs to implement across 2-3 repos core, circuit to canvas, circuit to svg ## mohan-bee — 2026-05-27T19:06:13.741000+00:00 still trying to figure out solution ## techmannih — 2026-05-27T19:07:15.449000+00:00 . ## mohan-bee — 2026-05-27T19:07:52.033000+00:00 https://github.com/tscircuit/tscircuit/issues/3277 ## techmannih — 2026-05-27T19:11:45.768000+00:00 yea thanks do you add the spec? ## mohan-bee — 2026-05-27T19:11:59.222000+00:00 yep ## techmannih — 2026-05-27T19:16:57.205000+00:00 yea so next pr should be in circuit-to-svg ## techmannih — 2026-05-27T19:17:39.593000+00:00 it is the right place in the pipeline ## mohan-bee — 2026-05-27T19:17:47.990000+00:00 https://github.com/tscircuit/circuit-to-svg/pull/566 ## techmannih — 2026-05-27T19:18:30.212000+00:00 now seve said about the implementation is wrong ## techmannih — 2026-05-27T19:20:03.595000+00:00 I tried to look into this implementation to understand what exactly we need according to the issue. ## mohan-bee — 2026-05-27T19:26:47.948000+00:00 In circuit-to-svg, I changed the board color fix so it does not change the normal color override system. pcb_board.solder_mask_color and pcb_board.silkscreen_color will be applied only when showSolderMask: true ## techmannih — 2026-06-18T05:20:01.327000+00:00 damn sorry for that i was totally forgot about it that time ## mohan-bee — 2026-06-18T05:20:18.356000+00:00 no issue ! can we reopen this again ? ## mohan-bee — 2026-06-18T05:20:31.335000+00:00 but i am still confused about the expected behaviour ! ## techmannih — 2026-06-18T05:21:48.847000+00:00 let me check it once again ## mohan-bee — 2026-06-18T05:22:53+00:00 may be take a look at the pr https://github.com/tscircuit/circuit-to-svg/pull/566 https://github.com/tscircuit/circuit-to-canvas/pull/240 ## techmannih — 2026-06-18T05:25:21.117000+00:00 you need to add the solder_mask_color in circuit json for pcb board first ## mohan-bee — 2026-06-18T05:25:33.725000+00:00 that is added already ## mohan-bee — 2026-06-18T05:26:01.521000+00:00 https://github.com/tscircuit/circuit-json/pull/588 ## techmannih — 2026-06-18T05:34:03.415000+00:00 <@1238122660345548882> We already have solder mask support for boards, platedhole, pcbhole,smtpads. Could you study how it works across circuit-to-svg, core, circuit-to-canvas, pcb-viewer, and the 3D viewer? That investigation would be very helpful if you're planning to tackle this issue. I'm still working on understanding the user expectations and planning the best approach for that issue ## techmannih — 2026-06-18T05:35:26.939000+00:00 Without studying the existing implementation, it will be difficult to understand what's actually going on there and how the different parts of the stack work together. ## mohan-bee — 2026-06-18T05:37:16.207000+00:00 okay thanks for the take. ## mohan-bee — 2026-06-18T05:37:24.379000+00:00 let me go through that again ## mohan-bee — 2026-06-18T14:56:18.582000+00:00 <@1067854999889137715> can you review this draft one : https://github.com/tscircuit/circuit-to-canvas/pull/247 also idk how well this approach is !! in pcb-viewer the soldermask is rendered only when drawSoldermask is true, also the 3d viewer works in the same way too .. the important part is how existing soldermask works: colorMap.soldermask is the base board mask surface. colorMap.soldermaskOverCopper is used for copper covered by soldermask, like covered pads/plated holes. colorMap.copper remains exposed pad/trace color. ** only the board fill passed to drawBoardSoldermask changes. Everything else still uses the existing realistic soldermask system.** i have also added some different scenario snapshots , without by drawSoldermask: false, drawSoldermask: true (with new color if provided) , drawSoldermask: true(without any color provided) !! ## techmannih — 2026-06-18T14:57:15.714000+00:00 Yes I will check it, now I am afk