irontail
v0.2.0
Published
[TypeScript Language Service Plugin](https://github.com/microsoft/TypeScript/wiki/Using-the-Language-Service-API) to make classNames() type-safe for Tailwind.css
Downloads
8
Readme
irontail
TypeScript Language Service Plugin to make classNames() type-safe for Tailwind.css
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,
- You have to pre-generate typings with CLI
- Intellisense becomes inferior to existing extensions (like bradlc.vscode-tailwindcss)
References
- muhammadsammy/tailwindcss-classnames: The prior art
- Quramy/ts-graphql-plugin: Used as reference for the project structure