Skip to content

Commit

Permalink
Merge pull request #519 from oddbird/update-oddcontrast
Browse files Browse the repository at this point in the history
update-oddcontrast
  • Loading branch information
jgerigmeyer committed Feb 20, 2024
2 parents 963a43a + 596ec83 commit 44994af
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if necessary, then run `nvm install` (once per active shell) to use the correct
version of Node for OddSite development.

The correct [Yarn](https://yarnpkg.com/) version is included with Node, and will
be used automatically for any `yarn` command. To activate it, run `corepack
enable` (once per local Node installation).
be used automatically for any `yarn` command. To activate it, run
`corepack enable` (once per local Node installation).

To upgrade the Node version used by OddSite, update the version number in these
places and then run `nvm install` to upgrade:
Expand Down
13 changes: 7 additions & 6 deletions content/tools/oddcontrast.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ date: 2022-12-31
logo: oddcontrast
image:
position: top
src: projects/contrast.jpg
src: projects/contrast-hero.jpg
oss: owner
author: oddbird
action:
Expand Down Expand Up @@ -37,8 +37,9 @@ desired color is back in gamut.

{{ embed.img(
src='projects/out-of-gamut.jpg',
alt='display-p3 light yellow color showing hexidecimal color
outside the sRGB and HSL gamuts'
alt='Oklab purple color showing a message next to sRGB Formats that says
Selected color is outside the sRGB gamut
with a link to more detailed information'
) }}

## Contrast Checker for Accessibility
Expand All @@ -51,9 +52,9 @@ tips and a link to learn more.

{{ embed.img(
src='projects/color-ratio.jpg',
alt='showing the red and yellow colors at 4.37:1 contrast ratio
failing for AA Normal, AAA Normal, and AAA Large font sizes,
but passing for AA Large font size'
alt='showing a purple background color and a peach foreground color
with a 3.95:1 contrast ratio failing for AA Normal, AAA Normal,
and AAA Large font sizes, but passing for AA Large font size'
) }}

## What New Features Should OddContrast Have?
Expand Down
Binary file modified src/images/projects/color-ratio.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/projects/contrast-hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/projects/contrast.jpg
Binary file not shown.
Binary file modified src/images/projects/out-of-gamut.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 44994af

Please sign in to comment.