seabird


Ⅰ. 插件描述

a vim and terminal theme based on hue 204 (blue, blue...)

Ⅱ. 基本信息

创建日期:  2017-03-10
使用用户:  49
Github星:  81
插件作者:  nightsense

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'nightsense/seabird'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'nightsense/seabird'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'nightsense/seabird'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/nightsense/seabird

Ⅳ. 文档说明

Note: this repository is archived; my active blue-tinted vim theme is snow.

.

.

.

seabird

seabird is a theme based on hue 204 .

seabird
variants

light theme

dark theme

high-saturation
seagull petrel

low-saturation
grey gull storm petrel

screenshots

<h5>SEAGULL</h5>






screenshot of seagull, the high-saturation light seabird theme screenshot of petrel, the high-saturation dark seabird theme <h5>PETREL</h5>






<h5>GREY
GULL</h5>






screenshot of grey gull, the low-saturation light seabird theme screenshot of storm petrel, the low-saturation dark seabird theme <h5>STORM
PETREL</h5>






Vim theme

step 1: download the colour scheme

option A: manually

Download the desired colourscheme files and place in directory ~/.vim/colors/ (Linux/Mac) or %userprofile%\vimfiles\colors\ (Windows).

option B: using a plugin manager

For easy management of Vim colour schemes (and other plugins), try a plugin manager. With vim-plug, for instance, just add Plug 'nightsense/seabird' to the list of plugins in vimrc, then run PlugUpdate.

step 2: activate the colour scheme

To activate the seagull theme, add colorscheme seagull to the vimrc file. Choose from among seagull, greygull, petrel, and stormpetrel.

For Neovim, add set termguicolors to enable truecolour support.

To assign themes to specific intervals of the day, try the night-and-day plugin.

step 3: configure terminal colours (if using Vim in a terminal)

In order for seabird to work properly in terminal Vim, set the terminal's colours to match those of the active Vim theme.

terminal themes

As of now, this repository provides the following terminal configuration files:

For GNOME Terminal, run the install script for the desired seabird theme to create a "profile" for it. Then select the profile with the right-click menu, or set the profile as default via Edit > Preferences > Profiles.

Configuration files for other terminals may be added if requested.

other themes (third-party)



how seabird took flight

step 1: choosing a principal hue

Hue 204 was chosen because:

  • a sky blue colour was desired
  • at 100% saturation and value, hue 204 features 3:1 contrast ratio (the ISO standard) with a white background

step 2: choosing base colours

The base colours, which are shared by the light and dark versions of seabird, were selected using the hue/saturation/value model of colour definition.

First, all base colours were assigned hue 204.

Second, saturation levels were assigned. The lightest colour, seagrey8, was assigned 0. For the remaining colours, an excerpt of the Fibonacci sequence was applied.

base colourrolehue °saturation %
seagrey1regular background (petrel)20455
seagrey2highlighted background (petrel)20434
seagrey3subdued text (petrel)20421
seagrey4regular text (seagull)20413
seagrey5regular text (petrel)2048
seagrey6subdued text (seagull)2045
seagrey7highlighted background (seagull)2043
seagrey8regular background (seagull)2040

Third, value levels were assigned. seagrey8 was set to 100% value. The rest were assigned values based on contrast ratios with other base colours.

this colour was assigned......this value......to meet this contrast ratio......with this colour
seagrey11018½:1seagrey8
seagrey2171⅕:1seagrey1
seagrey3483:1seagrey2
seagrey4494½:1seagrey8
seagrey5514½:1seagrey1
seagrey6533:1seagrey7
seagrey7931⅕:1seagrey8
seagrey8100--
  • the 18½:1 ratio ensures a 10% value background for the dark theme: a "soft black" good for long-term readability
  • the 1⅕:1 ratio provides background highlights that stand out clearly from the regular background
  • the 3:1 ratio ensures that subdued text on highlighted background is ISO "standard" readable
  • the 4½:1 ratio ensures that regular text on regular background is W3C "AA accessible" readable

The resulting colours:

seabird base colourhexhue °saturation %value %
 seagrey10b141a2045510
 seagrey21d252b2043417
 seagrey361707a2042148
 seagrey46d767d2041349
 seagrey5787e82204851
 seagrey6808487204553
 seagrey7e6eaed204393
 seagrey8ffffff2040100

step 3: choosing accent colours

Accent colour hues were selected from around the (30°-divided) colour wheel: hue 204 plus seven companions.

colourhue °contrast level
red354high
orange24medium
yellow54low
green114low
teal174low
blue204medium
purple264high
pink324high

All hues were initially set to 100% saturation and value. Then:

  • the low-contrast colours were reduced in value (yellow by ¼, green and teal by ⅓)
  • the high-contrast colours were reduced in saturation (red by ¼, purple and pink by ⅓)
  • the mid-contrast colours (orange and blue) were left alone

The goal contrast ratio was 3:1 (the ISO standard), prompting a few small hue adjustments.

seagull accent colourhexhue °saturation %value %
 redff405335475100
 orangeff620023100100
 yellowbf8c004410075
 green11ab0011410067
 teal00a5ab18210067
 blue0099ff204100100
 purple9854ff26467100
 pinkff549b33567100

For grey gull, each seagull accent colour was reduced in saturation by 38.2% (by applying the golden ratio), then reduced in value to a contrast ratio of 3:1.

grey gull accent colourhexhue °saturation %value %
 reddb76813544686
 oranged1814f236282
 yellowad9142446268
 green4aa8401146266
 teal3fa2a61826265
 blue4e9bcf2046281
 purplea783de2644187
 pinkcf7a9d3354181

For petrel, each grey gull accent colour was reduced in value to a contrast ratio of 4½:1 (the W3C AA minimum).

petrel accent colourhexhue °saturation %value %
 redba656d3544673
 orangeb06d43236269
 yellow947b38446258
 green3f8f361146256
 teal35898c1826255
 blue4384b02046269
 purple8e6fbd2644174
 pinkb068863354169

For storm petrel, each petrel accent colour was reduced in saturation by 38.2% (by applying the golden ratio), then reduced in value to a contrast ratio of 4½:1.

storm petrel accent colourhexhue °saturation %value %
 red9e72763542862
 orange9c7760233861
 yellow8a7c55443854
 green5b8a551143854
 teal5485871823853
 blue5f82992043860
 purple86779e2642562
 pink9973833352560

notes

The seabird colour scheme files are generated by modifying those of the flattened colour scheme by Romain Lafourcade, which is in turn derived from the Solarized colour scheme by Ethan Schnoonover.

Colour adjustment was performed with the GnuIMP colour selection tool. Contrast ratios were calculated with these formulas.

Actual contrast ratios may be slightly higher than those listed, due to discrete jumps in digital colour values.

Photo credits:

添加新评论