🍵 Soothing pastel theme for Gitea
Go to file
renovate[bot] 40160843b2
chore(deps): update dependency https://deno.land/std to v0.224.0
2024-10-20 22:33:57 +00:00
.github/workflows feat: add support for apple color list / .clr files (#87) 2024-09-08 16:40:44 +01:00
.vscode feat!: complete rewrite (#49) 2023-12-28 11:43:11 +01:00
docs docs(CSS.md): Add `/` to `rgba`/`hsla` usage (#90) 2024-08-05 16:06:39 +01:00
scripts feat: add version key into `palette.json` (#91) 2024-09-20 19:15:25 +01:00
types feat: add support for apple color list / .clr files (#87) 2024-09-08 16:40:44 +01:00
.editorconfig chore: update .editorconfig 2022-09-27 02:41:54 +02:00
.gitignore feat: add version key into `palette.json` (#91) 2024-09-20 19:15:25 +01:00
.release-please-manifest.json chore(main): release 1.4.0 (#93) 2024-09-21 03:30:54 +01:00
CHANGELOG.md chore(main): release 1.4.0 (#93) 2024-09-21 03:30:54 +01:00
LICENSE Initial commit 2021-11-06 22:51:38 -05:00
README.md docs(README): add `version` into the examples (#95) 2024-09-21 03:28:44 +01:00
deno.json chore(main): release 1.4.0 (#93) 2024-09-21 03:30:54 +01:00
deno.lock build: switch to `npm:` specifiers for Renovate (#99) 2024-10-20 23:33:33 +01:00
import_map.json chore(deps): update dependency https://deno.land/std to v0.224.0 2024-10-20 22:33:57 +00:00
mod.test.ts chore(main): release 1.4.0 (#93) 2024-09-21 03:30:54 +01:00
mod.ts feat: add version key into `palette.json` (#91) 2024-09-20 19:15:25 +01:00
palette.json chore(main): release 1.4.0 (#93) 2024-09-21 03:30:54 +01:00
release-please-config.json feat: add version key into `palette.json` (#91) 2024-09-20 19:15:25 +01:00
renovate.json chore: Configure Renovate (#96) 2024-09-21 05:24:02 +01:00
shell.nix feat!: complete rewrite (#49) 2023-12-28 11:43:11 +01:00

README.md

Logo
Catppuccin Palettes

Usage

Node

The library is available on npm:

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

Deno

The library is available through JSR and 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");
});

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/
Apple Color List (.clr) clr/

 

Copyright © 2021-present Catppuccin Org