News for hackers. Stuff that matters.
Re:Show HN: I made CSS Pro, a re-imagined Devtools for web d... by aosaigh on Thursday June 01, 2023 @06:59AM (#36149556)
The killer feature here would be hooking this up to Netlify/Vercel etc. and having a 2-way-write. Every time you update something in the CSSPro editor, your codebase is actually updated and the site is rebuilt in the background. This would let you essentially design in the browser and avoid the tedious copy/paste, rebuild, reload cycle.
Re:Show HN: I made CSS Pro, a re-imagined Devtools for web d... by shireboy on Thursday June 01, 2023 @07:12AM (#36149642)
This is what I’ve wanted for ages from browser dev tools. It’s now fairly standard to have hot refresh where the dev server uses websockets to control injecting changes and refreshing the browser when changes are made in the code files. I want to go the other way. If I tweak css in browser, have a way to write those changes back to the project. The real challenge would be traversing a change in browser css back to scss/less.
Re:Show HN: I made CSS Pro, a re-imagined Devtools for web d... by umaar on Thursday June 01, 2023 @09:45AM (#36150945)
You can do this with Workspaces and it works well. Made a video on this here: https://moderndevtools.com/lessons/12
Re:Show HN: I made CSS Pro, a re-imagined Devtools for web d... by towawy on Thursday June 01, 2023 @09:54AM (#36151051)
Chrome Dev Tools has had that feature (for css specifically, not transpiled languages) for years. https://developer.chrome.com/docs/devtools/workspaces/

We used to have full WYSIWYG editors in browsers as far back as the 90s (including deployment via FTP). Specialized editors just seem to have always been the preference for developers.

Re:Show HN: I made CSS Pro, a re-imagined Devtools for web d... by ckolkey on Thursday June 01, 2023 @07:10AM (#36149628)
How would that work with VCS?
Re:Show HN: I made CSS Pro, a re-imagined Devtools for web d... by nailer on Thursday June 01, 2023 @08:02AM (#36149988)
After you make changes, if you like them, you can commit them.
Re:Show HN: I made CSS Pro, a re-imagined Devtools for web d... by jagged-chisel on Thursday June 01, 2023 @08:18AM (#36150103)
The changes exist in the file system of wherever the server runs. Presumably in the repo if code. Run your git commands to see what is changed and select what to commit.
Re:Show HN: I made CSS Pro, a re-imagined Devtools for web d... by XCSme on Thursday June 01, 2023 @10:19AM (#36151361)
I wonder if there is a way to "export changes to git", such that you can download some sort of script (or apply some cherry-picked git changes) from an external source?

In this case, you would press "export changes to git" and then somehow apply them to your local repo, and bam, all the changes transferred without having to actually change any files.

One problem with this is that the changes in the browser are done on the distribution (bundled) files. Maybe using source-maps it could still be possible.

Re:Show HN: I made CSS Pro, a re-imagined Devtools for web d... by JayStavis on Thursday June 01, 2023 @10:55AM (#36151902)
100% agree. This would be a killer integration in vercel preview deployments (a la comments feature)

Triplex has some of that 2-way sync for frontend to code: https://triplex.dev/docs/overview