Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/opdavies/tailwindcss-plugin-skip-link

Tailwind CSS plugin to easily add a 'skip to main content' link.
https://github.com/opdavies/tailwindcss-plugin-skip-link

tailwindcss tailwindcss-plugin

Last synced: about 2 months ago
JSON representation

Tailwind CSS plugin to easily add a 'skip to main content' link.

Awesome Lists containing this project

README

        

# Tailwind CSS Plugin: Skip Link

## Overview

```sh
# Using npm
npm install --save-dev tailwindcss-skip-link

# Using yarn
yarn add --dev tailwindcss-skip-link
```

## Usage

You can add the plugin to your Tailwind config as follows:

```js
plugins: [
// ...
require('tailwindcss-skip-link')(),
],
```

Within your HTML, add the skip link straight after the `body` tag along with any other additional classes:

```html

```

Then add the matching ID to skip to on your main content element.

```html


Lorem ipsum



```

## Example

To see an example of this plugin in use, see the [oliverdavies.uk repository](https://github.com/opdavies/oliverdavies.uk) or the [rebuilding-bartik repository](https://github.com/opdavies/rebuilding-bartik).

## Author

[Oliver Davies](https://www.oliverdavies.uk) - Full Stack Developer