Lurker News

Comments (288) 84 threads

Earlier comments
TekMol1 reply#
This could also be a bookmarklet. That would make it more secure as bookmarklets only have access to the page you use them on.

Looking at the code, you can indeed run it as a bookmarklet. I went to https://www.example.com and typed this in the browser console:

    s1=document.createElement('script'); s1.src='https://code.jquery.com/jquery-3.7.0.slim.min.js'; document.head.appendChild(s1); s2=document.createElement('script'); s2.onload=()=>window.cssProReady(); s2.src='https://csspro.com/demo-build/mainnewnew.js'; document.head.appendChild(s2);
Boom! The tool is running.

So prefixing that line with "javascript:" and putting it into a bookmark would let you use it on any site you wish, simply by clicking the bookmark. Without having to install an extension.
Would be a good alternative the author could offer imho.

evanreichard1 reply#
Any site that has a half decent Content Security Policy would prevent this. (You can try on HN, GitHub, etc and it fails)

However it may work as a UserScript depending on the UserScript engine.

graftak#
Sure but the main proposition for this tool is for it to be used during local development where CSP is often/always omitted.
o1y322 replies#
Looks like this is meant for professional web developers to make their life easier. So it is not here to replace wix. So,

1. I am struggling to understand the value proposition of this. Demo is cool but most developers working in an organization will not use most of the features shown here. No, no rotation or fancy fonts or colors. The only thing they will do is to use the standard font or color. And most elements don't use any backgrounds, and if they do they use one of the three predefined colors as the background. Gradient color? Maybe once a year. You can already do spacing stuff and text modification in the chrome devtools. I know this tool seems to make it easier, but is it worth paying money for it? I just don't see myself or any medium/large organization (e.g. Microsoft) paying $30/month. Figma is expensive but that is a whole product by itself. It enables new workflow and is irreplaceable in many ways, but I don't see this tool being the same. 2. Demo does not seem to tackle one of the biggest pain points -- layout. Based on stackoverflow questions and their upvote numbers plus what I see in my company, many people (including new and experienced developers) have trouble handling various methods of layout and arranging items. That is where this tool could help -- if done correctly. 3. What if someone makes a similar, open-source tool that achieves 50% of this, or the core features that people actually use every day? Can this compete at all? I'll be surprised if something doesn't already exist today.
Basically, this is all interesting stuff but I can't see how it is a viable business if you charge $30/month.

dmix#
You probably aren’t the target market, you’d typically ask the company you work for to pay for it or if you’re a freelancer and use dev tools daily for this CSS stuff (which I’ve personally done at various times in my career) you just factor it into your business expenses.

It’s not like a random person paying for Netflix. $30 is a reasonable ask.
> What if someone makes a similar, open-source tool that achieves 50% of this, or the core features that people actually use every day
In the video there’s a serious amount of functionality, that would take someone doing this as a hobby a very long time. And most OSS design-wise typically doesn’t look as good or polished (designers care about that). That’s usually the difference, the time/effort a commercial company can put in vs volunteer OSS teams.

onion2k1 reply#
What if someone makes a similar, open-source tool that achieves 50% of this...

Would you need to mount it locally with curlftpfs if you're on Linux?

kirillrogovoy1 reply#
If you use Tailwind and React, you might like Impulse[1] (disclaimer: I made it and use it almost daily)

Not only does it provide means for visual editing (for Tailwind only), but it also saves all changes to your code.
Free and open source.
[1] https://impulse.dev/

newusertoday1 reply#
this looks great does it works on incognito mode?
kirillrogovoy#
Yes.

It'd have to ask you for the FS permissions again though since the active FS handle is stored in the IndexDB which of course is separate in incognito.

aosaigh4 replies#
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.
ckolkey2 replies#
How would that work with VCS?
nailer#
After you make changes, if you like them, you can commit them.
jagged-chisel#
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.
shireboy2 replies#
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.
towawy#
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.

XCSme#
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.

JayStavis#
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

Load more comments