Live data from Hacker News

Show HN: CSS Scan – Instantly check or copy computed CSS from any element

guivr.github.io

21–30 of 52 posts

Re: Show HN: CSS Scan – Instantly check or copy computed CSS from any element

#22
post #2

Hello Hacker News! Creator here, happy to answer any questions! :) 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…

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!

Re: Show HN: CSS Scan – Instantly check or copy computed CSS from any element

#23
post #2

Hello Hacker News! Creator here, happy to answer any questions! :) 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…

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.

Re: Show HN: CSS Scan – Instantly check or copy computed CSS from any element

#24
post #22

Earlier quoted context omitted.

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!

No, not webcomponents.

Re: Show HN: CSS Scan – Instantly check or copy computed CSS from any element

#28
post #22

Earlier quoted context omitted.

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

Re: Show HN: CSS Scan – Instantly check or copy computed CSS from any element

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

Post reply on HN