Skip to content

Commit

Permalink
fix!: change colorspace to colorSpace to be consistent. fixes #190
Browse files Browse the repository at this point in the history
BREAKING CHANGE: It could be considered a typo, but it will be a
breaking change for anyone using leonard previously.
  • Loading branch information
GarthDB committed Dec 11, 2022
1 parent 210908c commit faae5f9
Show file tree
Hide file tree
Showing 35 changed files with 3,611 additions and 60,351 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Blue: rgb(0, **1**, 255)
White: rgb(255, 255, 255)
Contrast ratio: **8.57**:1

If 8.58 is input as the target ratio with the starting color of blue, the output will not be exact. This is exaggerated by the various colorspace interpolations.
If 8.58 is input as the target ratio with the starting color of blue, the output will not be exact. This is exaggerated by the various color space interpolations.

Since the WCAG requirement is defined as a *minimum contrast requirement*, it should be fine to generate colors that are a little *more* accessible than the minimum.

Expand Down
Loading

0 comments on commit faae5f9

Please sign in to comment.