Skip to main content

Utility to easily use material design colors

Project description

Palettes

Build Status

Utility to easily use palettes

Colors

There are two palettes material and flat.

Vtint Colors

You can view them in a svg file. Those have been custom made using tints.dev.

Material Colors

You can view them in a svg file. More info at material.io.

Flat Colors

You can view them in a svg file. More info at html color codes.

Tailwind Colors

You can view them in a svg file. More info at tailwind colors.

Installation

You can install it with pip by running:

pip install v-palette

Usage

You can retrive one color or a list of colors using get_colors function:

from v_palette import get_colors

# 1. Retrive one color
get_colors(("red", 100)) # out: '#FFCDD2'

# 2. Retrive some colors
get_colors([("red", 100), ("blue", 100)]) # out: ['#FFCDD2', '#BBDEFB']

# 3. Retrive colors from others palettes
get_colors([("emerald", 100), ("silver", 100)]) # out: ['#D5F5E3', '#F2F3F4']
get_colors([("emerald", 100), ("silver", 100)], palette="flat") # out: ['#D5F5E3', '#F2F3F4']

The parameter palette is not necessary if the color you want is not present in the material palette. Since if the color is not found in the default palette it will look at the others palettes.

Development

This package relies on poetry and pre-commit. In order to develop you need to install both libraries with:

pip install poetry pre-commit
poetry install
pre-commit install

Then you need to add poetry run before any python shell command. For example:

# DO
poetry run python master.py

# don't do
python master.py

Authors

License

The content of this repository is licensed under a MIT.

Nomenclature

Branches and commits use some prefixes to keep everything better organized.

Branches

  • f/: features
  • r/: releases
  • h/: hotfixs

Commits

  • [NEW] new features
  • [FIX] fixes
  • [REF] refactors
  • [PYL] pylint improvements
  • [TST] tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vpalette-3.1.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vpalette-3.1.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file vpalette-3.1.1.tar.gz.

File metadata

  • Download URL: vpalette-3.1.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vpalette-3.1.1.tar.gz
Algorithm Hash digest
SHA256 30de1830d0b8bf9436b2ad007348c5c630f9d0d179b918e586d1deaa076e64ee
MD5 b473d75b264292c2a8c44e2d0d1379dd
BLAKE2b-256 e60af9e531753f6edb44c83081d75610a03725ff88fefb513f8ec16e312c3db3

See more details on using hashes here.

File details

Details for the file vpalette-3.1.1-py3-none-any.whl.

File metadata

  • Download URL: vpalette-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vpalette-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c72922abbb04c4d6bb178fcdf9ab4d801dbe8db1bf7223e0799cde7a36d73564
MD5 886213af20416126e85d5df9325dbca5
BLAKE2b-256 0a980a14b3d3222703c71d8829973300a5ab5aeb6f4df2a31fd1ad9fb9fe4cfb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page