Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🎨 material design color palette for the terminal

License

Notifications You must be signed in to change notification settings

azorng/material

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

21 Commits

Repository files navigation

Material

A material design color palette for the terminal

drawing

Installation

Homebrew

brew tap azorng/material
brew install material

Cargo

First, install Rust (using the recommended rustup installation method) and then

cargo install material --locked --features=cli

Usage

Run the command material in the terminal. Type the color code to copy its hex color to the clipboard. Type T to toggle between colors displayed as background or foreground. Type Esc to exit.

As a library

This crate can also be used as a library in your own apps.

cargo add material
use material_colors::colors;
assert_eq!(colors::RED_50.to_string(), "#ffebee");
assert_eq!(colors::RED_100.to_string(), "#ffcdd2");

From Ratatui

Colors provided by the library can be converted to Ratatui colors. Just enable the ratatui feature.

cargo add material --features=ratatui
use material_colors::colors;
use ratatui::prelude::*;
let line = Line::styled("hello world", Style::new().fg(colors::RED_50.into()));

About

🎨 material design color palette for the terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /