Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tailwind-classes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-classes

A tiny utility for construction condditional CSS classes, with tailwind group variants and merging of identical classes.

  • 1.2.1
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

tailwind-classes

A tiny utility for construction condditional CSS classes, with tailwind group variants and merging of identical classes.

import { taiwind } from "tailwind-classes";

tailwind(
  "text-sm font-medium hover:(underline font-bold) 2xl:hover(text-sky-500)"
); // → "text-sm font-medium hover:underline hover:font-bold 2xl:hover:text-sky-500"

tailwind(true && "opacity-0 invisible hover:(opacity-100 visible)", {
  "block min-h-0": true,
  "foo bar": false
}); // → "opacity-0 invisible hover:opacity-100 hover:visible block min-h-0"

Features

  • Supports Tailwind v3.0 up to v3.3
  • Works in all modern browsers and Node >=16
  • Fully typed
  • Framework agnostic

Get Started

(Under construction)

Keywords

FAQs

Package last updated on 15 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc