postcss-ts-classnames

PostCSS plugin to generate TypeScript types from your CSS class names. (by esamattis)

Postcss-ts-classnames Alternatives

Similar projects and alternatives to postcss-ts-classnames

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better postcss-ts-classnames alternative or higher similarity.

postcss-ts-classnames reviews and mentions

Posts with mentions or reviews of postcss-ts-classnames. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-09.
  • Type Safe Tailwind and SCSS Modules
    7 projects | dev.to | 9 Jun 2023
    First we need to generate types. For Tailwind, we can do this using postcss-ts-classnames, which essentially creates a big union type of all the classes it finds in the bundled app. Importantly, this happens after unused classes are purged, so we don't get the entire list of possible Tailwind classes. This is ideal for performance reasons, but does mean there is a small lag between a class being used in code and the generated types being updated.

Stats

Basic postcss-ts-classnames repo stats
1
71
10.0
about 3 years ago

The primary programming language of postcss-ts-classnames is TypeScript.


Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com