Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.09 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.09 KB

tailwindcss-inner-border

Tailwindcss plugin that provides utilities for creating inner borders.

Installation

Install the plugin from npm:

npm install -D @quibble-dev/tailwindcss-inner-border

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require('@quibble-dev/tailwindcss-inner-border'),
    // ...
  ],
};

Usage

Use the inner-border-{n} utilities to set the inner border width for all sides of an element:

<input class="inner-border ...">
<input class="inner-border-2 ...">

Control the inner border color of an element using the inner-border-{color} utilities:

<input class="inner-border-2 inner-border-rose-500 ...">

Variants and color opacity modifiers may also be used:

<input class="inner-border-2 inner-border-rose-500/75 hover:inner-border-rose-500 ...">