• Stars
    star
    125
  • Rank 286,335 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created about 4 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A library to aid in using colors

Donate via PayPal Build Coverage Status PyPI Version PyPI Downloads PyPI - Python Version License

ColorAide

Overview

ColorAide is a pure Python, object oriented approach to colors.

>>> from coloraide import Color
>>> c = Color("red")
>>> c.to_string()
'rgb(255 0 0)'
>>> c.convert('hsl').to_string()
'hsl(0 100% 50%)'
>>> c.set("lch.chroma", 30).to_string()
'rgb(173.81 114.29 97.218)'
>>> Color("blue").mix("yellow", space="lch").to_string()
'rgb(255 65.751 107.47)'

ColorAide particularly has a focus on the following:

  • Accurate colors.

  • Proper round tripping (where reasonable).

  • Be generally easy to pick up for the average user.

  • Support modern CSS color spaces and syntax.

  • Make accessible many new and old non-CSS color spaces.

  • Provide a number of useful utilities such as interpolation, color distancing, blending, gamut mapping, filters, correlated color temperature, color vision deficiency simulation, etc.

  • Provide a plugin API to extend supported color spaces and approaches to various utilities.

  • Allow users to configure defaults to their liking.

With ColorAide, you can specify a color, convert it to other color spaces, mix it with other colors, output it in different CSS formats, and much more!

Documentation

https://facelessuser.github.io/coloraide

License

MIT

More Repositories

1

BracketHighlighter

Bracket and tag highlighter for Sublime Text
Python
1,732
star
2

pymdown-extensions

Extensions for Python Markdown
Python
834
star
3

HexViewer

Hex viewer and editor for SublimeText
Python
441
star
4

ColorHelper

Sublime plugin that provides helpful color previews and tooltips
Python
254
star
5

RegReplace

Simple find and replace sequencer plugin for Sublime Text http://facelessuser.github.io/RegReplace/
Python
201
star
6

soupsieve

A modern CSS selector implementation for BeautifulSoup
Python
180
star
7

ScopeHunter

A plugin for Sublime Text that gets the scope under the cursor.
Python
124
star
8

wcmatch

Wilcard File Name matching library
Python
109
star
9

sublime-markdown-popups

Markdown popup dependency for Sublime
Python
108
star
10

TabsExtra

Sublime Plugin with sticky tabs, more tab closing options, and additional menu items.
Python
103
star
11

SchemeEditor

Color Scheme Editor for Sublime Text
Python
89
star
12

RawLineEdit

View and edit line endings for Sublime Text
Python
78
star
13

pyspelling

Spell checker automation tool
Python
71
star
14

FavoriteFiles

Sublime Text plugin to save favorite files http://facelessuser.github.io/FavoriteFiles/
Python
69
star
15

FuzzyFileNav

Sublime Text Plugin that allows for file navigation via the quick panel taking advantage of Sublime's fuzzy searching.
Python
68
star
16

Rummage

Rummage is a GUI for grep like searches in Python
Python
67
star
17

Aprosopo

A Sublime Text Theme
JavaScript
51
star
18

sublime-languages

Personal languages and modified languages
JavaScript
48
star
19

EasyDiff

An intuitive context menu based diff plugin for Sublime Text http://facelessuser.github.io/EasyDiff/
Python
40
star
20

merge-dracula-theme

Sublime Merge Dracula Theme
39
star
21

SubNotify

Sublime Text notification plugin http://facelessuser.github.io/SubNotify/
Python
37
star
22

mkdocs-material-extensions

Markdown extension resources for MkDocs Material
Python
34
star
23

sublime-dracula-scheme

Dracula color scheme for Sublime
Python
33
star
24

SerializedDataConverter

Convert between serialized data formats (plist | json | yaml)
Python
26
star
25

ThemeTweaker

Change your Sublime tmTheme files by applying different color filters on the fly. http://facelessuser.github.io/ThemeTweaker/
Python
24
star
26

ThemeScheduler

Sublime plugin to change your theme or apply filters to your themes at different times of the day
Python
22
star
27

bracex

Bash style brace expansion for Python
Python
18
star
28

label-bot

A GitHub App for managing labels
Python
14
star
29

subclrschm

Sublime Color Scheme Editor http://facelessuser.github.io/subclrschm/
Python
13
star
30

pep562

Backport of PEP 562
Python
13
star
31

mkdocs_pymdownx_material_extras

Custom alterations based on Mkdocs-Material
Python
11
star
32

QuickCal

Sublime Text plugin to show a month calendar
Python
11
star
33

backrefs

Wrapper around re or regex that adds additional back references
Python
11
star
34

SublimeRandomCrap

Random Sublime plugin scripts (some experimental)
Python
8
star
35

sublime-backrefs

Sublime Text dependecy: Regular expression wrapper that adds new backrefs
Python
7
star
36

FindCursor

Sublime plugin to make finding and the cursor(s) quick and easy. https://facelessuser.github.io/FindCursor/
Python
7
star
37

PyMdown

CLI batch markdown converter/previewer. Wrapped around Python's Markdown Package and Pygments.
Python
5
star
38

AnyOpen

Sublime plugin for sending file or folder to a program.
Python
5
star
39

pyluxa4

Luxafor flag controller
Python
5
star
40

pymdown-lexers

Python
4
star
41

PackageFileSearch

Sublime plugin for searching package content
Python
4
star
42

sublime-markdown

Sublime dependency for Python Markdown
Python
3
star
43

TonidoShell

A web based terminal for the Tonido Plug and Tonido for Windows and Linux.
JavaScript
3
star
44

pymdown-styles

Pygments styles for pymdown
Python
2
star
45

sublime-gntp

Gntp dependency for Sublime Text
Python
2
star
46

coloraide-extras

Some extra color spaces and such for ColorAide
Python
2
star
47

sublime-pymdownx

PyMdown Extensions for Sublime Text
Python
2
star
48

sublime-pymdown

Sublime plugin to batch process markdown via PyMdown
Python
2
star
49

hunspell-en-us

English US Hunspell dictionary
2
star
50

sublime-regex

Python regex module for Sublime
Python
2
star
51

sublime-wcmatch

Sublime Text dependency wcmatch
Python
1
star
52

subclrschm-bin

Sublime Color Scheme Editor Binaries
1
star
53

sublime-bracex

Sublime dependency for bracex
Python
1
star
54

mdpopups_test

Python
1
star
55

sublime-coloraide

ColorAide dependency for Sublime Text
Python
1
star