Skip to content

catppuccin/ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

47 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Logo
Catppuccin for Ruby

Installation

gem install catppuccin

Usage

require 'catppuccin'

palette = Catppuccin::Palette.new

# Get hex color
puts palette.color_hex(:latte, :red) # Output: #d20f39

# Get RGB color as a string
puts palette.color_rgb_string(:frappe, :blue) # Output: rgb(140, 170, 238)

# Get RGB color as a hash
puts palette.color_rgb(:mocha, :text) # Output: { r: 205, g: 214, b: 244 }

# List all themes
puts palette.list_themes # Output: [:latte, :frappe, :macchiato, :mocha]

# List all colors for a theme
puts palette.list_colors(:macchiato) # Output: [:rosewater, :flamingo, :pink, :mauve, :red, :maroon, :peach, :yellow, :green, :teal, :sky, :sapphire, :blue, :lavender, :text, :subtext1, :subtext0, :overlay2, :overlay1, :overlay0, :surface2, :surface1, :surface0, :base, :mantle, :crust]

πŸ’ Thanks to

Β 

Copyright Β© 2021-present Catppuccin Org