@yoruverse-js/palette
v0.2.2
Published
A simple color palette for Yoruverse projects.
Readme
Yoruverse Official Palette
Welcome! This is the official Yoruverse palette. You can copy, modify, and use it for your own projects without needing to credit us, but we'd greatly appreciate it if you do. ❤️
Installation
To install the palette, run the following command from the npm registry:
npm install @yoruverse-js/paletteUsage
import { Palette } from '@yoruverse-js/palette';
const colors = Palette.colors;Utilities
Color Transformers
Transform one color format to another:
Palette.hexToRgb('#fff');
Palette.rgbToHex([255, 255, 255]);Validators
Validate whether a color is a properly formatted hex or RGB value:
Palette.isHexColor('#fff');
Palette.isRgbColor([255, 255, 255]);Contributors
License
This project is licensed under the MIT License. See the LICENSE.md file for details.
