
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@latehours/tailwind
Advanced tools
@latehours/tailwind 💨@latehours/tailwind is collection of plugins for
Tailwind CSS that i need often enough.
is has zero dependencies. ofc you need to have tailwindcss set up
in your project.
install the library using your package manager of choice:
npm install @latehours/tailwind
pnpm install @latehours/tailwind
bun add @latehours/tailwind
yarn add @latehours/tailwind
ligatures plugindefine how ligatures should behave.
in your tailwind.config.mjs:
import { ligatures } from "@latehours/tailwind/ligatures";
/** @type {import('tailwindcss').Config} */
export default {
plugins: [ligatures()],
}
in your file.html or component.tsx:
<div class="ligatures-none">no ligatures</div>
<div class="ligatures-normal">normal ligatures</div>
<div class="ligatures-none">no ligatures</div>
<div class="ligatures-common">common ligatures</div>
<div class="ligatures-no-common">no common ligatures</div>
<div class="ligatures-discretionary">discretionary ligatures</div>
<div class="ligatures-no-discretionary">no discretionary ligatures</div>
<div class="ligatures-historical">historical ligatures</div>
<div class="ligatures-no-historical">no historical ligatures</div>
<div class="ligatures-contextual">contextual ligatures</div>
<div class="ligatures-no-contextual">no contextual ligatures</div>
cn utilitymerge classnames together.
first add clsx and tailwind-merge to your deps then you can use cn:
import { cn } from "@latehours/tailwind/cn";
const padding = "p-4";
const classes = cn("text-red-500", "bg-blue-500", padding);
cond utilityopinionated way to conditionally add classes. most useful when
combined with cn.
first add clsx to your deps then you can use cond:
import { cn } from "@latehours/tailwind/cn";
import { cond } from "@latehours/tailwind/cond";
<div
className={cn(
cond(state === "selected", "bg-yellow-500"),
cond(() => state === "disabled", "bg-gray-500"),
)}
/>
condc utilitysimilar to cond but is curried. most useful when combined
with cn.
first add clsx to your deps then you can use condc:
import { cn } from "@latehours/tailwind/cn";
import { condc } from "@latehours/tailwind/condc";
const isState = condc(state);
<div
className={cn(
isState("selected", "bg-yellow-500"),
// also accepts third argument which is returned
// when condition is false
isState("disabled", "bg-gray-500", "bg-yellow-500"),
)}
/>
To install dev dependencies:
bun install
when creating commits follow the conventional commits format.
FAQs
collection of tailwind plugins
The npm package @latehours/tailwind receives a total of 1 weekly downloads. As such, @latehours/tailwind popularity was classified as not popular.
We found that @latehours/tailwind demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.