Software Development Trends

A monthly look at important software, web and mobile development trends emerging in March 2021.

VP
SHIVAM ITCS
·14 March 2021·5 min read·1 views

Technical Overview & Strategic Context

March 2021 introduced Tailwind CSS 2.1, featuring the new experimental Just-In-Time (JIT) compiler. Previously, Tailwind compiled a massive CSS file containing thousands of pre-generated utility classes. JIT changes this by scanning templates on-the-fly and generating only the classes actually used.

Architectural Principle: Compile stylesheets on-demand rather than shipping pre-generated utility lists, reducing stylesheet weight to the absolute minimum.

Core Concepts & Architectural Blueprint

Tailwind's classic compiler output a file of up to 10MB in development, which had to be purged for production. The JIT engine runs continuously in the background, detecting utility declarations in HTML/JSX and compiling the CSS dynamically. This speeds up build pipelines and enables arbitrary value selectors (e.g. top-[117px]).

Performance & Capability Comparison

Compiler ModeDev CSS File SizeBuild Time (Clean)Arbitrary Value Support
Classic PurgeCSS8MB - 12MB4s - 8sNot supported (requires config extend)
Tailwind JIT ModeLess than 50KBUnder 1sSupported dynamically via brackets

Implementation & Code Pattern

To enable the Tailwind JIT compiler inside tailwind.config.js, apply these settings:

  • Set the mode property to 'jit' in the config.
  • Define target search paths inside the purge array.
  • Run the Tailwind build CLI to start dynamic compilation.
javascriptcode
// tailwind.config.js with JIT compiler mode (2021)
module.exports = {
  mode: 'jit',
  purge: [
    './pages/**/*.js',
    './components/**/*.jsx'
  ],
  theme: {
    extend: {}
  }
};

Operational Governance & Future Outlook

Adopting Tailwind CSS 2.1 JIT Engine trends keeps development teams aligned with modern web standards and prepares architectures for the future roadmap.

VP
Vijay Paliwal
Founder, SHIVAM ITCS · 18+ years enterprise & AI engineering
MCA · Ex-HiveGPT USA · Ex-Social27 Seattle
Software Development Trends | SHIVAM ITCS Blog | SHIVAM ITCS