Skip to content

digitallymarked/apca-calculator

Repository files navigation

Auto tint with APCA

This projects uses The Accessible Perceptual Contrast Algorithm (APCA) to test if white or black is the better option for text on a colored surface to ensure best legibility when coloring elements such as buttons, alerts, dialogs and similar.

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Learn More

You can learn more in the Create React App documentation.

About

Using APCA to choose either white or black text when on a colored surface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published