Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tailwindcss/jit

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tailwindcss/jit

An experimental library that generates CSS with the same API you already know from Tailwind CSS, but on-demand as you author your template files instead of generating an extremely large stylesheet once when you start your build system.

  • 0.0.0-bb3026c854
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
decreased by-52.97%
Maintainers
3
Weekly downloads
 
Created
Source

@tailwindcss/jit

An experimental library that generates CSS with the same API you already know from Tailwind CSS, but on-demand as you author your template files instead of generating an extremely large stylesheet once when you start your build system.

This has the following advantages:

  • No long initial build time (Tailwind can take 3–8s to compile in isolation, and upwards of 30–45s in webpack projects)
  • No need to purge unused styles, since styles are generated as they are needed
  • Your CSS is identical in development and production, so there's no chance of accidentally purging a style you needed to keep
  • No need to explicitly enable variants, everything works out of the box since file-size isn't a limiting factor
  • No dev tools performance issues that stem from parsing large stylesheets

Current limitations:

These are all things we're actively working on, but aren't ready yet in this current pre-alpha release. This is all stuff I expect will be ready by the end of next week :)

  • Custom CSS is not processed, can't use @apply, @layer, @screen, etc.
  • User plugins are not supported
  • Can't use complex media queries (only basic min-width is supported)
  • Container is very naive, doesn't support complex options Tailwind normally supports
  • No prefix support
  • No !important support
  • No custom separator support

FAQs

Package last updated on 28 Feb 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc