Skip to main content
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
82%
Published
3 months ago (0.1.1)

@vyke/tailwind-shortcuts

Tailwind plugin that provides and easy to create and handle shortcuts inspired by UnoCSS shortcuts.

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')],
])

Others vyke projects

Add Package

deno add jsr:@vyke/tailwind-shortcuts

Import symbol

import * as mod from "@vyke/tailwind-shortcuts";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@vyke/tailwind-shortcuts";

Add Package

npx jsr add @vyke/tailwind-shortcuts

Import symbol

import * as mod from "@vyke/tailwind-shortcuts";

Add Package

yarn dlx jsr add @vyke/tailwind-shortcuts

Import symbol

import * as mod from "@vyke/tailwind-shortcuts";

Add Package

pnpm dlx jsr add @vyke/tailwind-shortcuts

Import symbol

import * as mod from "@vyke/tailwind-shortcuts";

Add Package

bunx jsr add @vyke/tailwind-shortcuts

Import symbol

import * as mod from "@vyke/tailwind-shortcuts";