Skip to main content
Home
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
2 years 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

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@vyke/tailwind-shortcuts

Import symbol

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

Import directly with a jsr specifier

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

Add Package

pnpm i jsr:@vyke/tailwind-shortcuts
or (using pnpm 10.8 or older)
pnpm dlx jsr add @vyke/tailwind-shortcuts

Import symbol

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

Add Package

yarn add jsr:@vyke/tailwind-shortcuts
or (using Yarn 4.8 or older)
yarn dlx jsr add @vyke/tailwind-shortcuts

Import symbol

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

Add Package

vlt install jsr:@vyke/tailwind-shortcuts

Import symbol

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

Add Package

npx jsr add @vyke/tailwind-shortcuts

Import symbol

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

Add Package

bunx jsr add @vyke/tailwind-shortcuts

Import symbol

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