renovate[bot] b2e5689181
chore(deps): update dependency json to v2.18.0 (#14)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-11 20:46:02 +07:00
2022-09-27 02:41:54 +02:00
2024-09-22 08:10:49 +00:00
2021-11-06 22:51:38 -05:00
2024-11-06 19:06:24 +00:00
2025-05-12 17:21:32 +01:00

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

Description
No description provided
Readme MIT 194 KiB
Languages
Ruby 100%