- 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.
In version 2.1.3 these files seem to have changed again I've just successfully edited
iA Writer.writertemplate/Contents/Resources/local.tpl.html
. I also linked to a css file located on my site, so there's another option if you don't want needles duplication of files and want to roll in changes to stile in the future.I'm using typekit to host the fonts for my site and they don't work in the iA Writer preview. If anyone has any ideas for getting this working I'd appreciate the help.