Bear CSS - Generates CSS based on your HTML markup
bearcss.com
bearcss.com
Now that I know what it does, I don't see the point of it. Why would put every div, every html element in the CSS? I never do that.
Also the comments and the way of separating different CSS are not the way one would do at all on a project. I'm sorry but I really don't see the point of it at all, and I also don't see how you could monetize that.
PS: Also is it that revolutionary that it hits 5# on HN's frontpage?
http://bearcss.com/outputCSS/21f0b55b80e7773d3199e87f4d8e328...
Is it supposed to merge all inline CSS properties to a .css file?
In that sense Bear CSS seems quite a good approach because then probably we're playing just with 'relevant css' of only elements/markup we're actually using in the app. Will definitely give it a try.
Not to mention a logical hierarchy and grouping based on the content of the site as opposed to what this tool supplies. Eg. LISTS, TYPOGRAPHY etc. (http://bearcss.com/outputCSS/60f6411ee02d14afff6dcc17b1be21d...)
Considering you're going to need to re-arrange the order of all these class/id names, you probably aren't going to save much time with this tool.
Having said that it is kind of neat.
Run it in the browser console, much quicker than uploading...
However it needs more work. Multiple classes are broken.
.post-5 post type-post status-publish format-standard hentry category-products post {
}
Also, it misses a trick by not using heierarchy for definitions the way anybody who writes css as part of their job would.
I'd like to see it as a tool that gives you every definition you need, and then you can strip out what you don't want afterwards.
I can't see myself using it on a bespoke project, as I tend to write html and css simultaneously.
Someone should create a repository which lists all web development frameworks/utilities/tools/libraries/doodads/etc and has some kind of popularity mechanism. Right now, my only way of knowing what's used (and works) in the trenches is going by comments on HN.
Imagine if it only included HTML elements with an ID or a class. It's produce something that could then be edited to ADD to the current CSS, instead of replace it.
If we wanted to export all the styles in play for a HTML page, i.e. all the computed styles, I'm sure there's a way of hacking Firebug to export what it thinks is the CSS.
Incidentally, I didn't get it to work with a HTML page saved from the internet - it uploads it then tells me it's a HTTP error.
1. The output CSS contains invalid or unnecessary code. Multiple classes on an elements are incorrectly handled, some form inputs (checkout and radio) are incorrectly referenced, and reference-only IDs are included.
2. The idea is flawed. Writing CSS and creating reusable components is not the same as filling in values for every element, class, and id found in your HTML.
I still think there's a place for this. I think they've got a ways to go before it's ready though.
obviously there is a huge amount of room for improvement.
Is there anyone who prefers to write _all_ of the HTML before starting the CSS? If so, I'd be interested in hearing about your workflow.
The reason being I had to copy text from a Word doc into a long-form landing page. HTML from Word sucks and I never found a converter I liked because of my compelling need for decent formatting.
So I would copy entire chunks of copy from Word into Dreamweaver and then create my markup based on paragraph, headings and so on. I even made an extension for Dreamweaver that would convert special characters into their HTML entity equivalents.
Once I had the copy in HTML I would then start designing with CSS and any images required.
I did it this way because once I got past the drudgery of creating the markup for the copy the design part was interesting, challenging and fun. Plus it felt faster that way as opposed to inserting and designing in chunks.
But for websites my preference is the same, HTML and CSS in tandem.