
卡通调色板
使用量
节点
该图书馆可上网查阅 无数字 :
npm install @catppuccin/palette
import { flavors, flavorEntries, version } from "@catppuccin/palette";
import chalk from "chalk";
// a string containing the version of the library
console.log(version);
// an object containing all catppuccin flavors
console.log(flavors);
// typed helper when iterating flavors
flavorEntries.map(([_, flavor]) => {
console.log(`${flavor.name} is a ${flavor.dark ? "dark" : "light"} theme.`);
console.log(`It has ${flavor.colorEntries.length} colors:`);
// same for the colors
flavor.colorEntries.map(([colorName, { hex, rgb, accent }]) => {
console.log(
chalk.bgRgb(rgb.r, rgb.b, rgb.g)(` ${hex} `),
colorName,
accent
);
});
console.log("\n");
// same for the ansi colors
flavor.ansiColorEntries.map(([colorName, ansi]) => {
console.log(
chalk.hex(ansi.normal.hex)(`[${ansi.normal.code}] Normal ${colorName}`)
);
console.log(
chalk.hex(ansi.bright.hex)(`[${ansi.bright.code}] Bright ${colorName}`)
);
});
});
德诺
该图书馆可通过下列途径提供: 日 尔 财务报告和审定财务报表 deno.land/x/catppuccin数字 :
import {
flavors,
flavorEntries,
version,
} from "https://deno.land/x/catppuccin/mod.ts";
import { bgRgb24 } from "https://deno.land/std/fmt/colors.ts";
// a string containing the version of the library
console.log(version);
// an object containing all catppuccin flavors
console.log(flavors);
// typed helper when iterating flavors
flavorEntries.map(([_, flavor]) => {
console.log(`${flavor.name} is a ${flavor.dark ? "dark" : "light"} theme.`);
console.log(`It has ${flavor.colorEntries.length} colors:`);
// same for the colors
flavor.colorEntries.map(([colorName, { hex, rgb, accent }]) => {
console.log(bgRgb24(` ${hex} `, { ...rgb }), colorName, accent);
});
console.log("\n");
});
其他可用格式
图形编辑器
请使用相应的文件 最新的 GitHub 发布数字 :
| 程序 | 目录 |
|---|---|
| 阿多比套房 无限套房 口水 | ase/ |
| 活字、 Gimp、 Inkscape、 Krita | gimp/ |
| 创建 | procreate/ |
| 苹果颜色列表 (. clr) | clr/ |
版权: 2021年至今 猫头鹰