2022-10-26 22:42:14 +01:00
2022-10-26 22:42:14 +01:00
2022-10-26 22:42:14 +01:00
2022-10-26 22:42:14 +01:00
2022-10-26 22:42:14 +01:00
2022-10-26 22:42:14 +01:00
2022-10-26 22:42:14 +01:00

catppuccin

🐍 Soothing pastel theme for Python.

Usage

Install with pip or your preferred dependency management tool.

pip install catppuccin

Example

>>> from catppuccin import Flavour
>>> Flavour.latte().mauve.hex
'8839ef'
>>> Flavour.mocha().teal.rgb
(148, 226, 213)

Flavour is a dataclass, so you can inspect its fields to get access to the full set of colour names and values:

>>> from dataclasses import fields
>>> flavour = Flavour.frappe()
>>> for field in fields(flavour):
        colour = getattr(flavour, field.name)
        print(f"{field.name}: #{colour.hex}")
rosewater: #f2d5cf
flamingo: #eebebe
pink: #f4b8e4
...
base: #303446
mantle: #292c3c
crust: #232634

Development

Install dependencies with poetry:

poetry install

Code Standards

Before committing changes, it is recommended to run the follow tools to ensure consistency in the codebase.

isort .
black .
pylint catppuccin.py
mypy .
pytest --cov

These tools are all installed as part of the dev dependency group.

Description
No description provided
Readme MIT 4.7 MiB
Languages
Python 98.7%
CSS 1.3%