@vyke/tailwind-shortcuts
v0.1.1
Published
Tailwind plugin that provides and easy to create and handle shortcuts inspired by UnoCSS shortcuts.
Downloads
2
Maintainers
Readme
Installation
npm i @vyke/tailwind-shortcuts
API
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')],
])