Skip to content

[experimental] TypeScript Language Service Plugin to make classNames() type-safe for Tailwind.css

Notifications You must be signed in to change notification settings

fsubal/irontail

Repository files navigation

irontail

TypeScript Language Service Plugin to make classNames() type-safe for Tailwind.css

PoC

How to use

// npm
npm i --save-dev irontail

// yarn
yarn add -D irontail

Just add to tsconfig.json

"plugins": [
  {
    "name": "irontail",
  }
]

Why ?

Q. There is already muhammadsammy/tailwindcss-classnames. Why is this plugin useful?

A. irontail just provides error checker out of the box, instead of type generator.

When you use type generator,

Limitation

  • Currently, JIT mode is not supported ( it will break ).

References

About

[experimental] TypeScript Language Service Plugin to make classNames() type-safe for Tailwind.css

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published