hex2name
v3.0.0
Published
The command-line tool converts hex colour to clarify the colour name
Downloads
4
Readme
The command-line tool converts hex colour to clarify the colour name
Install
npm i -g hex2name
Usage
hex2name #000000
# Result
"C:\Program Files\nodejs\hex2name.cmd" #ff00ff
--- Tailwind ---
"magentaFuchsia": "#ff00ff"
---
magentaFuchsia
--- React Material UI ---
declare module "@mui/material/styles" {
interface Palette {
magentaFuchsia: Palette["primary"];
}
interface PaletteOptions {
magentaFuchsia: PaletteOptions["primary"];
}
}
---
"magentaFuchsia": {
"main": "#ff00ff"
}
---
magentaFuchsia.main
Process finished with exit code 0
# Result
"C:\Program Files\nodejs\hex2name.cmd" #000000
--- Tailwind ---
import colors from "tailwindcss/colors"
colors.black
--- React Material UI ---
import { common } from "@mui/material/colors";
common["black"]
Process finished with exit code 0