#+title: Solaryzed: A Generalisation of Solarized #+date: [2020-03-01 Sun] #+author: Yann Esposito #+EMAIL: yann@esposito.host #+keywords: colorscheme #+DESCRIPTION: A generalization of solarized (https://solaryzed.esy.fun) #+OPTIONS: auto-id:t toc:t #+STARTUP: overview The colorscheme of my website is the colorscheme I use for my terminal and most of my environment. This is inspired by both [[https://ethanschoonover.com/solarized/][Solarized]] and [[https://nordtheme.com][Nord]]. So I used [[https://ethanschoonover.com/solarized/][Solarized]] for many years. And it was really difficult finding a new one that suits my taste. Stil I disliked the blue-green dark background. I wanted to change that background color. Or having a grayer background. Ethan Shoovnover the creator of Solarized gave plenty of information about how he created it. Also I stumbled upon the [[https://nordtheme.com][Nord]] theme. And I really liked it. But while the colors are great, it is not as easy to switch from light to dark theme than with solarized because Solarized has a lot of nice properties. So I kept the main principle used to create Solarized but freed a few parameters. The tint of the dark and light colors for the background and the text, as well as the contrast of the colors. And I created this minimal application in Purescript: https://solaryzed.esy.fun It is still not perfect, because the real theme I use for my website as a slightly bigger contrast for text. Here is the CSS you could use: #+begin_export html
b03
b02
b01
b00
b0
b1
b2
b3
y
o
r
m
v
b
c
g
#+end_export #+begin_src css :tangle solaryzed.css :root { color-scheme: light dark; /* support color scheme */ --b03: #202631; --b02: #2b313c; --b01: #656b74; --b00: #727781; --b0: #989ea8; --b1: #b0bac7; --b2: #e5e8ed; --b3: #f4f7ff; --y: #a98d50; --o: #aa6550; --r: #b85a64; --m: #af53b0; --v: #846f93; --b: #5679a4; --c: #4c8493; --g: #728b5c; --bg: var(--b3); --fg: var(--b02); --fg0: var(--b0); /* lower contrast */ --bg2: var(--b2); /* second color block background */ --fg2: var(--b01); /* second color block foreground */ --acc: var(--o); /* accent color */ } @media (prefers-color-scheme: dark) { :root { /* Dark */ --bg: var(--b03); --fg: var(--b0); --fg0: var(--b00); /* lower contrast */ --bg2: var(--b02); /* second color block background */ --fg2: var(--b1); /* second color block foreground */ --acc: var(--g); /* accent color */ } } body,.main { background: var(--bg); color: var(--fg); } #+end_src