Tailwind SCSS (npm package `tailwindscss`) is an independent reimplementation of the Tailwind CSS utility-first framework using pure SCSS. It was designed for projects that cannot or choose not to use Node.js-based module bundlers like Webpack or Rollup, which are typically required for PostCSS processing in the original Tailwind CSS. Its primary purpose was to allow integration of Tailwind CSS principles into legacy applications or environments where a traditional SCSS compilation pipeline is preferred. The current stable version is 0.3.0, released in 2020. This project is currently unmaintained and effectively abandoned. A key differentiator is its complete SCSS-based architecture, eliminating the need for PostCSS and associated build tooling, making it suitable for direct inclusion and compilation with any standard SCSS compiler. However, this comes with significant limitations, as it cannot support Tailwind CSS plugins, functions, or directives, and its configuration is done via SCSS variables rather than JavaScript objects.
npm install tailwindscssVerified import paths — ran on the pinned version, not inferred.
Demonstrates installation, generating a configuration file, defining custom SCSS variables for configuration, and importing Tailwindscss in a main SCSS file, then applying utilities.
Migrate to the official Tailwind CSS library and use a Node.js-based build setup (e.g., PostCSS with Webpack, Rollup, Vite, or Parcel) for full functionality and ongoing support.
Plugins cannot be used. Custom styles must be written directly in SCSS. For advanced features, the official Tailwind CSS is required.
Understand that the SCSS version has inherent limitations. If full directive support is critical, migrate to the official Tailwind CSS.
Ensure `$prefix` and `$separator` variables use only valid SCSS identifier characters, such as dashes (`-`) or underscores (`_`). For example, `$separator: '_';` is safe, but `$separator: ':';` will cause compilation errors.
Change the value of `$prefix` or `$separator` in your `tailwind.config.scss` to use only SCSS-safe characters like dashes (`-`) or underscores (`_`).
Ensure you are using SCSS `@import "tailwindscss";` syntax in an SCSS file and that `node_modules` is included in your SCSS compiler's include paths. This package provides SCSS files, not JavaScript modules.
No dependency data recorded yet.