all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Protesilaos Stavrou <info@protesilaos.com>
To: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: solarized
Date: Tue, 15 Sep 2020 11:29:24 +0300	[thread overview]
Message-ID: <87mu1ra1ej.fsf@protesilaos.com> (raw)
In-Reply-To: <E1kI2fB-0007Nj-2r@fencepost.gnu.org> (Richard Stallman's message of "Sun, 13 Sep 2020 23:48:06 -0400")

[-- Attachment #1: Type: text/plain, Size: 3608 bytes --]

Hello Richard,

Richard Stallman <rms@gnu.org> [2020-09-13, 23:48 -0400]:

> I looked at the web page about Solarized.  It sounds interesting,
> but I wonder what it looks like.  Can anyone tell me how to see
> those colors in some text?  (Any text.)

Please see attached screenshots for solarized-light and solarized-dark
respectively.  Just a hint at what to expect on an 'emacs -Q' plus the
loaded theme.

> What I read seemed to say that Solarized is a color palette,
> and there are many ways to use it.  I'd like to see the palette.
> Emacs's predefined faces amount to a color palette.
> I wonder if using Solarized colors for them could be an improvement.
> A priori, that may or may not be so.

Solarized is one of the best colour palettes in terms of what it tried
to achieve, namely, a 16-colour palette that adapts to light and dark
variations and which strives for a fairly consistent level of luminance.

My opinion is that Emacs' default faces should be designed with
accessibility (readability) in mind.  A minimum contrast ratio of 4.5:1
between a given foreground and background combination ensures that Emacs
will be readable out-of-the-box for the majority of people.  If you want
to be even more inclusive, a minimum 7:1 contrast ratio is recommended.

Solarized fails on the accessibility front (not its designer's fault, as
that was not its goal).  Many colour combinations are well below the
minimum 4.5:1 threshold.  The following table shows the relative
luminance of all colours of the palette compared with the four base
background values (table's image with colour previews also attached).

| SOLARIZED | HEX     | #002b36 | #073642 | #eee8d5 | #fdf6e3 |
|-----------+---------+---------+---------+---------+---------|
| base03    | #002b36 |    1.00 |    1.15 |   12.25 |   13.92 |
| base02    | #073642 |    1.15 |    1.00 |   10.61 |   12.05 |
| base01    | #586e75 |    2.79 |    2.42 |    4.39 |    4.99 |
| base00    | #657b83 |    3.37 |    2.92 |    3.64 |    4.13 |
| base0     | #839496 |    4.75 |    4.11 |    2.58 |    2.93 |
| base1     | #93a1a1 |    5.61 |    4.86 |    2.18 |    2.48 |
| base2     | #eee8d5 |   12.25 |   10.61 |    1.00 |    1.14 |
| base3     | #fdf6e3 |   13.92 |   12.05 |    1.14 |    1.00 |
| yellow    | #b58900 |    4.68 |    4.05 |    2.62 |    2.98 |
| orange    | #cb4b16 |    3.26 |    2.82 |    3.76 |    4.27 |
| red       | #dc322f |    3.25 |    2.81 |    3.77 |    4.29 |
| magenta   | #d33682 |    3.30 |    2.86 |    3.71 |    4.21 |
| violet    | #6c71c4 |    3.43 |    2.97 |    3.57 |    4.06 |
| blue      | #268bd2 |    4.08 |    3.53 |    3.00 |    3.41 |
| cyan      | #2aa198 |    4.75 |    4.12 |    2.58 |    2.93 |
| green     | #859900 |    4.69 |    4.06 |    2.62 |    2.97 |

Please refer to this spec for the technical details of the formula that
tests for compliance with the WCAG standard for colour contrast:
<https://www.w3.org/TR/WCAG20-TECHS/G18.html>.

That granted, Solarized would make for a good basis to build derivative
works off of.  My comment concerns the overall framework or set of
guidelines that should inform the choice of colours and design overall.

For an alternative that conforms with the WCAG AAA standard (7:1), has
broad face/package coverage, and is highly customisable, consider either
of the themes 'modus-operandi' (light) and 'modus-vivendi' (dark) which
are in the Emacs master branch.  Disclosure: I am their author and will
share their latest version, as well as an Info manual, at the end of
this month.

Best regards,
Protesilaos

-- 
Protesilaos Stavrou
protesilaos.com


[-- Attachment #2: solarized-dark.png --]
[-- Type: image/png, Size: 181266 bytes --]

[-- Attachment #3: solarized-light.png --]
[-- Type: image/png, Size: 180093 bytes --]

[-- Attachment #4: solarized-wcag-table.png --]
[-- Type: image/png, Size: 190258 bytes --]

  reply	other threads:[~2020-09-15  8:29 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14  3:48 solarized Richard Stallman
2020-09-15  8:29 ` Protesilaos Stavrou [this message]
2020-09-15  9:14   ` solarized Yuri Khan
2020-09-15 10:16     ` solarized Protesilaos Stavrou
2020-09-15 13:39       ` solarized Theodor Thornhill
2020-09-15 14:05         ` solarized Gerry Agbobada
2020-09-15 14:40           ` Theme generator (was: solarized) Stefan Monnier
2020-09-15 16:26             ` Theme generator Arthur Miller
2020-09-15 20:14               ` Stefan Monnier
2020-09-15 20:35                 ` Stefan Monnier
2020-09-15 20:44                   ` Arthur Miller
2020-09-16  1:49             ` Theme generator (was: solarized) Tim Cross
2020-09-17  0:25               ` chad
2020-09-17 14:25                 ` Theme generator Arthur Miller
2020-09-16  5:03             ` Theme generator (was: solarized) Richard Stallman
2020-09-15 20:28         ` solarized Protesilaos Stavrou
2020-09-15 20:50           ` solarized Praharsh Suryadevara
2020-09-16  5:05       ` solarized Richard Stallman
2020-09-16  8:27         ` solarized Protesilaos Stavrou
2020-09-16 13:38           ` solarized Arthur Miller
2020-09-17  3:57           ` solarized Richard Stallman
2020-09-17  7:53             ` solarized Gian Uberto Lauri
2020-09-17 15:56               ` solarized Drew Adams
2020-09-18  4:08               ` solarized Richard Stallman
2020-09-18  4:08               ` solarized Richard Stallman
2020-09-18 16:44                 ` solarized Drew Adams
2020-09-17 14:11             ` solarized Arthur Miller
2020-09-17 23:39               ` solarized Tim Cross
2020-09-18  4:13                 ` solarized Richard Stallman
2020-09-18  5:49                   ` solarized Tim Cross
2020-09-18  6:43                   ` solarized Arthur Miller
2020-09-16 13:06         ` solarized Arthur Miller
2020-09-17  3:53           ` solarized Richard Stallman
2020-09-15 11:26   ` solarized Göktuğ Kayaalp
2020-09-15 12:15     ` solarized Elias Mårtenson
2020-09-15 12:56       ` solarized Göktuğ Kayaalp
2020-09-16  1:30         ` solarized Tim Cross
2020-09-16 10:21           ` solarized Göktuğ Kayaalp
2020-09-16 12:53             ` solarized Arthur Miller
2020-09-16 22:09             ` solarized Tim Cross
2020-09-17 14:29               ` solarized Arthur Miller
2020-09-18 13:32               ` solarized Stefan Kangas
2020-09-18 15:53                 ` solarized Arthur Miller
2020-09-18 16:03                 ` solarized Arthur Miller
2020-09-19  4:00                 ` solarized Richard Stallman
2020-09-20 20:18                   ` solarized Bozhidar Batsov
2020-09-15 12:05   ` WCAG AAA and Emacs themes Dmitry Gutov
2020-09-15 20:22     ` Protesilaos Stavrou
  -- strict thread matches above, loose matches on Subject: below --
2020-09-16 18:07 solarized Protesilaos Stavrou
2020-09-17 14:55 ` solarized Arthur Miller
2020-09-17 15:27 ` solarized Arthur Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mu1ra1ej.fsf@protesilaos.com \
    --to=info@protesilaos.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.