MCPcopy Index your code
hub / github.com/azorng/material

github.com/azorng/material @v0.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.1 ↗ · + Follow
11 symbols 17 edges 5 files 1 documented · 9%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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 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()));

Core symbols most depended-on inside this repo

run_app
called by 1
src/main.rs
ui
called by 1
src/ui.rs
handle_input
called by 1
src/app.rs
delete_input
called by 1
src/app.rs
color_search
called by 1
src/app.rs
main
called by 0
src/main.rs
from
called by 0
src/lib.rs
fmt
called by 0
src/lib.rs

Shape

Method 6
Function 3
Class 2

Languages

Rust100%

Modules by API surface

src/app.rs5 symbols
src/lib.rs3 symbols
src/main.rs2 symbols
src/ui.rs1 symbols

For agents

$ claude mcp add material \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact