Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:

  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Drawing Dark Mode / Comfort theme. Chrome Extension. Free and open source.

sam_wehrli
sam_wehrli Member Posts: 18 PRO
popup-ui.png industrial-cyanotype.png slate-graphite.png warm-drafting.png

Quick disclaimer: I'm a tool-and-die/manufacturing guy with a welding background, not a software developer. This was very much an AI-assisted project, not something I hand-coded from scratch. I brought the problem, testing, feedback, and an increasingly unreasonable determination to make Onshape Drawings less bright; ChatGPT/Sol and Astra/Codex did most of the software heavy lifting.


I'm light sensitive and I've wanted some form of dark mode for Onshape Drawings for a long time. Native dark mode handles the rest of Onshape nicely, but opening a Drawing still means staring at a giant white sheet, and after a few hours of detailing it gets pretty unpleasant.

So I started tinkering with a Chrome extension to see what could actually be changed without interfering with the drawing itself. A week and a considerably deeper trip into Onshape's Drawing renderer than I originally intended later, this is where I ended up.

The observant will notice that a handful of fields in the title block remain stubbornly white. That isn't for lack of trying. I burned through several five-hour Astra allowance blocks investigating those little rectangles, and after an unreasonable amount of renderer archaeology, Sol and I ultimately arrived at the highly sophisticated engineering conclusion of “leave them alone.” We could change their color, but never found a reliable way to identify only those fields without risking unrelated drawing text or selection behavior. I just had to acknowledge when to stop with that one.

Onshape Drawing Comfort adds three selectable palettes to the Drawing editor:

  • Warm Drafting — paper tan / dark ink
  • Slate Graphite — neutral low-glare dark theme
  • Industrial Cyanotype — dark blue / blueprint-inspired theme

The selected theme persists between sessions, applies to open Drawing tabs, and can be turned on/off directly from the extension popup. It also themes quite a bit of the surrounding Drawing UI rather than just changing the sheet color.

This is an unofficial community project and isn't affiliated with or supported by Onshape/PTC. It also relies on undocumented parts of the Drawing renderer/UI, so an Onshape update could absolutely break it someday. I deliberately left a few things native where I couldn't find a sufficiently safe way to identify them.

If you just want to try it:
Download the installation ZIP here:

https://github.com/SamDomiono/Onshape-Drawing-Comfort-Dark-Mode/releases/download/v0.2.0/Onshape-Drawing-Comfort-Dark-Mode-v0.2.0.zip

No Git or programming tools are required. Extract the ZIP somewhere permanent, open chrome://extensions, enable Developer mode, click Load unpacked, and select the extracted folder.

Project/source/full documentation:
https://github.com/SamDomiono/Onshape-Drawing-Comfort-Dark-Mode

It's released under the 0BSD license, so if somebody wants to modify it, improve it, fork it, or feed the source to their AI of choice and make it behave differently, have at it.

I've tested it pretty extensively on my own Drawings, including multiple tabs, reloads, switching themes, turning it on/off, and creating/editing Notes. That obviously isn't the same thing as testing every possible Drawing workflow, so if anyone tries it and finds something I've missed, I'd be interested to hear about it.

And if Onshape eventually gives Drawings a native dark mode and makes this whole thing obsolete, I'll consider that a successful outcome too.

Comments

  • john_mcclary
    john_mcclary Member, Developers Posts: 4,117 PRO

    Looks good

  • rick_randall
    rick_randall Member Posts: 444 ✭✭✭
    edited September 18

    @sam_wehrli

    I too have trouble looking at a white screen, my preferred color choice is a very light shade of green (think of an old drafting board). I've found this to be very soothing on the eyes, even after long hours. You might consider adding this scheme. Wish this was an option for the modeling background as well. Nice job!

  • sam_wehrli
    sam_wehrli Member Posts: 18 PRO

    In the full documentation there are markdowns labeled "PROJECT STATE.MD", "RENDERER FINDINGS.MD", and "AGENTS.MD". The last one, specifically is intended for future AI editing so your bot doesn't have to go on a research expedition. You could package the whole thing into a .zip and drop it into the AI model of your choice, it should be able to iterate the color scheme you want. The easiest way would be to replace one of the 3 existing slots. Adding a 4th might take a little more doing, your call. It's all open source so I'd be interested to see other users's iterations. For me, Warm Drafting was based on the "Sepia" scheme from the Amazon Kindle reader.