Skip to content

Instantly share code, notes, and snippets.

@roachhd
Created December 28, 2014 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roachhd/ca7c586557d142ed485b to your computer and use it in GitHub Desktop.
Save roachhd/ca7c586557d142ed485b to your computer and use it in GitHub Desktop.
Solarized theme for HTML

Source

This project aim is to provide general solarized light and dark colorschemes for HTML documents.

Basically I wanted solarized colorschemes for org-mode HTML exports. It is supposed to be used as a single stylesheet for HTML documents that uses regular HTML elements.

Repository: **http://github.com/thomasf/solarized-css**

Targeted integrations

  • Org mode HTML exports
  • Markdown

Download CSS

Light: uncompressed / minimized

Dark: uncompressed / minimized

Using in HTML documents without downloading

Just insert one of these lines into the `` section of any HTML file.

Light version:

http://thomasf.github.io/solarized-css/solarized-light.min.css" rel="stylesheet">

Dark version:

http://thomasf.github.io/solarized-css/solarized-dark.min.css" rel="stylesheet">

Using in Org mode HTML exports without downloading

Put this or something similar at the top of your .org document:

Light version:

#+INFOJS_OPT: view:t toc:t ltoc:t mouse:underline buttons:0 path:http://thomasf.github.io/solarized-css/org-info.min.js
#+HTML_HEAD: ">http://thomasf.github.io/solarized-css/solarized-light.min.css">

Dark version:

#+INFOJS_OPT: view:t toc:t ltoc:t mouse:underline buttons:0 path:http://thomasf.github.io/solarized-css/org-info.min.js
#+HTML_HEAD: ">http://thomasf.github.io/solarized-css/solarized-dark.min.css">

(#+STYLE: changed to #+HTML_HEAD: in org-mode 8.0)

Examples

Acknowledgments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment