Hi,

I am wondering if there is any interest in adding solarized colors to the core. I am attaching colo-imp-solarized.mkiv file. (Essentially the same file will work in MkII). For those who do not know, solarized (http://ethanschoonover.com/solarized) is a 16 color palatte designed with a precise LAB lightness between the colors and is supposed to work well in a variety of lighting conditions.

I have named the colors such that loading this will override the default color values of yello, orange, red, magenta, violet, blue, cyan, and green (X11 does the same, but X11's color definitions match the default). Another option is to either use CamelCase names or names such as 'solarizedYellow', etc.

If you think that it is not worth having such small color palattes in the core, then I can create a separate module that collects these.

Aditya
%D \module
%D   [    file=colo-imp-solarized,
%D     version=2017.02.10,
%D       title=\CONTEXT\ColorMacros,
%D    subtitle=Solarized,
%D      author=AdityaMahajan,
%D   ]

%D Colors based on solarized scheme
%D \hyphenatedurl{http://ethanschoonover.com/solarized}

\startprotectedcolors
  \definecolor[base03]  [h=002b36]
  \definecolor[base02]  [h=073642]
  \definecolor[base01]  [h=586e75]
  \definecolor[base00]  [h=657b83]
  \definecolor[base0]   [h=839496]
  \definecolor[base1]   [h=93a1a1]
  \definecolor[base2]   [h=eee8d5]
  \definecolor[base3]   [h=fdf6e3]
  \definecolor[yellow]  [h=b58900]
  \definecolor[orange]  [h=cb4b16]
  \definecolor[red]     [h=dc322f]
  \definecolor[magenta] [h=d33682]
  \definecolor[violet]  [h=6c71c4]
  \definecolor[blue]    [h=268bd2]
  \definecolor[cyan]    [h=2aa198]
  \definecolor[green]   [h=859900]
\stopprotectedcolors

_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context

Reply via email to