Skip to content

ArtisanPack UI home

Accessibility

Build inclusive, WCAG-minded Laravel apps. Accessibility ships color-contrast checking, accessible text-color generation and per-user accessibility settings — plus AI agents for content, ARIA and contrast explanations when the AI package is installed.

v2.3.0

MIT License

★ 0

composer require artisanpack-ui/accessibility
terminal
$ composer require artisanpack-ui/accessibility
Using version ^2.3 for artisanpack-ui/accessibility
✓ Installed

$textColor = a11yGetContrastColor($bgColor);
✓ Contrast-safe text color returned

What it does

Accessible by default

Practical helpers for the part of accessibility that's easy to get wrong — color and contrast — with room to grow into AI-assisted checks.

Contrast checking

Check whether text colors have sufficient contrast against their background.

Accessible text colors

Generate an accessible text color automatically from any background color.

Multi-format colors

Works with hex, Tailwind, rgb() and hsl() color formats out of the box.

User settings

Store and manage per-user preferences for accessibility features.

Laravel integration

Drop-in helpers wire straight into Blade and Livewire components.

AI agents

With the AI package: content analysis, ARIA suggestions and plain-language contrast explanations.

Install and start checking contrast

The service provider registers automatically. Helpers like a11yGetContrastColor() are available right away.

1 · Install

composer require artisanpack-ui/accessibility

Optional · AI agents

composer require artisanpack-ui/ai

Supported versions

Package version PHP Laravel versions
2.2.x – 2.3.x 8.3+ 12.x, 13.x
2.1.x 8.2+ 11.x, 12.x
The PHP floor moved to 8.3 in 2.2.0 to match the AI foundation. Staying on PHP 8.2 or Laravel 11? Pin to ^2.1.2.

Make it accessible with Accessibility

Add contrast-safe color to your Laravel app in one command. Free and open source under the MIT license.