python-tailwind-colors Tailwind Templates

Python Tailwind Colors

Use the default color palette from TailwindCSS in your Python code

Python Tailwind Colors

Use the default color palette from TailwindCSS (https://tailwindcss.com/docs/customizing-colors) in your python code for plotting, image generation, etc..


Installation:

poetry add tailwind_colors
# or
pip install tailwind_colors

Usage:

from tailwind_colors import TAILWIND_COLORS_HEX, TAILWIND_COLORS_RGB

print(TAILWIND_COLORS_HEX.FUCHSIA_600)  # prints '#c026d3'
print(TAILWIND_COLORS_RGB.FUCHSIA_600)  # prints (192, 38, 211)

Top categories

Loading Svelte Themes