import chalk, { Chalk } from "chalk";
//#region src/terminal/palette.ts
const KAIJIBOT_PALETTE = {
	accent: "#6C5CE7",
	accentBright: "#A29BFE",
	accentDim: "#4834D4",
	info: "#74B9FF",
	success: "#2FBF71",
	warn: "#FFB020",
	error: "#E23D2D",
	muted: "#8B8FA3"
};
//#endregion
//#region src/terminal/theme.ts
const hasForceColor = typeof process.env.FORCE_COLOR === "string" && process.env.FORCE_COLOR.trim().length > 0 && process.env.FORCE_COLOR.trim() !== "0";
const baseChalk = process.env.NO_COLOR && !hasForceColor ? new Chalk({ level: 0 }) : chalk;
const hex = (value) => baseChalk.hex(value);
const theme = {
	accent: hex(KAIJIBOT_PALETTE.accent),
	accentBright: hex(KAIJIBOT_PALETTE.accentBright),
	accentDim: hex(KAIJIBOT_PALETTE.accentDim),
	info: hex(KAIJIBOT_PALETTE.info),
	success: hex(KAIJIBOT_PALETTE.success),
	warn: hex(KAIJIBOT_PALETTE.warn),
	error: hex(KAIJIBOT_PALETTE.error),
	muted: hex(KAIJIBOT_PALETTE.muted),
	heading: baseChalk.bold.hex(KAIJIBOT_PALETTE.accent),
	command: hex(KAIJIBOT_PALETTE.accentBright),
	option: hex(KAIJIBOT_PALETTE.warn)
};
const isRich = () => Boolean(baseChalk.level > 0);
const colorize = (rich, color, value) => rich ? color(value) : value;
//#endregion
export { isRich as n, theme as r, colorize as t };
