Computes contrasting colour combinations.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ltdk b204bb52e6 More stuff 3 months ago
neue-gamut shrug emoji 8 months ago
neue-illuminants shrug emoji 8 months ago
neue-named shrug emoji 8 months ago
proptest-regressions Initial commit 2 years ago
src More stuff 3 months ago
.gitignore Initial commit 2 years ago Initial commit 2 years ago
Cargo.lock Aging 3 months ago
Cargo.toml Finish testing 7 months ago
LICENSE Initial commit 2 years ago Initial commit 2 years ago
Makefile Initial commit 2 years ago Initial commit 2 years ago More stuff 3 months ago
rust-toolchain.toml Aging 3 months ago
rustfmt.toml Shrugger emoji 8 months ago


Computes contrasting colour combinations.


Available via the Anti-Capitalist Software License for individuals, non-profit organisations, and worker-owned businesses.


Currently, this is just a plan for a project where I'm experimenting with different implementations. The idea is to make a library which can help create reasonable colour schemes. So far, I've already tried making a colour scheme called "Earl Grey" myself with two background colours and three shades of "neutral" and six hues. The idea is to help make sure that hues are different enough, that contrast is high enough and consistent with "pure colour" versions when desired (e.g. contrast between, say, red and white, is at least the same as it would be on a VGA colour scheme). Right now, I'm experimenting with converting between different representations of colours and writing the best code I can for that, while relying on as few magic numbers and equations as possible. It's rough.

Ultimately, this would be used by a program, sch, which helps manage colour schemes and lets you assign colours to things based upon user preference (e.g. we have a base scheme with all sorts of colours, but say, the user likes blue and wants to see more blue than any other colour, they can do that).

The name neue comes from the German word "neue" which means "new" and is often used in fonts to indicate a more modern version, e.g. Helvetica Neue. The "alte" name for the alternative binary is the opposite of neue, meaning "old". The goal of these two binaries is to offer a simple way of getting high-contrast versions of colours -- neue will try as much as possible to attain a 7:1 contrast ratio (WCAG AAA in all cases) whereas alte will always achieve a 4.5:1 contrast ratio (WCAG AA for small text, AAA for large text and UI elements).