Show HN: CSS Scan – Instantly check or copy computed CSS from any element(guivr.github.io)
guivr.github.io
Show HN: CSS Scan – Instantly check or copy computed CSS from any element
http://guivr.github.io/cssscan
51 comments
Just had a chance to check it out on Chrome. Looks cool! Another feature that might be useful is to have links back to the related stylesheets via css source maps.
Any chances you can get it integrated with React? Like show the component name when trying to copy styles.
You mean webcomponents? I'll study this. Thanks for the suggestion!
I'd vote for web components over React, as some of us use Vue or Angular...
I still don’t understand why Angular hasn’t died out. It’s very hard to understand and the tutorials can’t simplify that because it’s just inherently very complex. It feels highly over engineered like classical Java. Instead of allowing you to opt into more complex features as needed like a good framework should do, it forces you to learn its steel curve up front!
I really enjoyed Angular 1.x, was not happy with the 2.0 version (other then they fixed some critical performance issues with scaling websites). It was perfect for making simple single page applications for internal use at an an eCommerce company. POS, Order Processing, RMA processing, Research, competition and price controls, inventory & warehouse management, etc. I use ReactJS for large applications these days.
I think it's due to its enterprise users and customer bases, and never underestimate the power of legacy code base inertia that often keep these types of things going.
It has improved quite a lot, it's a joy to code in in the newest versions. You do need to invest a bit of time to learn it but it's well worth it
No, not webcomponents.
I want to know more about the bicycle tour this is paying for!
Glad you got off the sofa a few times during the code-a-thon, you could have spent all that time in front of a games console, so well done for completing the task.
Glad you got off the sofa a few times during the code-a-thon, you could have spent all that time in front of a games console, so well done for completing the task.
Isn't this literally getComputedStyle[1]? Chrome devtools already has a 'computed' section which shows the same thing. What additional functionality does this provide that I'm missing?
[1] https://developer.mozilla.org/en-US/docs/Web/API/Window/getC...
[1] https://developer.mozilla.org/en-US/docs/Web/API/Window/getC...
Not identical, just similar. getComputedStyle gets the default styling of the browser too, and also some properties that are used just for rendering.
Besides that, you'd have to use the console for each element you want. With CSS Scan you just have to hover it.
Besides that, you'd have to use the console for each element you want. With CSS Scan you just have to hover it.
Great tool! I'd like to see you keep going with this. Quick feedback: it would be useful to copy the entire ruleset, including the selector and brackets (as an option). Further if you can reach into source via document.stylesheets, grab the selectors from source (as another option).
Hey! I have good news! Just updated the app. Now you can copy the selector name! If you use Chrome, the extension will update itself. On Firefox, I'll implement auto-update functionality tomorrow. More updates to come!
It'd actually be great to see something like this absorbed into browser dev-tools.
Thanks for the suggestion! Nice idea, will write it down to feature requests :)
Looks super useful but I don't want to buy before I try. The landing page says "for the price you want", but the product page has a 1.99+ and I can't enter less than that.
Anyone from Chrome/FF/Safari teams willing to implement this functionality into the default dev tools? It's super handy.
Can you share anything about how many sales you've made? I'm curious how willing developers are to pay for tools like this. I'm working on selling a Chrome extension as well so I'd be super interested in learning more.
Hey seanwilson, I actually made a lot more sales than I expected. $500 Revenue so far. 167 sales :) I'm also planning to write an article, I'll update stats on twitter (@gvrizzo)
By the way, how does the Gumroad integration and license checking work? You get the extension files to download on purchase?
I'm integrating Paddle for payments into my extension. It requires you to implement user accounts or license keys yourself though.
I'm integrating Paddle for payments into my extension. It requires you to implement user accounts or license keys yourself though.
What are you currently doing to handle licensing outside of Paddle? I'm guessing you're building an Electron app?
I've used a similar tool[1] before to convert all styles of an element to inline styles in order to copy it into a more isolated setting for testing, and it worked pretty well for me. There were a lot of manual steps for me to do this though, so CSS Scan seems like a pretty nice "one click" alternative.
[1]: https://www.npmjs.com/package/computed-style-to-inline-style
[1]: https://www.npmjs.com/package/computed-style-to-inline-style
This looks great! Though it seems funny to charge for a tool that makes it easier to copy other people's code.
Thanks! :)
Yeah, but you can use it for yourself too, just to check your styles or to study the web.
This is great. I've been looking for a good way to be able to identify between active styles and legacy css that seems to build up over time, and this is a pretty neat way to do it.
Glad you liked it! Thanks :)
Is it possible you can show a partial grid?
e.g. there's so many boxes inside of boxes.
It would be nice if say within the `body` tag, you show items that are at most 1,2,3,4 levels deep at most.
e.g. there's so many boxes inside of boxes.
It would be nice if say within the `body` tag, you show items that are at most 1,2,3,4 levels deep at most.
I bought it! I looked into trying to do this myself and got stuck.
Also interested to hear how the sales go, I think charging a little money for it is a great idea.
Also interested to hear how the sales go, I think charging a little money for it is a great idea.
Thanks andre! :)
The sales went pretty well! I'll share some stats on my twitter @gvrizzo tomorrow. Also already shared some numbers on a reply here.
This is really cool.
Is there any way you can add the option to turn the CSS into React inline styles?
Is there any way you can add the option to turn the CSS into React inline styles?
I bought it - it’s cheaper than a coffee and Saves me time!
This is basically an advertisement.
HN has a pretty strong history of people posting their/other's projects, commercial or otherwise and getting feedback. So in a way, every Show HN is an advertisement. I don't believe this should be discouraged. I personally find the Show HN posts far more interesting and closer to HN roots than the typical tech/political news that dominates the front page these days.
I mean a synonym for "advertise" is literally "show". What I really have a problem with is when someone else hijacks someone's thread with their own agenda.
I decided to build CSS Scan to get computed styles with no hassle and in real-time. It's faster than using browsers' Developer Tools and give all of the styles in the shorthand way, this means no messy CSS or styles being overwritten. You can also copy to clipboard by just clicking on it.
P.S.: Of course this is only for use cases you want to have an overall vision of the styles; it's far from being a full alternative to Inspect Element.
It took me 50 hours and 17 minutes to develop. Inspired by @levelsio I recorded all the development and made a speed video. If you want to check it: https://www.youtube.com/watch?v=OtsNNXpXcYs