digitalshopfront / accessibility
A package for all accessibility functions for the Digital Shopfront CMS.
Maintainers
Details
Requires
- php: ^8.2
- illuminate/support: >=5.3
Requires (Dev)
- orchestra/testbench: ^10.2
- pestphp/pest: ^3.8
- pestphp/pest-plugin-laravel: ^3.1
README
This is the repository for the Digital Shopfront CMS Accessibility composer package. You can learn more about Digital Shopfront CMS here.
The package adds in accessibility functions for the CMS, such as color contrast checking, toast duration and more.
Installation
You can install the accessibility package by running the following composer command.
composer require digitalshopfront/accessibility
Usage
You can use any of the accessibility functions like this:
use Digitalshopfront\Accessibility\Facades\A11y as A11y;
echo A11y::a11yCSSVarBlackOrWhite('#38ed24');
You can also call any of the functions directly like this:
echo A11y::a11yCSSVarBlackOrWhite('#38ed24');
Contributing
As an open source project, this package is open to contributions from anyone. Please read through the contributing guidelines to learn more about how you can contribute to this project.