Tailwindcss plugin that provides utilities for creating inner borders.
Install the plugin from npm:
npm install -D @quibble-dev/tailwindcss-inner-borderThen add the plugin to your tailwind.config.js file:
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require('@quibble-dev/tailwindcss-inner-border'),
// ...
],
};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 ...">