Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🎨 Soothing pastel theme to use within your projects!

License

NotificationsYou must be signed in to change notification settings

catppuccin/palette

Logo
Catppuccin Palettes

Usage

Node

The library is available onnpm:

npm install @catppuccin/palette
import{flavors,flavorEntries,version}from"@catppuccin/palette";importchalkfrom"chalk";// a string containing the version of the libraryconsole.log(version);// an object containing all catppuccin flavorsconsole.log(flavors);// typed helper when iterating flavorsflavorEntries.map(([_,flavor])=>{console.log(`${flavor.name} is a${flavor.dark ?"dark" :"light"} theme.`);console.log(`It has${flavor.colorEntries.length} colors:`);// same for the colorsflavor.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 colorsflavor.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

The library is available throughJSR anddeno.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 libraryconsole.log(version);// an object containing all catppuccin flavorsconsole.log(flavors);// typed helper when iterating flavorsflavorEntries.map(([_,flavor])=>{console.log(`${flavor.name} is a${flavor.dark ?"dark" :"light"} theme.`);console.log(`It has${flavor.colorEntries.length} colors:`);// same for the colorsflavor.colorEntries.map(([colorName,{ hex, rgb, accent}])=>{console.log(bgRgb24(`${hex}  `,{ ...rgb}),colorName,accent);});console.log("\n");});

Other available formats

Graphics editors

Please use the respective files inthe latest GitHub Release:

ProgramsDirectory
Adobe Suite, Affinity Suite, Sipase/
Aseprite, Gimp, Inkscape, Kritagimp/
Procreateprocreate/
Apple Color List (.clr)clr/

 

Copyright © 2021-presentCatppuccin Org


[8]ページ先頭

©2009-2025 Movatter.jp