Tailwind plugin that provides and easy to create and handle shortcuts inspired by UnoCSS shortcuts.
npm i @vyke/tailwind-shortcuts
Create shortcuts for Tailwind CSS.
shortcuts([
{
'btn-primary': 'px-4 py-2 bg-blue-500 text-white rounded-md',
},
['size', (value) => `h-${value} w-${value}`, (theme) => theme('spacing')],
])