🍵 Soothing pastel theme for Gitea
Go to file
backwardspy 7f17f46c5d
docs(readme): add catppuccin/elixir (#86)
2024-06-12 19:38:24 +01:00
.github/workflows ci(release-please): use action from googleapis (#83) 2024-05-29 08:38:52 +01:00
.vscode feat!: complete rewrite (#49) 2023-12-28 11:43:11 +01:00
docs docs(css): fix incorrect var (#75) 2024-03-15 08:57:30 +00:00
scripts feat: add emoji for each flavor (#81) 2024-05-17 21:56:11 +01:00
types feat!: complete rewrite (#49) 2023-12-28 11:43:11 +01:00
.editorconfig chore: update .editorconfig 2022-09-27 02:41:54 +02:00
.gitignore feat!: complete rewrite (#49) 2023-12-28 11:43:11 +01:00
.release-please-manifest.json chore(main): release 1.2.0 (#82) 2024-05-18 02:36:58 +01:00
CHANGELOG.md chore(main): release 1.2.0 (#82) 2024-05-18 02:36:58 +01:00
LICENSE Initial commit 2021-11-06 22:51:38 -05:00
README.md docs(readme): add catppuccin/elixir (#86) 2024-06-12 19:38:24 +01:00
deno.json chore(main): release 1.2.0 (#82) 2024-05-18 02:36:58 +01:00
deno.lock feat!: complete rewrite (#49) 2023-12-28 11:43:11 +01:00
import_map.json feat!: complete rewrite (#49) 2023-12-28 11:43:11 +01:00
mod.test.ts feat: add color names and spec order (#72) 2024-02-12 22:03:48 +01:00
mod.ts feat: add emoji for each flavor (#81) 2024-05-17 21:56:11 +01:00
palette.json feat: add emoji for each flavor (#81) 2024-05-17 21:56:11 +01:00
release-please-config.json ci: add lint workflow (#61) 2023-12-29 04:42:18 +01:00
shell.nix feat!: complete rewrite (#49) 2023-12-28 11:43:11 +01:00

README.md

Logo
Catppuccin Palettes

Usage

Node

Get the NPM package:

npm install @catppuccin/palette
import { flavors, flavorEntries } from "@catppuccin/palette";
import chalk from "chalk";

// 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");
});

Deno

The library gets published to deno.land/x/catppuccin.

import { flavors, flavorEntries } from "https://deno.land/x/catppuccin/mod.ts";
import { bgRgb24 } from "https://deno.land/std/fmt/colors.ts";

// 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");
});

Other available formats

Graphics editors

Please use the respective files in the latest GitHub Release:

Programs Directory
Adobe Suite, Affinity Suite, Sip ase/
Aseprite, Gimp, Inkscape, Krita gimp/
Procreate procreate/

 

Copyright © 2021-present Catppuccin Org