fsubal / irontail

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:TypeScript 100.0%