Skip to content

catppuccin/ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Logo
Image Catppuccin for Ruby Image

Image Image Image

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

 

Image

Copyright © 2021-present Catppuccin Org

Image

About

💎 Soothing pastel library for Ruby

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

 
 
 

Contributors

Languages