Module: Sai::Mei

Defined in:
lib/sai/mei.rb,
lib/sai/mei/palette.rb

Overview

An elegant color naming system extending Sai with sophisticated color palettes

Sai-Mei (彩名) - combining Sai's color management with the on'yomi reading for 'name' - provides a comprehensive collection of named colors extending the Sai color management system. Drawing inspiration from traditional color vocabularies, Sai-Mei brings rich, curated color palettes to terminal interfaces

Sai-Mei empowers developers to selectively incorporate sophisticated color collections into their CLI applications. Like its parent gem Sai, it combines precision with flexibility, allowing developers to organize and utilize color palettes with fine-grained control

Author:

Since:

  • 0.1.0

Defined Under Namespace

Classes: Palette

Class Method Summary collapse

Class Method Details

.css ⇒ Palette

The CSS color palette

Examples:

Installing the CSS color palette

Sai::Mei.css.install

Returns:

  • (Palette) —

    the CSS color palette instance

Author:

Since:

  • unreleased



34
35
36
# File 'lib/sai/mei.rb', line 34

def self.css
  Palette.load(:CSS)
end

.tailwind ⇒ Palette

The Tailwind color palette

Examples:

Installing the Tailwind color palette

Sai::Mei.tailwind.install

Returns:

  • (Palette) —

    the Tailwind color palette instance

Author:

Since:

  • unreleased



50
51
52
# File 'lib/sai/mei.rb', line 50

def self.tailwind
  Palette.load(:Tailwind)
end

.xterm ⇒ Palette

The XTERM color palette

Examples:

Installing the XTERM color palette

Sai::Mei.xterm.install

Returns:

  • (Palette) —

    the XTERM color palette instance

Author:

Since:

  • unreleased



66
67
68
# File 'lib/sai/mei.rb', line 66

def self.xterm
  Palette.load(:XTERM)
end