Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 891 Bytes

File metadata and controls

22 lines (18 loc) · 891 Bytes

🎨 Colorize

When you develop discord bots, you have to use colors in your embeds. Either you have a color code beforehand, or you usually spend a lot of time choosing a color that suits you by trial and error...

In order to solve this problem, the @discord-factory/colorize module provides you with a wide range of colors based on the tailwind color palette.

Getting started

In order to use the module, you must first have installed it with the following command :

npm install @discord-factory/colorize
yarn add @discord-factory/colorize

You can now use it in your embeds as below :

import Colors from '@discord-facory/colorize'
import { MessageEmbed } from 'discord.js'

const embed = new MessageEmbed({
  description: 'My embed !',
  color: Colors.INVISIBLE, 👈 // Please select your prefered color
})