A tailwindcss plugin to enable text borders based on text-shadow property
npm install tailwindcss-text-bordernpm install -D @tailwindcss-text-border
module.exports = {
theme: {
// ...
},
plugins: [
require('tailwindcss-text-border'),
// ...
],
}
`
Basic usage
It works just like normal tailwind borders, by adding text-border-[width] and text-border-[color]
The width is limited to 2px max. For values above this it gets ugly. Default width is 1px.
The plugin uses the theme colors, so no limitations here.
$3
$3
⚠️ Warning ⚠️
The plugin relies on the following function for getting the colors from the theme:
const flattenColorPalette = require('tailwindcss/lib/util/flattenColorPalette').default`