- Right-click on iA Writer.app in your Applications folder, select "Show Package Contents"
- Open up Resources/English.lproj/htmlTemplate.html in your favorite text editor
- Add a link to a CSS file in your home directory (and anything else you might want). I put mine in ~/Library/Application Support/iA Writer/themes/policus/css/styles.css and decided to load a couple of web fonts from Google. See hacked-htmlTemplate.html later this gist.
- Save, exit
- Create the CSS file, override default Writer styles
Now when you export to HTML from inside of Writer, your HTML file will be styled according to your your overrides. Want to share your pretty docs? Print to PDF.
Next steps: Link to a locally-hosted jQuery and write a little JS app for switching themes in browser.
Thanks for your instructions on how to style HTML-output. I use IA for writing blog posts for WP sites now and then. As WP seems to accept Markdown only when typed in wysiwyg editor, not copy+pasted, I'd like to export head- and footerless HTML from IA. How would you go about to be able to export text or html-files starting with i.e. '<h2'> (since '<title usually is = ') instead of '<html'> and ending with '</p'>?