Skip to main content

Utility to easily use material design colors

Project description

Palettes

Build Status codecov

Utility to easily use palettes

Colors

There are two palettes material and flat.

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

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']

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.

Files for v-palette, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size v_palette-1.1.0-py3-none-any.whl (7.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size v_palette-1.1.0.tar.gz (6.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page