Utility to easily use material design colors
Project description
Palettes
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
Built Distribution
File details
Details for the file vpalette-3.0.0.tar.gz
.
File metadata
- Download URL: vpalette-3.0.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.0 Linux/5.15.0-1035-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f433f7d947ecff1bf98e036143a08786964235a27729b0d5d30e8afc359186d |
|
MD5 | 9d4637ba5837f499d133b48c7db66f09 |
|
BLAKE2b-256 | 0280ee93b8a59d44e44b8ac0b2b37b8bb334018ddaf80046de289b1ffec83f33 |
File details
Details for the file vpalette-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: vpalette-3.0.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.0 Linux/5.15.0-1035-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706457711253cf71a9a6c03553759ced5dc31b4a7cce2d5bb2704c530dc3fcf2 |
|
MD5 | 2ce654a7273e8e81b9592ab1e5dd27de |
|
BLAKE2b-256 | 8be22754a858d5338cf135486b64ff0399bb8833774893f6344ab30b315461f3 |