Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jack-pallot/tailwindcss-accessibility
A Tailwind CSS plugin that adds additional functionality to help improve accessibility.
https://github.com/jack-pallot/tailwindcss-accessibility
Last synced: 14 days ago
JSON representation
A Tailwind CSS plugin that adds additional functionality to help improve accessibility.
- Host: GitHub
- URL: https://github.com/jack-pallot/tailwindcss-accessibility
- Owner: jack-pallot
- License: mit
- Created: 2018-08-08T17:43:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-08T19:21:22.000Z (over 6 years ago)
- Last Synced: 2024-09-17T14:31:40.373Z (about 2 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/tailwindcss-accessibility
- Size: 1.95 KB
- Stars: 39
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Tailwind CSS Accessibility Plugin
A Tailwind CSS plugin that adds additional functionality to help improve accessibility.
### Installing
npm install tailwindcss-accessibility
or
yarn add tailwindcss-accessibility
Simply require the installed plugin directly to your Tailwind config:
plugins: [
require('tailwindcss-accessibility')
]### Usage
For usage on individual elements:
Screen readers only
Use on focused only elements (skip links etc):
### Utilities
By default the class utils are taken from Bootstrap 4, a highly battle-tested framework:
.sr-only {}
.sr-only-focusable {}### Contributions
The goal of this project is to be a single source for as many relevant CSS accessibility helpers as possible. If we're missing something, or you would like to contribute, post an issue or PR.