everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
38 lines (36 loc) • 883 B
JavaScript
import chalk from "chalk";
import gradient from "gradient-string";
//#region src/utils/theme.ts
const gradients = { cyber: gradient(["#00ffff", "#ff00ff"]) };
const colors = {
cyan: chalk.hex("#00ffff"),
magenta: chalk.hex("#ff00ff"),
green: chalk.hex("#00ff41"),
blue: chalk.hex("#0080ff"),
yellow: chalk.hex("#ffcc00"),
white: chalk.hex("#f0f0f0"),
gray: chalk.hex("#555555"),
dim: chalk.dim,
error: chalk.hex("#ff3366")
};
const icons = {
scan: "○",
run: "▶",
ok: "✓",
err: "✗",
pending: "○",
arrow: "→",
dot: "·",
app: "◉",
config: "⚙"
};
const frames = {
top: (width) => `┌${"─".repeat(width - 2)}┐`,
bottom: (width) => `└${"─".repeat(width - 2)}┘`
};
function divider(width = 48) {
return colors.dim("─".repeat(width));
}
//#endregion
export { colors, divider, frames, gradients, icons };
//# sourceMappingURL=theme.mjs.map