I've done ab bit of web-searching and found nothing. Are there any attempts on using CSS for LaTeX formatting? For example:
body { font-family: Helvetica,Arial,sans-serif; }
section { font-size: 16pt; }
/* or: */
h1 { font-size: 16pt; }
I know that this approach is limited compared to the classic approach, but it could be a nice attempt. So are there any published papers or code pieces?
I'd like to write in the preamble of my LaTeX document: \usestylefile{foo.css} and have the text rendered as written in the given style file (and its linked style files).

text-colorbycolor). So, IMO, all you need to do is come up with a consistent, key-value driven document mode. Then translating CSS style to TeX style is easy. – Aditya Nov 21 '11 at 22:14